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
Moderation of an Interaction EffectDear Stata Forum, I am trying to figure out how I can test for how an interaction effect between tw…
Update to -moremata- available from SSCAn update to moremata is available from SSC. To install the update, type Code: . ssc install morem…
Stsgraph - risk tables and censoredHi, I am creating a sts graph failure. Underneath the graph I can show the number at risk below the…
Meta forestplot: problems with axis range/labelsI am having trouble setting axis range and labels using meta forestplot. I am using Stata 16.1. I a…
Update to -gsample- available from SSCAn update to gsample is available from SSC. To install the update, type Code: . ssc install gsampl…
Subscribe to:
Post Comments (Atom)
0 Response to specifying stored coefficients in test
Post a Comment