predict.eadrm: Makes predictions from an eadrm object

View source: R/ea_funcs.R

predict.eadrmR Documentation

Makes predictions from an eadrm object

Description

Similar to other predict methods, this function predicts fitted values (and optionally confidence intervals) for a eadrm object.

Usage

## S3 method for class 'eadrm'
predict(object, newx = object$xvals, ci.obj = NULL, ...)

Arguments

object

Fitted model of class eadrm.

newx

Vector of new concentration values at which predictions are to be made. Defaults to the concentration values that were used to fit the model.

ci.obj

Output from eadrm.ci that is used to compute confidence intervals. Defaults to NULL, in which case no confidence intervals are computed.

...

Additional arguments passed to or from other methods. Currently ignored.

Value

If no confidence intervals are requested, a vector of predicted responses for each concentration in newx is returned. Otherwise returns a list of three vectors yhat.med, yhat.l95, and yhat.u95, which correspond to the median predicted response and lower/upper 95% confidence bounds for each concentration in newx.

See Also

eadrm, eadrm.ci

Examples

ea.fit <- eadrm(CarboA$y, CarboA$x)
predict(ea.fit)

eadrm documentation built on May 30, 2022, 1:08 a.m.

Related to predict.eadrm in eadrm...