computeGammaUnSVD {WALS}R Documentation

Internal function: Computes unrestricted one-step ML estimator for transformed regressors in walsNB

Description

Computes one-step ML estimator for the unrestricted model in walsNB (coefs of transformed regressors Zˉ\bar{Z}) by using SVD on entire transformed design matrix Zˉ\bar{Z}. The matrix Zˉ\bar{Z} should have full column rank.

Usage

computeGammaUnSVD(
  U,
  V,
  singularVals,
  ellStart,
  gStart,
  epsilonStart,
  qStart,
  y0Start,
  tStart,
  psiStart
)

Arguments

U

Left singular vectors of Zˉ\bar{Z} or Zˉ1\bar{Z}_{1} from svd.

V

Right singular vectors of Zˉ\bar{Z} or Zˉ1\bar{Z}_{1} from svd.

singularVals

Singular values of Zˉ\bar{Z} or Zˉ1\bar{Z}_{1} from svd.

ellStart

Vector ˉ\bar{\ell} see details.

gStart

Derivative of dispersion parameter ρ\rho of NB2 with respect to α=log(ρ)\alpha = \log(\rho) evaluated at starting values of one-step ML. gStart is a scalar. See section "ML estimation" of Huynh (2024a).

epsilonStart

Scalar ϵˉ\bar{\epsilon}, see section "One-step ML estimator" of Huynh (2024a) for definition.

qStart

Vector qˉ\bar{q}, see section "One-step ML estimator" of Huynh (2024a) for definition.

y0Start

Vector yˉ0\bar{y}_0, see section "One-step ML estimator" of Huynh (2024a) for definition.

tStart

Scalar tˉ\bar{t}, see section "One-step ML estimator" of Huynh (2024a) for definition.

psiStart

Diagonal matrix Ψˉ\bar{\Psi}, see section "One-step ML estimator" of Huynh (2024a) for definition.

Details

See section "Simplification for computing γ~u\tilde{\gamma}_{u}" in the appendix of Huynh (2024b) for details of the implementation and for the definitions of argument ellStart.

All parameters that contain "start" feature the starting values for the one-step ML estimation of submodels. See section "One-step ML estimator" of Huynh (2024a) for details.

Uses svdLSplus under-the-hood.

References

Huynh K (2024a). “Weighted-Average Least Squares for Negative Binomial Regression.” arXiv 2404.11324, arXiv.org E-Print Archive. doi:10.48550/arXiv.2404.11324.

Huynh K (2024b). “WALS: Weighted-Average Least Squares Model Averaging in R.” University of Basel. Mimeo.


[Package WALS version 0.2.5 Index]