transformation {FactorCopula} | R Documentation |
Continuous/count to ordinal responses
Description
Transforming a continuous/count to ordinal variable with K
categories.
Usage
continuous2ordinal(continuous, categ)
count2ordinal(count, categ)
Arguments
continuous |
Matrix of continuous data. |
count |
Matrix of count data. |
categ |
The number of categories |
Examples
#------------------------------------------------
# PE Data
#------------------ -----------------
data(PE)
continuous.PE <- PE[, 1:2]
#Transforming the continuous to ordinal data :
tcontinuous = continuous2ordinal(continuous.PE, categ=5)
table(tcontinuous)
#Transforming the count to ordinal data:
set.seed(12345)
count.data = rpois(1000, 3)
tcount = count2ordinal(count.data, 5)
table(tcount)
[Package FactorCopula version 0.9.3 Index]