search for: coxph_model

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

2013 Nov 14
1
issues with calling predict.coxph.penal (survival) inside a function
...fit(model) ) and then adapts them with > > the predicted risk-scores. Because there are cases where my new data has > strata which didn't exist in the original model I exclude > > them, using a Boolean vector inside the function. > > I end up with a call like this: predict (coxph_model, > newdata[subscript_vector,] ) > > > > This works fine for coxph.model, but when I fit a model with a spline > (class coxph.penal), I get an error: > > "Error in `[.data.frame`(newdata, [subscript_vector, ) : object > '[subscript_vector ' not found" &gt...