powered by
getpred.DN extracts class, family and inverse of link function from a model object (supported in DynNom).
getpred.DN
DynNom
getpred.DN(model, newd, set.rms=F)
A list including the prediction (pred) and the standard error of prediction (SEpred).
pred
SEpred
an lm, glm, coxph, ols, Glm, lrm, cph, mgcv::gam or gam::gam model objects.
lm
glm
coxph
ols
Glm
lrm
cph
mgcv::gam
gam::gam
a data frame of predictors for prediction
a logical value indicating if data should be updated in the model object (required for rms model objects in DNbuilder).
rms
DNbuilder
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"))
Run the code above in your browser using DataLab