predict.GEInfo: Make Predictions for a fitted model

Description Usage Arguments Value

View source: R/predict.GEInfo.R

Description

Output predicted response values for new observations.

Usage

1
2
## 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.


GEInfo documentation built on Jan. 11, 2022, 1:07 a.m.