Learn R Programming

SNSequate (version 1.3-4)

sim_unimodal: Simulate test scores.

Description

Simulate test scores from a negative-hypergeometric (beta-binomial) distribution, according to Keats & Lord (1962).

Usage

sim_unimodal(n, x_mean, x_var, N_item, seed = NULL, name = NULL)

Value

Simulated values.

Arguments

n

Size of the resulting sample.

x_mean

Mean of the target distribution.

x_var

Variance of the target distribution.

N_item

Number of items in the test.

seed

Optional. Seed for the random number generator.

name

Optional. Generate X and Y scores from the data according 5 of the proposed distributions in Keats & Lord (1967). Overrides any other previous parameter input set.

Author

Daniel Leon Acuna, dnacuna@uc.cl

Details

Simulate test scores from a negative-hypergeometric (beta-binomial) distribution, according to Keats & Lord (1962).

References

Keats, J. A., & Lord, F. M. (1962). A theoretical distribution for mental test scores. Psychometrika, 27(1), 59-72.

Examples

Run this code

sim_unimodal(2354, 27.06, 8.19^2, 40)  # GANA
sim_unimodal(name="TQS8")

Run the code above in your browser using DataLab