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
Moving legend to empty space in GRAPH COMBINEDear members, I am trying to move the legends of some plots to an empty space in Code: GRAPH COMBI…
Lost in the proces of matching dataHello everyone, I have learned a lot on the Statalist forum but I am not running into something tha…
Air pollution analysisHello there! I am looking for associations between pollution concentration and the specific disease …
How to determine the number of lags in time seriesHi I am running the following model: Code: reg CSAD RtnMrktPort AbsRtnMrktPort SquDiffRtnMrktPort p…
Time variable in panel dataDear all, I am currently trying to define my first panel data set in Stata. For this, STATA (14.2) …
Subscribe to:
Post Comments (Atom)
0 Response to specifying stored coefficients in test
Post a Comment