Description Usage Arguments Examples
This function calculates the values of the derivatives of all valid moment conditions for a single subject in a longitudinal study with count (0-n) outcomes. It is assumed that the count represents the number of events from n identical trials, and that n is equal for all subjects and times. This is modeled similarly to a Logistic Regression for Binomial responses. It allows for unbalanced data, and uses user-defined types of time-dependent covariates to determine validity of moment conditions. The function returns a matrix of derivatives for all valid moment condition for subject i.
1 | validMDBinom_Types(ymat, subjectIndex, Zmat, Xmat, covTypeVec, betaI, T, Tmax)
|
ymat |
The matrix of responses, ordered by subject, time within subject. The first column is the number of successes, the second the number of failures. |
subjectIndex |
The location of the first index of subject i responses within ymat. |
Zmat |
The design matrix for time-independent covariates. |
Xmat |
The design matrix for time-dependent covariates. |
covTypeVec |
The vector indicating the type of each time-dependent covariate. |
betaI |
The current or initial estimates of the model parameters. |
T |
The number of time points for subject i. |
Tmax |
The maximum number of times of observation among all subjects. |
N |
The number of subjects. |
1 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.