yates_setup | R Documentation |
yates
function.
This is a method which is called by the yates
function, in order to setup the code to handle a particular
model type. Methods for glm, coxph, and default are part of
the survival package.
yates_setup(fit, ...)
fit |
a fitted model object |
... |
optional arguments for some methods |
If the predicted value should be the linear predictor, the function
should return NULL. The yates
routine has particularly efficient
code for this case.
Otherwise it should return a prediction function or a list of two
elements containing the prediction function and a summary function.
The prediction function will be passed the linear predictor as a single
argument and should return a vector of predicted values.
See the vignette on population prediction for more details.
Terry Therneau
yates
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.