obsprof | R Documentation |
The function removes, from the set of possible profiles prof
derived from the multi-indicator system, those unobserved in the input dataset (i.e. profiles with associated frequency equal to zero). It returns an object of class S3 wprof
comprising the observed profiles and their frequencies.
obsprof(prof)
## S3 method for class 'wprof'
obsprof(prof)
prof |
object of S3 class |
prf <- var2prof(varlen = c(3, 3, 3))
prf$freq <- sample(c(0, 1), 3*3*3, replace = TRUE)
prf <- obsprof(prf)
plot(prf, shape = "equispaced")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.