pistar_by_chain {COMBO} | R Documentation |
Compute the Mean Conditional Probability of Correct Classification, by True Outcome Across all Subjects for each MCMC Chain
pistar_by_chain(n_chains, chains_list, Z, n, n_cat)
n_chains |
An integer specifying the number of MCMC chains to compute over. |
chains_list |
A numeric list containing the samples from |
Z |
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, |
pistar_by_chain
returns a numeric matrix of the average
conditional probability P(Y^* = j | Y = j, Z)
across all subjects for
each MCMC chain. Rows of the matrix correspond to MCMC chains, up to n_chains
.
The first column contains the conditional probability P(Y^* = 1 | Y = 1, Z)
.
The second column contains the conditional probability P(Y^* = 2 | Y = 2, Z)
.