Compute the Mean Conditional Probability of Correct Classification, by True Outcome Across all Subjects
mean_pistarjj_compute(pistar_matrix, j, sample_size)
mean_pistarjj_compute
returns a numeric value equal to the average
conditional probability \(P(Y^* = j | Y = j, Z)\) across all subjects.
A numeric matrix of conditional probabilities obtained from
the internal function pistar_compute_for_chains
. Rows of the matrix correspond to
each subject and to each observed outcome category. Columns of the matrix
correspond to each true, latent outcome category.
An integer value representing the true outcome category to compute
the average conditional probability of correct classification for.
j
can take on values 1
and 2
.
An integer value specifying the number of observations in the sample.