Learn R Programming

GEInfo (version 1.0)

predict.GEInfo: Make Predictions for a fitted model

Description

Output predicted response values for new observations.

Usage

# S3 method for GEInfo
predict(object, Enew, Gnew, family, ...)

Arguments

object

A fitted "GEInfo" model object for which prediction is desired.

Enew

Matrix of dimensions \(n_test x q\) for E variables at which predictions are to be made.

Gnew

Matrix of dimensions \(n_test x p\)for G variables at which predictions are to be made.

family

Model type: one of ("gaussian", "binomial", "poisson").

...

Other arguments.

Value

Return a vector of length \(n_test\), representing the fitted response value. For family= <U+201C>gaussian<U+201D>, the fitted values are returned; for family = <U+201C>binary<U+201D>, the fitted probabilities are returned; for family = <U+201C>poisson<U+201D>, the fitted means are returned.