Hello,
So basically I'm having trouble with the output I get when I'm running a marginsplot (I've attached the regression-output and the marginsplot).
The command is:
reg Holdningsindeks i.Treatment##c.Tryghedsindeks, robust
margins, dydx(*) at(Tryghedsindeks=(0(0.1)5))
marginsplot, yline(0, lpattern(dash) lcolor(black)) graphregion(color(white)) xlabel(#5) recast(line) recastci(rline) ciopts(lpattern(dash)) ytitle("Marginal effekt af afsender") title("Effekt af politisk afsender på holdning givet tryghed") xtitle(Tryghed) noci name(T_uden_konf11)
** (The yline(0) is supposed to be there - it's not the problem I'm trying to solve ;-) ). **
The problem is the vertical green line (y=0,28) and how to remove it.
The X-variable is 1=Control group, 2=Treatment 1 and 3=Treatment 2.
The Y-variable is a "position/attitude towards the treatment" from 1-5.
The Z-variable is the interaction/moderation variable.
I'm looking forward to hearing from you
Kind regards
Mathias
So basically I'm having trouble with the output I get when I'm running a marginsplot (I've attached the regression-output and the marginsplot).
The command is:
reg Holdningsindeks i.Treatment##c.Tryghedsindeks, robust
margins, dydx(*) at(Tryghedsindeks=(0(0.1)5))
marginsplot, yline(0, lpattern(dash) lcolor(black)) graphregion(color(white)) xlabel(#5) recast(line) recastci(rline) ciopts(lpattern(dash)) ytitle("Marginal effekt af afsender") title("Effekt af politisk afsender på holdning givet tryghed") xtitle(Tryghed) noci name(T_uden_konf11)
** (The yline(0) is supposed to be there - it's not the problem I'm trying to solve ;-) ). **
The problem is the vertical green line (y=0,28) and how to remove it.
The X-variable is 1=Control group, 2=Treatment 1 and 3=Treatment 2.
The Y-variable is a "position/attitude towards the treatment" from 1-5.
The Z-variable is the interaction/moderation variable.
I'm looking forward to hearing from you
Kind regards
Mathias
Comment