predict.GEInfo {GEInfo}R Documentation

Make Predictions for a fitted model

Description

Output predicted response values for new observations.

Usage

## S3 method for class '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 pfor 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= “gaussian”, the fitted values are returned; for family = “binary”, the fitted probabilities are returned; for family = “poisson”, the fitted means are returned.


[Package GEInfo version 1.0 Index]