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
Question on how to eliminate only certain dataGood Evening and sorry for the not very descriptive title. I am not sure how exactly to word my issu…
How to eliminate male-only households from individual-level dataDear Stata Users, I am new to Stata. I have a Census dataset on individuals, that are identified p…
Deleting observations with missing values using macro/loopingHi all, I am very new to macros and looping (in Stata). I have certain variables for which it is ne…
Varbench - Is there any minimum number of observations needed?Hi, I am using the varbench command. My dataset has 96 observations in total. When I run this comma…
Three level nested logitHi, I'm trying to run a nested logit using three levels with -nlogit-. Level 1 is whether the indi…
Subscribe to:
Post Comments (Atom)
0 Response to Marginsplot
Post a Comment