Predict counts of a new sample
an R6 object with class PLNfit
A data frame in which to look for variables and offsets with which to predict
Optional data frame containing the count of the observed variables (matching the names of the provided as data in the PLN function), assuming the interest in in testing the model.
Optional integer value the level to be used in obtaining the predictions. Level zero corresponds to the population predictions (default if responses
is not provided) while level one (default) corresponds to predictions after evaluating the variational parameters for the new data.
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
A matrix of predicted log-counts (if type = "link"
) or predicted counts (if type = "response"
).