ordY {CorrToolBox} | R Documentation |
Ordinalization of a Continuous Variable
Description
This functions creates an ordinalized form of a continuous variable.
Usage
ordY(mp, cat, y)
Arguments
mp |
A vector of marginal probabilities defining the ordinalized variable. |
cat |
A numeric vector containing the categories for each respective marginal probability in |
y |
A continuous variable to be ordinalized into categories in |
Value
A data frame containing the given continuous variable and the ordinalized variable with names y and x, respectively.
See Also
Examples
y<-rnorm(100000)
dat<-ordY(mp=c(0.25, 0.5, 0.25), cat=c(1,2,3), y=y)
[Package CorrToolBox version 1.6.4 Index]