PoisBinOrdNor (version 1.1)

corr.nn4on: Finds polyserial correlation for given the correlation for an ordinal-normal pair.

Description

This function computes the polyserial correlation given the specified correlation for a pair of ordinal and normal variables (point-polyserial correlation).

Usage

corr.nn4on(p, ON.cor)

Arguments

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
ON.cor
Pre-specified correlation for a pair of ordinal-normal variables.

Value

  • A tetrachoric correlation coefficient.

Examples

Run this code
corr.nn4on(c(0.33, 0.66), 0.22)

Run the code above in your browser using DataCamp Workspace