basetable | R Documentation |
This function create a baesline characteristics tables according to the variables included in a specific dataframe.
basetable(
data,
varlist,
grvar = NULL,
len.max = 5,
y.correct = T,
trend = F,
gr.name = NULL,
method = 3,
combine = F,
print.result = T,
p_norm = 0.05
)
data |
Dataframe to be used |
varlist |
Vector of variables to be displayed |
grvar |
Grouping variable |
len.max |
Maximum number of elements to convert to factor |
y.correct |
a logical indicating whether to apply continuity correction |
trend |
a logical whether to do trend test |
gr.name |
Elements labels of grouping variables |
method |
Select between parametric, nonparametric or combined testing |
combine |
Display overall patient summary values as well |
print.result |
Print varClassifier result |
p_norm |
Cut-off p-value classifying normal and non-normal |
Dataframe of baseline characteristics table
basetable(data=mtcars, varlist=c("cyl", "mpg", "wt", "hp"), grvar="am")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.