Hello,
I'm trying to run mediation analysis in Stata 13. I've done so previously and am using identical syntax but with new data. I've verified that everything is updated. All non-binary variables are standardized to range from 0-1. The DV, treatment, and mediator are all continuous variables.
Here's my syntax: "medeff (regress new_lrideol new_open new_consc new_extra new_agree new_emostab male new_educ new_age new_rururb)(regress EUSUPP01 new_lrideol new_open new_consc new_extra new_agree new_emostab male new_educ new_age new_rururb) if ccode==255, treat(new_open) mediate(new_lrideol)"
When I run the command, the models converge and basic output is returned but no mediation analysis is conducted or reported. Instead, I get the message, "variable newc not found
st_data(): 3598 Stata returned error
med_reg(): - function returned error
<istmt>: - function returned error
r(3598);"
What could be the problem? Based on my reading of previous posts, this error seems associated with unnecessary spaces...but I believe I've eliminated all those and still can't get the output I'm used to getting.
Sincerely appreciate any/all help!
I'm trying to run mediation analysis in Stata 13. I've done so previously and am using identical syntax but with new data. I've verified that everything is updated. All non-binary variables are standardized to range from 0-1. The DV, treatment, and mediator are all continuous variables.
Here's my syntax: "medeff (regress new_lrideol new_open new_consc new_extra new_agree new_emostab male new_educ new_age new_rururb)(regress EUSUPP01 new_lrideol new_open new_consc new_extra new_agree new_emostab male new_educ new_age new_rururb) if ccode==255, treat(new_open) mediate(new_lrideol)"
When I run the command, the models converge and basic output is returned but no mediation analysis is conducted or reported. Instead, I get the message, "variable newc not found
st_data(): 3598 Stata returned error
med_reg(): - function returned error
<istmt>: - function returned error
r(3598);"
What could be the problem? Based on my reading of previous posts, this error seems associated with unnecessary spaces...but I believe I've eliminated all those and still can't get the output I'm used to getting.
Sincerely appreciate any/all help!
Comment