Hi all, I would like to plot the results of a spline regression as log-odds or odds ratio. However, if additional variables are added to the model, the final plot is messy. Please consider the example below
Any suggestion?
Many thanks,
Manuel
Code:
sysuse auto, clear mkspline2 spl_price = price, cubic nknots(4) mkspline2 spl_weight = weight, cubic nknots(4) logit foreign spl_price* predict xb1, xb twoway line xb1 price, sort name(plot_ok, replace) logit foreign spl_price* spl_weight* predict xb2, xb twoway line xb2 price, sort name(plot_not_ok, replace)
Many thanks,
Manuel
Comment