Learn R Programming

glmmTMB (version 0.1.1)

predict.glmmTMB: prediction

Description

prediction

Usage

# S3 method for glmmTMB
predict(object, newdata = NULL, se.fit = FALSE, re.form,
  allow.new.levels = FALSE, zitype = c("response", "conditional", "zprob"),
  debug = FALSE, ...)

Arguments

object
a glmmTMB object
newdata
new data for prediction
se.fit
return the standard errors of the predicted values?
re.form
(not yet implemented) specify which random effects to condition on when predicting
allow.new.levels
(not yet implemented) allow previously unobserved levels in random-effects grouping variables?
zitype
for zero-inflated models, return expected value ("response": (mu*(1-p))), the mean of the conditional distribution ("conditional": mu), or the probability of a structural zero ("zprob")?
debug
(logical) return the TMBStruc object that will be used internally for debuggin?
unused - for method compatibility

Examples

Run this code
data(sleepstudy,package="lme4")
g0 <- glmmTMB(Reaction~Days+(Days|Subject),sleepstudy)
predict(g0, sleepstudy)

Run the code above in your browser using DataLab