ordinalize: Ordinalizes the standard normal variable

Description Usage Arguments Value

View source: R/ordinalize.R

Description

The function transforms the standard normal variable to an ordinal variable with a specified probability for each category.

Usage

1

Arguments

pvec

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 pvec will contain k-1 probabilities. The k-th element is implicitly 1.

z

A vector of samples from the standard normal distribution.

Value

A vector of ordinalized variates.


OrdNor documentation built on March 6, 2021, 1:08 a.m.