predict.lmgce {GCEstim}R Documentation

Predict method for lmgce Linear Model Fits

Description

Predicted values based on a fitted model lmgce object.

Usage

## S3 method for class 'lmgce'
predict(
  object,
  newdata,
  interval = c("none", "confidence"),
  type = c("response", "terms"),
  level = 0.95,
  terms = NULL,
  na.action = na.pass,
  ...
)

Arguments

object

Fitted lmgce model object.

newdata

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

interval

One of c("none", "confidence"). Type of interval calculation. Can be abbreviated.

type

One of c("response", "terms"). Type of prediction (response or model term). Can be abbreviated.

level

Tolerance/confidence level (0,1).

terms

if type = "terms", which terms (default is all terms), a character vector.

na.action

function determining what should be done with missing values in newdata. The default is to predict NA.

...

additional arguments.

Value

predict.lmgce produces a vector of predictions.

Author(s)

Jorge Cabral, jorgecabral@ua.pt

Examples


res_gce_package <-
  lmgce(y ~ .,
        data = dataGCE,
        boot.B = 50,
        seed = 230676)


predict(res_gce_package, dataGCE.test)


[Package GCEstim version 0.1.0 Index]