QuantitativeStatistics: Comparative stats on quantitative variables per group

View source: R/QuantitativeStatistics.R

QuantitativeStatisticsR Documentation

Comparative stats on quantitative variables per group

Description

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.

Usage

QuantitativeStatistics(data, group_var, tst_vars, test_type = "t.test")

Arguments

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"

Examples

out <- QuantitativeStatistics(data, group_var="CMD", tst_vars=c("Age", "Hosp_Stay_Len"), test_type="wilcox.test")

kwdoyle/kevtools documentation built on Jan. 4, 2023, 10:32 p.m.