predict.bivRegion: Prediction for a bivRegion object

View source: R/predict.bivRegion.R

predict.bivRegionR Documentation

Prediction for a bivRegion object

Description

This function takes a bivRegion object and allow to obtain region limits for a given covariate value if cond=TRUE. If not, it can be applied to a new dataset to evaluate which points will be included inside the standarized region (for instance, if we estimate a reference region with healthy patients results, we can know where non healthy patients will be located).

Usage

## S3 method for class 'bivRegion'
predict(object, tau = 0.95, newdata = NULL, cond = FALSE, ...)

Arguments

object

A bivRegion object.

tau

A number or vector defining the desired coverage(s) of the bivariate reference/probabilistic region.

newdata

An optional data frame containing new covariate values, or new observations.

cond

A logical argument, if TRUE, a matrix of values defining the conditional reference region limits is given.

...

Additional prediction parameters.

Value

This function returns reference region limits values for a given covariate value (if cond=TRUE), or which observations falls outside the estimated region (if cond=FALSE).


refreg documentation built on April 18, 2022, 5:07 p.m.