rasch_respgen_fun: Rasch partial credit model response generating function

Description Usage Arguments Examples

View source: R/rasch_respgen_fun.R

Description

Creates responses based on the Rasch partial credit model.

Usage

1
rasch_respgen_fun(pers_ability, item_diff, item_thrsh)

Arguments

pers_ability

is a value equal to the personal ability measure

item_diff

is a value equal to the item difficulty.

item_thrsh

is a vector of the item thresholds. If dichotomous, item_thrsh will be a single value.

Examples

1
2
3
4
5
6
7
8
9
set.seed(1010)
ability = rnorm(1,0,1)  #simulated person ability
difficulty  = rnorm(1,0,1)  #simulated item difficulty

a = rnorm(2, 0, 1)
b = -a
thresholds = c(a, b) #simulated threshold measures

rasch_respgen_fun(ability, difficulty, thresholds)

faffr/calsim documentation built on May 29, 2019, 4:46 a.m.