Skip to contents

This function is a dispatcher for the statistical function selected in input.

Usage

getStatFunction(
  id = c("cor.test", "pearson", "spearman", "kendall", "t.test", "t.test.equal",
    "t.test.unequal", "t.test.paired", "w.test", "w.test.ranksum", "w.test.paired",
    "anova", "anova.equal", "anova.unequal", "kruskal.wallis", "chisq.test", "coxph",
    "moderated.t", "moderated.F", "sam.test", "missing.value", "above.median",
    "above.minimum", "median", "variability")
)

Arguments

id

character string, one of the supported statistical techniques.

Value

A statistical function:

"cor.test"

rowCor

"pearson"

rowPearsonCor

"spearman"

rowSpearmanCor

"kendall"

rowKendallCor

"t.test"

rowTwoSampleT

"t.test.equal"

rowEqualVarT

"t.test.unequal"

rowUnequalVarT

"t.test.paired"

rowPairedT

"w.test"

rowTwoSampleWilcoxonT

"w.test.ranksum"

rowWilcoxonT

"w.test.paired"

rowPairedWilcoxonT

"anova"

rowOneWayAnova

"anova.equal"

rowEqualVarOneWayAnova

"anova.unequal"

rowUnequalVarOneWayAnova

"kruskal.wallis"

rowKruskalWallis

"chisq.test"

rowPearsonChiSq

"coxph"

rowCoxPH

"moderated.t"

rowModeratedT

"moderated.F"

rowModeratedOneWayAnova

"sam.test"

rowSamStatistics

"missing.value"

rowMissingValueRatio

"above.median"

rowAboveMedianFreqRatio

"above.minimum"

rowAboveMinFreqRatio

"median"

rowMedians

"variability"

rowVariability

Author

Alessandro Barberis

Examples

f = getStatFunction(id = 'cor.test')