This function generates a plot comparing p-values for different variables across two or more groups.
Usage
PlotPValueComparisons(
data,
group_var,
variables = NULL,
VariableCategories = NULL,
Relabel = TRUE,
Data = lifecycle::deprecated(),
GroupVariable = lifecycle::deprecated(),
Variables = lifecycle::deprecated()
)Arguments
- data
Data frame containing the variables to compare.
- group_var
Character string specifying the name of the column in
Datathat contains the group labels.- variables
Character vector specifying the names of the columns in
Datato include in the comparison. IfNULL, all columns exceptGroupVariableare included.- VariableCategories
Character vector specifying the categories for each variable. If
NULL, no categories are used.- Relabel
Logical indicating whether to replace missing labels with the column names.
- Data
Deprecated (since 19.15.0). Use
datainstead.- GroupVariable
Deprecated (since 19.15.0). Use
group_varinstead.- Variables
Deprecated (since 19.15.0). Use
variablesinstead.
Examples
data(SampleData)
data(SampleVariableTypes)
Labelled <- RevalueData(SampleData, SampleVariableTypes)$RevaluedData
PlotPValueComparisons(
Labelled,
group_var = "Diagnosis",
variables = c(
"age", "AXL", "Adiponectin", "Alpha_1_Antitrypsin", "Cortisol",
"Ferritin", "GRO_alpha", "MMP10", "MMP7", "NT_proBNP", "PAI_1",
"TRAIL_R3", "VEGF", "Ab_42", "p_tau", "tau"
)
)
