StanLCDM.run: Run Stan for estimationg LCDM

Description Usage Arguments Value Author(s)

View source: R/StanLCDM.run.R

Description

The StanLCDM.run function aims to automate runing Stan program to estimate LDCM.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
StanLCDM.run(
  Qmatrix,
  response.matrix,
  script.path = NA,
  save.path = getwd(),
  save.name = "LCDM_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 data matrix.

script.path

name the .stan

save.path

the directory the Stan Script file save to.

save.name

the file name for Stan script

iter

number of iteration for MCMC estimation. 1000 by default.

warmup

number of iterations for warmup.

chain.num

number of MCMC chains

init.list

random by default. It could be "cdm" or "random". If "cdm" was chosen, the starting values will be estimated using maximum-likehood based estimation.

control.list

constrains put on the LCDM model.

Value

MCMC stan object.

Author(s)

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


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