write_model_NoReg: Write .bug model file for model without regression

View source: R/write-model.R

write_model_NoRegR Documentation

Write .bug model file for model without regression

Description

write_model_NoReg automatically generates model file according to model_options

Usage

write_model_NoReg(
  k_subclass,
  Mobs,
  prior,
  cause_list,
  use_measurements,
  ppd = NULL,
  use_jags = FALSE
)

Arguments

k_subclass

the number of subclasses for the slices that require conditional dependence modeling (only applicable to BrS data); its length is of the same value as the number of BrS slices.

Mobs

measurement data in the form of data_nplcm

prior

prior specification from model_options

cause_list

a list of latent status names (crucial for building templates; see make_template())

use_measurements

"BrS", or "SS"

ppd

Default is NULL; set to TRUE for posterior predictive checking

use_jags

Default is FALSE; set to TRUE if want to use JAGS for model fitting.

Value

a long character string to be written into .bug file.

See Also

insert_bugfile_chunk_noreg_meas for inserting .bug file chunk for measurements (plug-and-play); insert_bugfile_chunk_noreg_etiology for inserting .bug file chunk for distribution of latent status (etiology).

Other model generation functions: write_model_Reg_Nest(), write_model_Reg_NoNest(), write_model_Reg_discrete_predictor_NoNest()


zhenkewu/baker documentation built on Feb. 7, 2024, 4:20 p.m.