gen: Generate data for a model

Description Usage Arguments Value Author(s) See Also Examples

Description

This function generates a context with a specified data unit activated

Usage

1
gen(model, pars, n = 1, progress = FALSE)

Arguments

model

a character string indicates which model governs the generating process.

pars

a context

n

numer of runs

progress

a boolean value indicates if the generating steps should be printed or not.

Value

a context with its data unit activated

Author(s)

Hoang-Trieu Trinh, thtrieu@apcs.vn

See Also

get.par

Examples

1
2
3
4
5
6
7
8
# Defind a context
p <- pars(students = 20, items = 15)
# Generate data from p by POKS model (Partial Order Knowledge Structure model) twice
poks.data <- gen("poks", p, n = 2, progress = TRUE)
# poks.data is a list of two contexts (since we generated data twice)
poks.data
# To access to the generated data, access to poks component
poks.data[[1]]$poks 

thtrieu/edmsyn documentation built on May 31, 2019, 11:18 a.m.