Hello,
I have a quick question on the command "marginsplot"
I have the following codes:
regress y x z c.x#c.z
sum z
return list
global effa = round(r(mean) + r(sd),0.1)
global eff = round(r(mean),0.1)
global effb = round(r(mean) - r(sd),0.1)
margins, at(x = 0(0.1)1) z = ($effa, $eff $effb))
marginsplot
All codes work fine until when i run marginsplot
I get the following error message: ") required" r(100);
My understanding per https://stats.idre.ucla.edu/stata/se...ions-stata/#s3 is that i can run margins command and then immediately follow up with marginsplot for a graph. However, i get a random error of ") required" - i was wondering if anyone had this issue and if so, how did you solve this?
Thank you
Related Posts with Marginsplot
How to move value/label of observations between variablesI have a dataset in which some observations take the values of the previous variable on the same row…
How to tell Stata "end" if for the "program define" rather than the loop?In a loop syntax, I need to define a program and do some calculating, however, Stata breaked when en…
How to create a date variable based on the birth year and a month counting variable?Hi everyone, I'm currently having a long data set with the following structure: case month birth…
What's the most advantageous points of Stata compared with Python or R?What's the most advantageous points of Stata compared with Python or R? What's the advantageous poi…
Arellano Bond MethodHello everyone, My regression looks in the following way: yit=a0 + a1xit + a2Dit +a3Lit + a4mit + …
Subscribe to:
Post Comments (Atom)
0 Response to Marginsplot
Post a Comment