Learn R Programming

CDM (version 2.7-7)

skillspace.approximation: Skill Space Approximation

Description

This function appoximates the skill space with $K$ skills to approximate a (typically high-dimensional) skill space of $2^K$ classes by $L$ classes $(L < 2^K)$.

Usage

skillspace.approximation(L, K, nmax = 5000)

Arguments

L
Number of skill classes used for approximation
K
Number of skills
nmax
Number of quasi-randomly generated skill classes using the QUnif function in sfsmisc

Value

  • A matrix containing skill classes in rows

See Also

See also gdina (Example 9).

Examples

Run this code
#############################################################################
# EXAMPLE 1: Approximate a skill space of K=8 eight skills by 20 classes
#############################################################################

# => 2^8 = 256 latent classes if all latent classes would be used
skillspace.approximation( L=20  , K=8 )
##             [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8]
##   P00000000    0    0    0    0    0    0    0    0
##   P00000001    0    0    0    0    0    0    0    1
##   P00001011    0    0    0    0    1    0    1    1
##   P00010011    0    0    0    1    0    0    1    1
##   P00101001    0    0    1    0    1    0    0    1
##   [...]
##   P11011110    1    1    0    1    1    1    1    0
##   P11100110    1    1    1    0    0    1    1    0
##   P11111111    1    1    1    1    1    1    1    1

Run the code above in your browser using DataLab