harrelfe / rms

Regression Modeling Strategies
https://hbiostat.org/R/rms
Other
172 stars 48 forks source link

pentrace allow arguments to be passed to the fitter #113

Closed mclark-amp3d closed 2 years ago

mclark-amp3d commented 2 years ago

This is particularly useful when the model is built with scale=T but pentrace does not apply that. In that case pentrace is applying the penalty to the unscaled coefficients to evaluate the log likelihood, but when the model is refit the penalty is applied to the scaled coefficients. With the changes in this branch you can now do

pentrace(fit, scale=T)