Learn R Programming

NADA (version 1.6-1.1)

predict-methods: Methods for function predict in package NADA

Description

Functions that perform predictions using NADA model objects.

For ros models, predict the normal quantile of a value.

For cenfit objects, predict the probabilities of new observations.

Usage

# S4 method for ros
predict(object, newdata, ...)

# S4 method for cenfit predict(object, newdata, conf.int=FALSE, ...)

# S4 method for cenreg predict(object, newdata, conf.int=FALSE, ...)

# S4 method for cenfit pexceed(object, newdata, conf.int=FALSE, ...)

# S4 method for ros pexceed(object, newdata, conf.int=FALSE, conf.level=0.95, ...)

Arguments

object

An output object from a NADA function such as ros.

newdata

Numeric vector of data for which to predict model values. For ros objects this will be new normalized quantiles of plotting positions. For cenfit objects this will be new observations for which you desire the modeled probabilities.

conf.int

A logical indicating if confidence intervals should be computed. For cenfit objects, the confidence interval is set during the call to cenfit. Currently not supported for ros objects.

conf.level

The actual confidence level to which to bracket the prediction. Default is 0.95

...

Additional arguments passed to the generic method.