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
Concentration curves of a dichotomous variableHi, I am new to the forum and stata itself. I need help in drawing a concentration curve. I am tryin…
Simulation Study: Panel data xtlogit regressionHi everyone, Unfortunately I'm not able to download the dataex package, since I'm working on an ext…
xtgcause interpretationI have run a test for Granger non-causality in heterogeneous panels using the procedure proposed by …
FIXED EFFECT MODEL, small saple size.Dear all, I am regressing the impact of Netflix subscriptions on theatrical admissions in 16 countri…
Export Regressions to Different Sheets in Same Excel Doc.I have been trying to figure out a way to automate my regression output such that each set of regres…
Subscribe to:
Post Comments (Atom)
0 Response to Marginsplot
Post a Comment