theta_gen: Generates or replicates values of latent trait

Description Usage Arguments Value

View source: R/cIRF_functions.R

Description

If theta_se' is not null, values are generated using rnorm. Otherwise, each value is replicated.

Usage

1
theta_gen(n, theta, theta_se = NULL)

Arguments

n

number of values to generate / replicate for each value of theta.

theta

the latent trait.

theta_se

the standard error of the latent trait.

Value

An n * length(theta) vector in which each value theta is generated / replicated n times.


peterhalpin/cirt documentation built on July 15, 2018, 12:42 p.m.