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
Create a boxplot with 2 x left axis to capture difference ranges #data visualisationHi folks - been mulling over this but can't quite figure out a good solution. Wondered if anyone had…
Test to compare Positive and Negative Predictive Value?Hi all, I wonder if its possible use a test to compare Positive and Negative Predictive Value with …
Indirect effects with zero-inflated Poission regression / SEMDear all, I have a causal chain X -> M -> Y and am interested in the indirect effect of X on …
IV variable option in Stata program syntaxHello I am trying to write a program to run a regression based on some criteria and I want to add t…
Determining best fe-model with paneldata (u-test)Hello! I am new to stata and am investigating the relationship between paid leave (maternal and pare…
Subscribe to:
Post Comments (Atom)
0 Response to specifying stored coefficients in test
Post a Comment