rttestPS | R Documentation |
Robust Paired Samples T-Test
rttestPS(data, pairs, tr = 0.2, md = FALSE, es = FALSE, ci = FALSE)
data |
the data as a data frame |
pairs |
a list of lists specifying the pairs of measurement in
|
tr |
a number between 0 and 0.5, (default: 0.2), the proportion of measurements to trim from each end, when using the trim and bootstrap methods |
md |
|
es |
|
ci |
|
A results object containing:
results$ttest | the table of t-test results | ||||
Tables can be converted to data frames with asDF
or as.data.frame
. For example:
results$ttest$asDF
as.data.frame(results$ttest)
data(anorexia, package='MASS') anorexiaFT <- subset(anorexia, subset = Treat == "FT") rttestPS(anorexiaFT, pairs = list( list(i1 = 'Prewt', i2 = 'Postwt'))) # # ROBUST PAIRED SAMPLES T-TEST # # Robust Paired Samples T-Test # --------------------------------------------- # t df p # --------------------------------------------- # Prewt Postwt -3.83 10.0 0.003 # --------------------------------------------- #
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.