It creates an object of class betareg from betareg package, as one would obtain when fitting a beta regression, but here there is no fit, one simply provides a design matrix and coefficients. This function is particularly useful in conjunction with simulation method from the ib package to simulate from this model.

make_betareg(x, coefficients)

Arguments

x

n x p design matrix (no intercept)

coefficients

p+2 vector of coefficients, the first coefficient is the intercept, the last coefficient is the precision parameter.

See also