StanNCRUM.run: Generate Stan code and Run the estimation for NCRUM

Description Usage Arguments Value Author(s)

View source: R/StanNCRUM.run.R

Description

The StanNCRUM.script Function to automate Stan code geneartion for LCDMs with binary resposnes

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
StanNCRUM.run(
  Qmatrix,
  response.matrix,
  script.path = NA,
  save.path = getwd(),
  save.name = "NCRUM_uninf",
  iter = 1000,
  warmup = 0,
  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

constrains put on the multigroup NCRUM model.

Value

a. stan file saved at the specified path

Author(s)

Zhehan Jiang, University of Alabama, zjiang17@ua.edu


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