powered by
pool_t_test Calculates the pooled t-test, confidence intervals and p-value.
pool_t_test
pool_t_test(object, conf.level = 0.95, dfcom = NULL, statistic = FALSE)
An object of class mipool from which the following objects can be extracted:
mipool
Mean diff Difference between means
Mean diff
SE standard error
SE
t t-value (for confidence interval)
t
low_r lower limit of confidence interval
low_r
high_r upper limit of confidence interval
high_r
statistic test statistic
statistic
pval p-value
pval
An object of class 'mistats' ('Multiply Imputed Statistical Analysis'.)
conf.level Confidence level of the confidence intervals.
Number of completed-data analysis degrees of freedom. Default number is taken from function cindex.
cindex
if TRUE (default) the test statistic and p-value are provided, if FALSE these are not shown.
Martijn Heymans, 2022
with.milist, t_test
with.milist
t_test
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
Run the code above in your browser using DataLab