I am running two multilevel models and storing the coefficients. I then want to test of the product of two coefficients, one from each model, is zero as a simple way to get at indirect effects/moderation. But I'm not sure how to indicate the stored coefficients. Here's my syntax
mixed lifesatis airsatis wtrsatis presenv LNhhincomeC female ageC tertedu eparttime unemployed nolabor marrdom divsepwid hlthprob LNcintenseC pctprotectC LNgdppcC meaneduC incgini19C wealthgini19C || WP5: airsatis wtrsatis presenv LNhhincomeC female ageC tertedu eparttime unemployed nolabor marrdom divsepwid hlthprob, reml
estimates store full_model
mixed airsatis LNhhincomeC female ageC tertedu eparttime unemployed nolabor marrdom divsepwid hlthprob LNcintenseC pctprotectC LNgdppcC meaneduC incgini19C wealthgini19C || WP5: LNhhincomeC female ageC tertedu eparttime unemployed nolabor marrdom divsepwid hlthprob, reml
estimates store airsat_model
Then when I try to test
test (([full_model]airsatis)*([airsat_model]LNcintenseC))=0
equation [full_model] not found
r(303);
Help appreciated!
Related Posts with specifying stored coefficients in test
Keep font size fixed when switching displays?Stata (15.1 MP, Win 10 64) on my laptop has started changing font size wildly when switching between…
Getting results for a categorical variable with eststo and mi dataDear all, I am working with mi data and plan to use "coefplot". Therefor I want to save results in …
spmap: several observations per identifier; id() does not uniquely identify the observations;Hi, I am currently trying to plot a map with several observations for each district (polygon, I gue…
Random slopes for participants in a crossed random effects model with categorical outcomesI've got a mixed effects model with both crossed and nested random effects. The data concern a serie…
A seemingly bug with refcat (an option of estout), when using with tabstat ?Dear Statalist, I am using esttab and tabstat to produce descriptive statistics of 4 variables. I i…
Subscribe to:
Post Comments (Atom)
0 Response to specifying stored coefficients in test
Post a Comment