quantile_residual_bet {bbreg}R Documentation

quantile_residual_bet

Description

Function to calculate quantile residuals based on the beta regression. Details about this type of residual can be found in Pereira (2019).

Usage

quantile_residual_bet(kap, lam, z, x, v, link.mean, link.precision)

Arguments

kap

coefficients in kappa related to the mean parameter.

lam

coefficients in lambda related to the precision parameter.

z

response vector with 0 < z_i < 1.

x

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

v

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

link.mean

a string containing the link function for the mean. The possible link functions for the mean are "logit","probit", "cauchit", "cloglog".

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 quantile residuals.

References

DOI:10.1080/03610918.2017.1381740 (Pereira; 2019)

See Also

score_residual_bet


[Package bbreg version 2.0.2 Index]