predict.PLNfit: Predict counts of a new sample

View source: R/PLNfit-S3methods.R

predict.PLNfitR Documentation

Predict counts of a new sample

Description

Predict counts of a new sample

Usage

## S3 method for class 'PLNfit'
predict(object, newdata, type = c("link", "response"), ...)

Arguments

object

an R6 object with class PLNfit

newdata

A data frame in which to look for variables and offsets with which to predict

type

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

Value

A matrix of predicted log-counts (if type = "link") or predicted counts (if type = "response").


PLNmodels documentation built on Aug. 24, 2023, 5:11 p.m.