Learn R Programming

PhaseGMM (version 0.1.0)

estim_eq_correctedAndPhase: Combined estimating equations: moment correction and phase function

Description

Constructs a stacked system of estimating equations combining moment-corrected score equations and phase-function score equations.

Usage

estim_eq_correctedAndPhase(
  Wbar,
  Zmat,
  y,
  S_y,
  C_y,
  b_in,
  estWeight,
  estSigmaU_bar,
  t
)

Value

Numeric vector containing the stacked estimating equations of length

2 * (p + q).

Arguments

Wbar

Numeric matrix of dimension n x p containing averaged error-prone covariates.

Zmat

Numeric matrix of dimension n x q containing error-free covariates (including an intercept if required).

y

Numeric vector of length n containing the response.

S_y

Numeric vector containing precomputed sine terms for the phase function.

C_y

Numeric vector containing precomputed cosine terms for the phase function.

b_in

Numeric vector of length p + q at which the estimating equations are evaluated.

estWeight

Numeric vector of weights used in the phase-function component.

estSigmaU_bar

Numeric array of dimension n x p x p containing measurement error covariance estimates.

t

Numeric vector of frequency values used in the phase function.