Predict counts of a new sample
# S3 method for PLNfit
predict(object, newdata, type = c("link", "response"), ...)
A matrix of predicted log-counts (if type = "link"
) or predicted counts (if type = "response"
).
an R6 object with class PLNfit
A data frame in which to look for variables and offsets with which to predict
The type of prediction required. The default is on the scale of the linear predictors (i.e. log average count)
additional parameters for S3 compatibility. Not used