R/make.R
make_betareg.Rd
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)
n x p design matrix (no intercept)
p+2 vector of coefficients, the first coefficient is the intercept, the last coefficient is the precision parameter.