Learn R Programming

truthiness (version 1.2.5)

eta2resp: Simulate Ordinal Response Choices from Log Odds

Description

Simulate Ordinal Response Choices from Log Odds

Usage

eta2resp(eta, thresh)

Arguments

eta

Predicted response tendency or tendencies on log odds scale.

thresh

Cut-points (thresholds).

Value

A vector of the same length as eta with simulated integer response values, one for each eta value.

Examples

Run this code
# NOT RUN {
# N=10 with eta = 0 and 6 point scale from N&E
eta2resp(rep(0, 10), clmm_maximal$alpha)

# N=10 with eta = 0 and 7 point scale
eta2resp(rep(0, 10), alpha_6_to_7(clmm_maximal$alpha))

# N=10 with eta = 4 and 6 point scale from N&E
eta2resp(rep(4, 10), clmm_maximal$alpha)

# N=10 with eta = 4 and 7 point scale
eta2resp(rep(4, 10), alpha_6_to_7(clmm_maximal$alpha))

# }

Run the code above in your browser using DataLab