search for: stmp2

Displaying 1 result from an estimated 1 matches for "stmp2".

Did you mean: tmp2
2018 Mar 02
0
Rstmp2 - linear predictors, AICs and BICs
...tical sessions related to the development and validation of clinical prediction models. These are currently written for Stata and I am in the process of writing them for use in R too (as I far prefer R to Stata!) Part of the practical requires the student to fit a flexible parametric model (using stmp2 in Stata). They then need to establish the AIC and BIC for models with different numbers of knots. Finally, they need to obtain the linear predictor for their chosen model. The AIC can easily be established using the following code: data(brcancer) fit_3k <- stpm2(Surv(rectime,censrec==1)~horm...