| pool_t_test {miceafter} | R Documentation |
Calculates the pooled t-test and Confidence intervals
Description
pool_t_test Calculates the pooled t-test, confidence intervals
and p-value.
Usage
pool_t_test(object, conf.level = 0.95, dfcom = NULL, statistic = FALSE)
Arguments
object |
An object of class 'mistats' ('Multiply Imputed Statistical Analysis'.) |
conf.level |
conf.level Confidence level of the confidence intervals. |
dfcom |
Number of completed-data analysis degrees of freedom.
Default number is taken from function |
statistic |
if TRUE (default) the test statistic and p-value are provided, if FALSE these are not shown. |
Value
An object of class mipool from which the following objects
can be extracted:
-
Mean diffDifference between means -
SEstandard error -
tt-value (for confidence interval) -
low_rlower limit of confidence interval -
high_rupper limit of confidence interval -
statistictest statistic -
pvalp-value
Author(s)
Martijn Heymans, 2022
See Also
Examples
imp_dat <- df2milist(lbpmilr, impvar="Impnr")
res_stats <- with(data=imp_dat,
expr = t_test(Pain ~ Gender, var_equal=TRUE, paired=FALSE))
res <- pool_t_test(res_stats)
res
[Package miceafter version 0.5.0 Index]