score_residual_bes {bbreg}R Documentation

score_residual_bes

Description

Function to calculate the empirical score residuals based on the bessel regression.

Usage

score_residual_bes(
  kap,
  lam,
  z,
  x,
  v,
  nsim_score = 100,
  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.

nsim_score

number synthetic data sets (default = 100) to be generated as a support to estime mean and s.d. of log(z)-log(1-z).

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

See Also

quantile_residual_bes


[Package bbreg version 2.0.1 Index]