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?
Variable in regression modelDear Specialist, As I have read from the literature review, some scholars have run OLS model when Y …
Variable in regression modelDear Specialist, As I have read from the literature review, some scholars have run OLS model when Y …
Bootstrapping panel data using avy prefixThis Stata webpage nicely describes how to use bootstrap for panel data. However, it is unclear how …
Merging datasets by coordinates of objects and areasHey I have a question regarding the merging process when I do not have a key variable. My first data…
How can I test p for trend of Odds ratio of qauartile independent variable?Hi. I performed mutivariable logistic regression with quartile independent variable. (quartile of B…
Subscribe to:
Post Comments (Atom)
0 Response to how can i make the bootstrapping fast?
Post a Comment