Given survey responses, this function estimates the parameters of the latent variables assuming that the latent variables are normally distributed.

estimate_parameters(data, K, gamma1 = 0)

Arguments

data

survey responses, where the columns correspond to individual items. Apart from this, `data` can be of almost any class such as "data.frame" "matrix" or "array".

K

number of response categories, a vector or a number

gamma1

marginal skewness of latent variables, 0 by default

Value

a table of estimated parameters for each latent variable

See also

See [responsesR::estimate_mu_sd()] for univariate case.

Examples

estimate_parameters(data = c(2, 3, 1, 4, 4, 3, 1, 4, 5, 4), K = 5)
#>        mu        sd 
#> 0.2600814 1.0718754