Thanks for the feedback.
We think we have a two-step approach.
First, we use the procedure to transfer continuous to spl variables, e.g., from the variable of age to spl variables age1, age2, and age3. Later, the regression procedure will estimate the coefficients of age1, age2, and age3.
Next, we want to map each age with its corresponding spl variables age1, age2, and age3. If there are n observations for age, there should be n for age1, age2, and age3 too.
The second step is that we use the data of age1, age2, and age3, along with their coefficients to estimate the outcome (e.g., HRs) for each observation by hand. Finally, we plot the relationship of the variable age and the outcome via proc sgplot.
So far, we don't know how to get the age1, age2, and age3 for each observation for the proc phreg.
... View more