getpred.DN | R Documentation |
getpred.DN
extracts class, family and inverse of link function from a model object (supported in DynNom
).
getpred.DN(model, newd, set.rms=F)
model |
an |
newd |
a data frame of predictors for prediction |
set.rms |
a logical value indicating if data should be updated in the model object (required for |
A list including the prediction (pred
) and the standard error of prediction (SEpred
).
DynNom
, DNbuilder
fit1 <- glm(Survived ~ Age + Class + Sex, data = as.data.frame(Titanic), weights = Freq, family = binomial("probit")) getpred.DN(fit1, newd = data.frame(Class="1st", Sex="Male", Age="Child"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.