| class_sizes | R Documentation |
class_sizes() returns the estimated class proportions and
item_probs() the class-conditional item-response probabilities of the
Step-1 measurement model underlying any fitted tseLCA object.
class_sizes(object, ...)
## S3 method for class 'tseLCA'
class_sizes(object, se = FALSE, ...)
item_probs(object, ...)
## S3 method for class 'tseLCA'
item_probs(object, se = FALSE, ...)
object |
A fitted |
... |
Further arguments (currently unused). |
se |
Logical. If |
With se = TRUE, their standard errors are returned as well. They are
obtained by the delta method from the variance of the measurement model's
log-ratio parameters (vcov() of the measurement model): class sizes are
the softmax of \log(\pi_t / \pi_1), and the response probabilities of
an item in class t the softmax of \log(P(Y = k \mid X = t) /
P(Y = 0 \mid X = t)). Parameters on the boundary of the parameter space
are treated as fixed and get a standard error of zero.
class_sizes(): a named numeric vector of length T summing to one.
item_probs(): a matrix with one row per item (binary items:
P(Y = 1 \mid X = t)) or per item category (polytomous items:
P(Y = k \mid X = t)) and one column per class. With se = TRUE,
a list with elements estimate and se of that form.
d <- generate_data(200, "high", "covariate", seed = 1)
m <- tse_lca(cbind(Y1, Y2, Y3, Y4, Y5, Y6) ~ 1, data = d, nclass = 3)
class_sizes(m)
item_probs(m)
item_probs(m, se = TRUE)$se
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.