rcsgen

rcsgen

The rcsgen command generates basis function for restricted cubic splines. The command is used by my stpm2 command to fit flexible parameric survival models. It has a number of advantages over Stata’s inbuilt mkspline command, which will be demonstrated in the tutorials below.