predict.bc2: predict.bc2

Description Usage Arguments Value Author(s) See Also

View source: R/predict.bc2.R

Description

predict method for bc2 fits.

Usage

1
2
## S3 method for class 'bc2'
predict(object, newdata, interval = "prediction", alpha = 0.05, ...)

Arguments

object

a fitted object of class inheriting from "bc2".

newdata

Data (tibble or data.frame) containing predictor information of new records.

interval

Type of interval for predictions. Valid inputs are 'confidence' or 'prediction'. Default is 'prediction'.

alpha

alpha value for creating the interval(s) of new prediction(s). Default is 0.05.

...

Other predict arguments (Not being used by objects of class bc2).

Value

A list of length 2. Each slot of this list contains a tibble with the information of predictions and their related intervals for each response.

Author(s)

Shahin Roshani

See Also

https://shahin-roshani.github.io/BC2/


Shahin-Roshani/BC2 documentation built on Dec. 18, 2021, 1:05 p.m.