StanDINO.run: DCM calibration under the DINA model via Stan

Description Usage Arguments Value Author(s) Examples

View source: R/StanDINO.run.R

Description

StanDINA uses Stan program to calibrate the deterministic inputs, noisy and gate model for dichotomous responses, and its extension

In addition, users are allowed to specify design matrix and link function for each item, and distinct models may be used in a single test for different items. The attributions can be either dichomous or polytomous.

Usage

1
2
StanDINA.run<-function(Qmatrix,response.matrix,script.path=NA,save.path=getwd(),save.name="DINA_uninf",iter=1000,warmup = floor(iter/2),
chain.num=3,init.list='random',control.list=NA)

Arguments

Qmatrix

the Q-matrix specified for the LCDM

response.matrix

the response matrix

script.path

the path to save the .stan file to somewhere; the default path is getwd()

save.path

the path to save the .stan file to somewhere; the default path is getwd()

save.name

name of the .stan

iter

number of iterations

warmup

number of warmup iterations

chain.num

number of MCMC chains. Default is 3.

init.list

initial variables. Default is random. Other options include cdm

control.list

the control values

Value

StanDINA returens an object of class StanDINA. Methods for StanDINA objects include

Author(s)

Zhehan Jiang, University of Alabama, zjiang17@ua.edu
Jihong Zhang, University of Iowa, jihong-zhang@uiowa.edu

Examples

1
2
3
4
5
6
## Not run: 
#----------- DINO model-----------#
mod1<-StanDINO.run(Qmatrix, respMatrix, iter=20, init.list='cdm', chain.num = 3)
summary(mod1)

## End(Not run)

JihongZ/StanDCM documentation built on June 27, 2020, 7:51 a.m.