Dear Stata users,
I am new to Stata (Version 13) having recently switched from SPSS. How can I use Stata to model moderated mediation (first stage model: X --> Mediator is moderated) if BOTH X and the moderator are multicategorical (each variable has three levels)? Another potential challenge is that while X is ordinal (small, medium, large), the moderator is not (poor, excellent, no information present). The no information present is my control condition for the moderator. Below is my data using dataex:
------------------ copy up to and including the previous line ------------------
Listed 100 out of 274 observations
Use the count() option to list more
. dataex Size_Rev Health ATTR EvalProf in 1/20
----------------------- copy starting from the next line -----------------------
------------------ copy up to and including the previous line ------------------
Listed 20 out of 274 observations
I appreciate any and all help.
Thank you!
Tina
I am new to Stata (Version 13) having recently switched from SPSS. How can I use Stata to model moderated mediation (first stage model: X --> Mediator is moderated) if BOTH X and the moderator are multicategorical (each variable has three levels)? Another potential challenge is that while X is ordinal (small, medium, large), the moderator is not (poor, excellent, no information present). The no information present is my control condition for the moderator. Below is my data using dataex:
------------------ copy up to and including the previous line ------------------
Listed 100 out of 274 observations
Use the count() option to list more
. dataex Size_Rev Health ATTR EvalProf in 1/20
----------------------- copy starting from the next line -----------------------
Code:
* Example generated by -dataex-. To install: ssc install dataex clear input double(Size_Rev Health ATTR EvalProf) 1 2 1 6 1 1 0 5 1 1 . 5 1 2 . . 1 3 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 1 2 7 1 1 2 5.5 1 1 2 2.5 1 2 3 6 2 2 2 7.5 3 1 1 5.5 3 1 1 6.5 3 1 1 4.5 end label values Size_Rev Size_Rev label def Size_Rev 1 "Slim", modify label def Size_Rev 2 "Average Sized", modify label def Size_Rev 3 "Overweight", modify label values Health Health label def Health 1 "poor", modify label def Health 2 "excellent", modify label def Health 3 "no info", modify
Listed 20 out of 274 observations
I appreciate any and all help.
Thank you!
Tina
Comment