Hello everyone,
I am having troubles getting my margins with following commands (it just gives me "not estimable"):
reg log_co2_capita c.log_gdp_capita##c.log_gdp_capita##i.dum1986 oil_country oil_gdp_capita log_num_years_demo i.country i.year, vce(robust)
summarize log_gdp_capita if electoral_2==1
global MyMin = r(min)
global MyMax = r(max)
global Grid = (15-$MyMin)/100
margins, dydx(c.log_gdp_capita) at(c.log_gdp_capita=($MyMin($Grid)15) dum1986=(0))
I want to get so I can plot two marginsplot, one where the margins are with dum1986 = 0 and a plot with dum1986 = 1.
The code works just fine if I am not trying to split the margins upon the dum1986 but just running following: margins, dydx(c.log_gdp_capita) at(c.log_gdp_capita=($MyMin($Grid)15))
How can I solve this?
Best Rasmus
I am having troubles getting my margins with following commands (it just gives me "not estimable"):
reg log_co2_capita c.log_gdp_capita##c.log_gdp_capita##i.dum1986 oil_country oil_gdp_capita log_num_years_demo i.country i.year, vce(robust)
summarize log_gdp_capita if electoral_2==1
global MyMin = r(min)
global MyMax = r(max)
global Grid = (15-$MyMin)/100
margins, dydx(c.log_gdp_capita) at(c.log_gdp_capita=($MyMin($Grid)15) dum1986=(0))
I want to get so I can plot two marginsplot, one where the margins are with dum1986 = 0 and a plot with dum1986 = 1.
The code works just fine if I am not trying to split the margins upon the dum1986 but just running following: margins, dydx(c.log_gdp_capita) at(c.log_gdp_capita=($MyMin($Grid)15))
How can I solve this?
Best Rasmus
Comment