EMrun_bet_dbb: EMrun_bet_dbb

View source: R/EM_DBB.R

EMrun_bet_dbbR Documentation

EMrun_bet_dbb

Description

Function (adapted for the discrimination test between bessel and beta - DBB) to run the Expectation-Maximization algorithm for the beta regression.

Usage

EMrun_bet_dbb(lam, z, v, mu, epsilon, link.precision)

Arguments

lam

initial values for the coefficients in lambda related to the precision parameter.

z

response vector with 0 < z_i < 1.

v

matrix containing the covariates for the precision submodel. Each column is a different covariate.

mu

mean parameter (vector having the same size of z).

epsilon

tolerance to controll convergence criterion.

link.precision

a string containing the link function the precision parameter. The possible link functions for the precision parameter are "identity", "log", "sqrt", "inverse".

Value

Vector containing the estimates for lam in the beta regression.


bbreg documentation built on March 18, 2022, 6:21 p.m.