predict.eadrm: Makes predictions from an eadrm object

Description Usage Arguments Value See Also Examples

View source: R/ea_funcs.R

Description

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

Usage

1
2
## 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

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

eadrm documentation built on July 8, 2020, 6:20 p.m.

Related to predict.eadrm in eadrm...