Learn R Programming

metan (version 1.19.0)

predict.gamem: Predict method for gamem fits

Description

Obtains predictions from an object fitted with gamem().

Usage

# S3 method for gamem
predict(object, ...)

Value

A tibble with the predicted values for each variable in the model

Arguments

object

An object of class gamem

...

Currently not used

Author

Tiago Olivoto tiagoolivoto@gmail.com

Examples

Run this code
# \donttest{
library(metan)
model <- gamem(data_g,
              gen = GEN,
              rep = REP,
              resp = everything())
predict(model)
# }

Run the code above in your browser using DataLab