Dear All,
For example, in a regression model where age is one of the independent
variables. I am not sure the functional form of age so I want to use
age spline in the model. I choose cubic spline using "frencurv, power(3)".
Now I want to test whether there is gender difference in age effect, can I
simplely generate a set of interaction terms between gender and the set of
spline variables or there are something else I need to do? Thanks!
One possibility is to define separate splines for males and females. For
instance, if you have a basis of reference splines sp_1,