make_betareg: Construct a 'betareg' object for beta regression with...

View source: R/make.R

make_betaregR Documentation

Construct a 'betareg' object for beta regression with predefined coefficients

Description

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.

Usage

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

betareg, simulation


samorso/IBpaper documentation built on April 29, 2022, 10:21 p.m.