predict.rcgam: Predict method for rcgam model objects

Description Usage Arguments Value

View source: R/rcgam.R

Description

Predict method for rcgam model objects

Usage

1
2
3
4
## S3 method for class 'rcgam'
predict(object, smear = TRUE, retransform = TRUE,
  type = "response", restrict = FALSE, what = c("concentration", "load"),
  ...)

Arguments

object

an object of type rcgam, with which to make predictions

smear

Unbias the predictions using the smearing coefficient? Defaults to TRUE

type

What to predict. If not "response" (the default), then the following are coerced to be FALSE: retrans, restrict, smear. See ?predict.gam.

restrict

Restrict the range of predictions to those observed in the calibration data? Defaults to FALSE.

...

Other arguments passed to mgcv::predict.gam

retrans

Retransform the predictions into the original units? Defaults to TRUE

Value

a list with element "fit" and potentially others, depending on optional arguments passed. See help("predict.gam", package = "mgcv") for more info The difference is that here the returned value will always be a list, possibly of length 1.


markwh/rcmodel documentation built on May 21, 2019, 12:26 p.m.