TSGMM_Hurdle: Two-Step Generalized Method of Moments, Longitudinal Hurdle...

Description Usage Arguments Examples

Description

This function calculates the Generalized Method of Moments (GMM) parameter estimates and standard errors for longitudinal excess zero count responses using a hurdle model formulation. The function allows for unbalanced data, meaning subjects can have different numbers of times of observation. Both time-independent covariates and time-dependent covariates can be accommodated. Time-dependent covariates can be handled either by specifying the type of each time-dependent covariate, or by allowing the data to determine appropriate moment conditions through the extended classification method. Data must be organized by subject, and an intercept term is assumed for both the logistic and truncated count components of the model. The function outputs a list with parameter estimates betaHat_l and betaHat_c for the logistic and count components, respectively, along with parameter covariance estimates covEst_l and covEst_c.

Usage

1
2
TSGMM_Hurdle(y, subjectID, N, Tvec, X_l, Z_l, X_c, Z_c, mc = "EC",
  covTypeVec_l = c(-1), covTypeVec_c = c(-1))

Arguments

y

The vector of response counts, ordered by subject, time within subject.

subjectID

The vector of subject ID values for each response.

N

The number of subjects.

Tvec

The vector of times for each subject (N x 1)

X_l

The design matrix for time-dependent covariates in the logistic component of the model, excluding an intercept.

Z_l

The design matrix for time-independent covariates in the logistic component of the model, excluding an intercept.

X_c

The design matrix for time-dependent covariates in the truncated count component of the model, excluding an intercept.

Z_c

The design matrix for time-independent covariates in the truncated count component of the model, excluding an intercept.

mc

The method of identifying appropriate moment conditions, either 'EC' for extended classification (default) or 'Types' for user-identified types.

covTypeVec

The vector indicating the type of each time-dependent covariate, according to the order of the columns of X_l and X_c.

Examples

1

lalondetl/GMM documentation built on May 30, 2019, 11:40 p.m.