corr.nn4on {PoisBinOrdNor} | R Documentation |
This function computes the polyserial correlation given the specified correlation for a pair of ordinal and normal variables (point-polyserial correlation).
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.
## Not run:
corr.nn4on(c(0.33, 0.66), 0.22)
## End(Not run)