i am doing bootstrapping for SE in indirect effect, but It gets stuck at some point (don't move), how can i make it fast
here is the code
program med1, rclass
gsem (Attitude -> A622A, family(ordinal) link(logit)) (Attitude -> A622B, family(ordinal) link(logit)) (Attitude -> A622C, family(ordinal) link(logit)) (Attitude -> A622D, family(ordinal) link(logit)) (Attitude -> A622E, family(ordinal) link(logit)) (Attitude -> A623, family(ordinal) link(logit)) (Attitude -> A625_CAT3,family(bernoulli) link(logit)) (M1[AGOVERN] -> A622A, family(ordinal) link(logit)) (M1[AGOVERN] -> A622B, family(ordinal) link(logit)) (M1[AGOVERN] -> A622C, family(ordinal) link(logit)) (M1[AGOVERN] -> A622D, family(ordinal) link(logit)) (M1[AGOVERN] -> A622E, family(ordinal) link(logit)) (M1[AGOVERN] -> A623, family(ordinal) link(logit)) (0.V149_c -> Attitude, ) (0.V149_c -> A625_CAT3, family(bernoulli) link(logit)) (1.V149_c -> Attitude, ) (1.V149_c -> A625_CAT3, family(bernoulli) link(logit)) (2.V149_c -> Attitude, ) (2.V149_c -> A625_CAT3, family(bernoulli) link(logit)) (3b.V149_c -> Attitude, ) (3b.V149_c -> A625_CAT3, family(bernoulli) link(logit)) (M2[AGOVERN] -> A625_CAT3, family(bernoulli) link(logit)), covstruct(_lexogenous, diagonal) latent(Attitude M1 M2 ) nocapslatent
return scalar ME1= _b[A625_CAT3:Attitude]*_b[Attitude :0.V149_c]
return scalar ME2= _b[A625_CAT3:Attitude]*_b[Attitude :1.V149_c]
return scalar ME3= _b[A625_CAT3:Attitude]*_b[Attitude :2.V149_c]
end
bootstrap r(ME1) r(ME2) r(ME3), reps(25) cluster(AGOVERN) : med1
Related Posts with how can i make the bootstrapping fast?
Mediation Panel dataDear all, I am currently conducting a fixed effects panel regression in Stata with the following va…
Sampling multilevel dataDear all, I have a survey data set consisting of 29 countries and roughly 50 000 respondents. I want…
Counting the occurrence of a substringHi, I have a dataset similar to below: id name 1 Aaron, Sarah, Paul, Kim, Ted 2 Sarah, Aaron,…
Dyadic dataset help!!Hello everyone I would like to request some expert help about how to turn a classic wide format dat…
Maximum value per year per ticket?Hi Stata users, Do you know how it is possible to sort on maximum value per year and per ticket? Fo…
Subscribe to:
Post Comments (Atom)
0 Response to how can i make the bootstrapping fast?
Post a Comment