Hi Statalist
A few coworkers have been using a rather complicated code to create spline plots.
However, I was told that mkspline2 and adjustrcspline (Maarten Buis: postrcspline) may be a more efficient approach.
However, I am not able to get the OR on the y-axis, but rather the log odds.
Is there any way to get this? Whether the regression output show the OR or not, does not matter.
The code below is from the help file.
What I seek is a plot similar to this:
A few coworkers have been using a rather complicated code to create spline plots.
However, I was told that mkspline2 and adjustrcspline (Maarten Buis: postrcspline) may be a more efficient approach.
However, I am not able to get the OR on the y-axis, but rather the log odds.
Is there any way to get this? Whether the regression output show the OR or not, does not matter.
The code below is from the help file.
Code:
ssc install postrcspline // Example 1 – her viser regressionsoutputtet ikke OR: clear all sysuse nlsw88, clear recode grade 0/5=5 mkspline2 grades = grade, cubic nknots(3) logit never_married grades* adjustrcspline // Eksempel 2 – her viser regressionsoutput en OR: clear all sysuse nlsw88, clear recode grade 0/5=5 mkspline2 grades = grade, cubic nknots(3) logit never_married grades*, or adjustrcspline

Comment