Function to calculate envelopes based on residuals for the bessel regression.
envelope_bes(
residual,
kap,
lam,
x,
v,
nsim_env,
prob,
n,
epsilon,
link.mean,
link.precision
)
character indicating the type of residual ("pearson", "score" or "quantile").
coefficients in kappa related to the mean parameter.
coefficients in lambda related to the precision parameter.
matrix containing the covariates for the mean submodel. Each column is a different covariate.
matrix containing the covariates for the precision submodel. Each column is a different covariate.
number of synthetic data sets to be generated.
confidence level of the envelope (number between 0 and 1).
sample size.
tolerance parameter used in the Expectation-Maximization algorithm applied to the synthetic data.
a string containing the link function for the mean. The possible link functions for the mean are "logit","probit", "cauchit", "cloglog".
a string containing the link function the precision parameter. The possible link functions for the precision parameter are "identity", "log", "sqrt", "inverse".
Matrix with dimension 2 x n (1st row = upper bound, second row = lower bound).