predict.gamem: Predict method for gamem fits

Description Usage Arguments Value Author(s) Examples

Description

Obtains predictions from an object fitted with gamem().

Usage

1
2
## S3 method for class 'gamem'
predict(object, ...)

Arguments

object

An object of class gamem

...

Currently not used

Value

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

Author(s)

Tiago Olivoto tiagoolivoto@gmail.com

Examples

1
2
3
4
5
6
library(metan)
model <- gamem(data_g,
              gen = GEN,
              rep = REP,
              resp = everything())
predict(model)

metan documentation built on Nov. 10, 2021, 9:11 a.m.