After running a relogit regression, use relogitplot to show how the probability of y=1 changes across values of x, holding other variables at a given value or statistic.
For example:
Code:
clear set obs 10000 gen y = cond(_n>300,0,1) gen x = runiform() relogit y x relogitplot x, range(0 0.05 1) scheme(s1mono) legend(off) xtitle(X) ytitle(Pr(Y)=1) title(Predictive margins with 95% CIs)
The program can be installed using:
Code:
net install relogitplot, from("https://raw.githubusercontent.com/al...ogitplot/main/")
0 Response to New package: Relogitplot - predictive margins plots after relogit regressions
Post a Comment