Learn R Programming

picasso (version 1.3.1)

predict.poisson: Prediction for an object with S3 class "poisson"

Description

Predicting responses of the given design data.

Usage

# S3 method for poisson
predict(object, newdata, lambda.idx = c(1:3), p.pred.idx = c(1:5), …)

Arguments

object

An object with S3 class "poisson"

newdata

An optional data frame in which to look for variables with which to predict. If omitted, the traning data of the are used.

lambda.idx

The indices of the regularizaiton parameters in the solution path to be displayed. The default values are c(1:3).

p.pred.idx

The indices of the predicted response vectors in the solution path to be displayed. The default values are c(1:5).

Arguments to be passed to methods.

Value

p.pred

The predicted response mean vectors based on the estimated models.

Details

predict.poisson produces predicted response mean (which is also the parameter for poisson distribution) for the newdata from the estimated beta values in the object, i.e. $$ \hat{p} = e^{\hat{\beta}_0 + X_{new} \hat{\beta}}. $$

See Also

picasso and picasso-package.