eta2resp: Simulate Ordinal Response Choices from Log Odds

Description Usage Arguments Value Examples

View source: R/misc.R

Description

Simulate Ordinal Response Choices from Log Odds

Usage

1
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

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
# 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))

truthiness documentation built on May 24, 2021, 9:07 a.m.