predict.bbreg {bbreg} | R Documentation |
Function to obtain various predictions based on the fitted model (bessel or beta).
## S3 method for class 'bbreg'
predict(
object,
newdata = NULL,
type = c("response", "link", "precision", "variance"),
...
)
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. |
fitted.bbreg
, summary.bbreg
, coef.bbreg
, vcov.bbreg
, plot.bbreg
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")