Hi all, I am using the mediate function for multilevel analysis but I keep running into the error: "unused arguments (treat = "PS", sims = 1000, conf.level = 0.95)"
I also tried to run the code that is posted in the manual itself with the provided data "framework" on mediate and it gives the same error!! Does anyone have any guidance?
This is my code: medmodel <- mediate(model1.idps.covs, model2.mod.covs, treat="PS", mediator="iDealcm", boot=TRUE, sims=1000, conf.level = 0.95)