polychoric_likelihood {exametrika} | R Documentation |
Calculate Polychoric Correlation Likelihood
Description
Calculates the negative log-likelihood for estimating polychoric correlation from a contingency table of two ordinal variables.
Usage
polychoric_likelihood(rho, mat)
Arguments
rho |
Numeric value between -1 and 1, the correlation coefficient |
mat |
A contingency table matrix for two ordinal variables |
Details
The function estimates thresholds from the marginal distributions and calculates the expected probabilities based on a bivariate normal distribution. It then computes the log-likelihood by comparing observed and expected frequencies.
Value
The negative log-likelihood value for the given correlation coefficient
[Package exametrika version 1.5.1 Index]