I'm estimating a mediation model using gsem: I post a toy version below. I want to use boottest to give me clustered standard errors (that will involve the bootcluster(x) option, but we don't need that to illustrate the problem). Following estimation, boottest allows me to test hypotheses about individual coefficients, or additive combinations of coefficients (the first three boottest commands, below), but it won't let me multiply them, which is what I need to do to get a mediated (indirect) effect. Will boottest not do non-linear combinations, or am I missing something?
sysuse panel, clear
gsem (gdp_cap_l <- train rr i.year i.id) (train <- rr ep i.id i.year)
boottest _b[gdp_cap_l:train]=0
boottest _b[train:rr]=0
boottest _b[train:rr] + _b[gdp_cap_l:train]=0
boottest _b[train:rr]*_b[gdp_cap_l:train]=0
Related Posts with boottest following gsem mediation model test non-linear hypothesis
Recode numeric variables to categoricalHi. I have two numeric variables. I need to build logistic regression, so how to combine those two …
Color SchemeHi I have been using a user written command VennDiagram to draw venn diagram in Stata 15. I wanted …
replacing all missing ".a" to "."?Dear All, How can I replace all ".a" in the following dataset Code: * Example generated by -dataex…
Basics - Including control variable with many missings in regressionHello, I am confused about a simple issue: Imagine a cross-sectional dataset with plenty of ids. If …
ivreg2 warning that covariance matrix is not of full rank. But can't figure out whyI am running fixed-effect instrumental variable panel regression. The data is unbalanced panel. The …
Subscribe to:
Post Comments (Atom)
0 Response to boottest following gsem mediation model test non-linear hypothesis
Post a Comment