Description Usage Arguments Value Examples
This function computes the polyserial correlation given the specified correlation for a pair of ordinal and normal variables (point-polyserial correlation).
1 | corr.nn4on(p, ON.cor)
|
p |
A vector of probabilities for an ordinal variable. The i-th element of the pvec is the cumulative probability defining the marginal distribution of the ordinal variable. If the variable has k categories, the i-th element of p will contain k-1 probabilities. The k-th element is implicitly 1. |
ON.cor |
Pre-specified correlation for a pair of ordinal-normal variables. |
A tetrachoric correlation coefficient.
1 2 3 4 | ## Not run:
corr.nn4on(c(0.33, 0.66), 0.22)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.