View source: R/QuantitativeStatistics.R
QuantitativeStatistics | R Documentation |
Performs either a t-test or wilcox test on quantitative variables per group. This requires that "MRN" is a column already present in the input data. If this is used in the future, I might want to change that.
QuantitativeStatistics(data, group_var, tst_vars, test_type = "t.test")
data |
the input data |
group_var |
the variable to group by |
tst_vars |
varaibles to analyze |
test_type |
The desired test. Can be either "t.test" or "wilcox.test". Defaults to "t.test" |
out <- QuantitativeStatistics(data, group_var="CMD", tst_vars=c("Age", "Hosp_Stay_Len"), test_type="wilcox.test")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.