Learn R Programming

betareg (version 1.0-1)

predict.betareg: Predicted values from beta regression model.

Description

This function returns the predicted values based on beta regression models.

Usage

predict.betareg(object, terms,...)

Arguments

object
Fitted model using betareg
terms
A matrix or a vector containing the values that you want to have the predict.
...
Optional arguments

References

FERRARI, S.L.P., CRIBARI-NETO, F. (2004). Beta regression for modeling rates and proportions. Journal of Applied Statistics, forthcoming.

See Also

betareg, br.fit, summary.betareg, residuals.betareg

Examples

Run this code
data(pratergrouped)
attach(pratergrouped)
y <- V11/100
X <- cbind(V1,V2,V3,V4,V5,V6,V7,V8,V9,V10)
fit <- betareg(y ~ X)
predict(fit)
predict(fit,c(2,3,4,5,6,7,8,9,10,11))

Run the code above in your browser using DataLab