powered by
Build a data.frame for prediction, where one variable varies and all other variables are set to the reference value (median for continuous variables.)
data.frame
predDF(...)# S3 method for formula predDF(formula, dat, var, ...)# S3 method for JointAI predDF(object, var, ...)
# S3 method for formula predDF(formula, dat, var, ...)
# S3 method for JointAI predDF(object, var, ...)
optional, additional arguments (currently not used)
model formula (only fixed effects)
original data
name of variable that should be varying
object inheriting from class JointAI
JointAI
predict.JointAI, lme_imp, glm_imp, lm_imp
predict.JointAI
lme_imp
glm_imp
lm_imp
# NOT RUN { mod <- lm_imp(y~C1 + C2 + M2, data = wideDF, n.iter = 100) newDF <- predDF(mod, var = "C2") # }
Run the code above in your browser using DataLab