predict method for bc2 fits.

# S3 method for 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.

See also

Author

Shahin Roshani