pitilde_compute {COMBO} | R Documentation |
Compute Conditional Probability of Each Second-Stage Observed Outcome Given Each True Outcome and First-Stage Observed Outcome, for Every Subject
Description
Compute Conditional Probability of Each Second-Stage Observed Outcome Given Each True Outcome and First-Stage Observed Outcome, for Every Subject
Usage
pitilde_compute(delta, V, n, n_cat)
Arguments
delta |
A numeric array of regression parameters for the second-stage observed
outcome mechanism, |
V |
A numeric design matrix. |
n |
An integer value specifying the number of observations in the sample.
This value should be equal to the number of rows of the design matrix, |
n_cat |
The number of categorical values that the true outcome, |
Value
pitilde_compute
returns an array of conditional probabilities,
for each of the
n
subjects. Rows of the matrix
correspond to each subject and second-stage observed outcome. Specifically, the probability
for subject and observed category $1$ occurs at row
. The probability
for subject
and observed category $2$ occurs at row
n
.
Columns of the matrix correspond to the first-stage outcome categories,
n_cat
.
The third dimension of the array corresponds to the true outcome categories,
n_cat
.