theta_gen: Generates or replicates values of latent trait

Description Usage Arguments Value

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/BearShare documentation built on May 25, 2019, 12:48 a.m.