View source: R/esti_polychoric.R
esti_polychoric | R Documentation |
Estimate the polychoric correlation coefficient.
esti_polychoric(X, maxn = 100, e = 1e-08, ct = FALSE)
X |
a matrix(2*N) or dataframe contains two polychoric variable, or a contingency table with both columns and rows names. |
maxn |
the maximum iterations times. |
e |
the maximum tolerance of convergence. |
ct |
|
rho |
estimated value of polychoric correlation coefficient. |
std |
standard deviation of rho. |
iter |
times of iteration convergence. |
Ex , Ey |
the support points series of regression model |
Zhang, P., Liu, B., & Pan, J. (2024). Iteratively Reweighted Least Squares Method for Estimating Polyserial and Polychoric Correlation Coefficients. Journal of Computational and Graphical Statistics, 33(1), 316–328. https://doi.org/10.1080/10618600.2023.2257251
esti_polyserial
X = gen_polychoric(1000,0.5,0:1,-1:0)
result = esti_polychoric(X)
print(c(result$rho,result$std,result$iter))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.