Replied on Sat, 11/28/2020 - 07:35 pascofearon Joined: 05/07/2013 bootstrapping indirect effects Hi Mike, I think I figured it out, but would appreciate a thumbs up if you have time: ind <- mxAlgebra(a*b, name="ind") fit1 <- osmasem(model.name="test", Mmatrix=M1, Tmatrix=T0, data=dat, intervals.type=c("LB"), mxModel.Args = list(ind, mxCI(c("ind"))), suppressWarnings=FALSE) summary(fit1) boot1<-mxBootstrap(fit1$mx.fit) summary(boot1, summary(boot1, boot.quantile=c(.025,.975))) mxBootstrapEval(ind, boot1, bq=c(.025,.975)) Log in or register to post comments
Replied on Sat, 11/28/2020 - 21:45 Mike Cheung Joined: 10/08/2009 Hi Pasco, Hi Pasco, Your code seems correct. There are at least two issues in the bootstrap CI in MASEM: (1) the number of studies tends to be small; (2) there may be many missing correlations in the studies. But I would prefer the LBCI unless there is evidence to show the other way. Best, Mike Log in or register to post comments
Replied on Sun, 11/29/2020 - 06:26 pascofearon Joined: 05/07/2013 In reply to Hi Pasco, by Mike Cheung Thanks Mike! We have a Thanks Mike! We have a reviewer 3 with strong views about this.... but your take is extremely helpful! Log in or register to post comments
bootstrapping indirect effects
Hi Mike,
I think I figured it out, but would appreciate a thumbs up if you have time:
ind <- mxAlgebra(a*b, name="ind")
fit1 <- osmasem(model.name="test", Mmatrix=M1, Tmatrix=T0, data=dat, intervals.type=c("LB"), mxModel.Args = list(ind, mxCI(c("ind"))), suppressWarnings=FALSE)
summary(fit1)
boot1<-mxBootstrap(fit1$mx.fit)
summary(boot1, summary(boot1, boot.quantile=c(.025,.975)))
mxBootstrapEval(ind, boot1, bq=c(.025,.975))
Log in or register to post comments
Hi Pasco,
Hi Pasco,
Your code seems correct.
There are at least two issues in the bootstrap CI in MASEM: (1) the number of studies tends to be small; (2) there may be many missing correlations in the studies. But I would prefer the LBCI unless there is evidence to show the other way.
Best,
Mike
Log in or register to post comments
In reply to Hi Pasco, by Mike Cheung
Thanks Mike! We have a
Thanks Mike! We have a reviewer 3 with strong views about this.... but your take is extremely helpful!
Log in or register to post comments