Re: [R] Paired sample t-test with mi.t.test

2017-04-08 Thread Joel Gagnon
Dear Dr. Eichner and Dr. Kohl, First, thank you for your response. I tried your code and R it worked perfectly I just had to add: mi.t.test(implist*$imputation,* "pre_test", "post_test", alternative = "greater", paired = TRUE, var.equal = TRUE, conf.level = 0.95) for the code to run. Thank you ve

Re: [R] Paired sample t-test with mi.t.test

2017-04-07 Thread Prof. Dr. Matthias Kohl
Dear Joel, are you trying to apply function mi.t.test from my package MKmisc? Could you please try: mi.t.test(implist, "pre_test", "post_test", alternative = "greater", paired = TRUE, var.equal = TRUE, conf.level = 0.95) x and y are the names of the variables, not the variables themselves. Bes

Re: [R] Paired sample t-test with mi.t.test

2017-04-07 Thread Gerrit Eichner
Hi, Joel, I think, according to the help page of mi.t.test, mi.t.test(implist, x = "pre_test", y = "post_test", alternative = "greater", paired = TRUE, var.equal = TRUE, conf.level = 0.95) should do it (untested). Hth -- Gerrit --

[R] Paired sample t-test with mi.t.test

2017-04-07 Thread Joel Gagnon
Dear all, It is my first time posting on this list so forgive me for any rookie mistakes I could make. I want to conduct t-tests on a dataset that has been imputed using the mice package: imput_pps <- mice(pps, m=20, maxit=20, meth='pmm') # pps is my dataset. It contains items from an 11-item que