Description Usage Arguments Examples
This function calculates the values of the valid moment conditions for a single subject in a longitudinal study with zero-truncated count ("positive Poisson") outcomes. It allows for unbalanced data, and uses the extended classification method to determine validity of moment conditions. The function returns a vector of valid moment condition values for subject i, along with an updated count vector of the number of valid moment conditions.
1 | validMCPP_EC(yvec, subjectIndex, Zmat, Xmat, betaI, T, Tmax, Count, types)
|
yvec |
The vector of responses, ordered by subject, time within subject. |
subjectIndex |
The location of the first index of subject i responses within yvec. |
Zmat |
The design matrix for time-independent covariates ((N*T) x K0). |
Xmat |
The design matrix for time-dependent covariates ((N*T) x Ktv). |
betaI |
The current or initial estimates of the model parameters (1+K0+Ktv x 1). |
T |
The number of time points for subject i. |
Tmax |
The maximum number of times of observation among all subjects. |
Count |
A vector of running counts of the number of valid moment conditions for all subjects. |
types |
A matrix indicating valid moment conditions for all time-dependent covariate parameters. |
1 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.