estimate_params {latent2likert}R Documentation

Estimate Latent Parameters

Description

Estimates the location and scaling parameters of the latent variables from existing survey data.

Usage

estimate_params(data, n_levels, skew = 0)

Arguments

data

survey data with columns representing individual items. Apart from this, data can be of almost any class such as "data.frame" "matrix" or "array".

n_levels

number of response categories, a vector or a number.

skew

marginal skewness of latent variables, defaults to 0.

Details

The relationship between the continuous random variable XX and the discrete probability distribution pkp_k, for k=1,,Kk = 1, \dots, K, can be described by a system of non-linear equations:

pk=FX(xk1ξω)FX(xkξω)for k=1,,K p_{k} = F_{X}\left( \frac{x_{k - 1} - \xi}{\omega} \right) - F_{X}\left( \frac{x_{k} - \xi}{\omega} \right) \quad \text{for} \ k = 1, \dots, K

where:

FXF_{X}

is the cumulative distribution function of XX,

KK

is the number of possible response categories,

xkx_{k}

are the endpoints defining the boundaries of the response categories,

pkp_{k}

is the probability of the kk-th response category,

ξ\xi

is the location parameter of XX,

ω\omega

is the scaling parameter of XX.

The endpoints xkx_{k} are calculated by discretizing a random variable ZZ with mean 0 and standard deviation 1 that follows the same distribution as XX. By solving the above system of non-linear equations iteratively, we can find the parameters that best fit the observed discrete probability distribution pkp_{k}.

The function estimate_params:

Value

A table of estimated parameters for each latent variable.

See Also

discretize_density for details on calculating the endpoints, and part_bfi for example of the survey data.

Examples

data(part_bfi)
vars <- c("A1", "A2", "A3", "A4", "A5")
estimate_params(data = part_bfi[, vars], n_levels = 6)

[Package latent2likert version 1.2.1 Index]