predict.bbreg: predict.bbreg

Description Usage Arguments See Also Examples

View source: R/explore_functions.R

Description

Function to obtain various predictions based on the fitted model (bessel or beta).

Usage

1
2
3
4
5
6
7
## S3 method for class 'bbreg'
predict(
  object,
  newdata = NULL,
  type = c("response", "link", "precision", "variance"),
  ...
)

Arguments

object

object of class "bbreg" containing results from the fitted model.

newdata

optionally, a data frame in which to look for variables with which to predict. If omitted, the fitted response values will be provided.

type

the type of prediction. The default is the "response" type, which provided the estimated values for the means. The type "link" provides the estimates for the linear predictor. The type "precision" provides estimates for the precision parameters whereas the type "variance" provides estimates for the variances.

...

further arguments passed to or from other methods.

See Also

fitted.bbreg, summary.bbreg, coef.bbreg, vcov.bbreg, plot.bbreg

Examples

1
2
3
4
5
fit = bbreg(agreement ~ priming + eliciting, data = WT)
predict(fit)
new_data_example = data.frame(priming = c(0,0,1), eliciting = c(0,1,1))
predict(fit, new_data = new_data_example)
predict(fit, new_data = new_data_example, type = "precision")

bbreg documentation built on Jan. 13, 2021, 8:13 p.m.