Computes the gradient of the phase-function estimating equations with respect to the regression coefficients.
PhaseGradient(beta, S_y, C_y, WZ, t, estWeight)Numeric vector of length p + q containing the phase-function
gradient evaluated at beta.
Numeric vector of length p + q containing the regression
coefficients.
Numeric vector containing sum_j sin(t * Y_j) evaluated on
the grid t.
Numeric vector containing sum_j cos(t * Y_j) evaluated on
the grid t.
Numeric matrix of dimension n x (p + q) containing all
covariates.
Numeric vector giving the grid of frequency values.
Numeric vector of length n giving observation
weights.