insert_bugfile_chunk_noreg_meas: Insert measurement likelihood (without regression) code...

View source: R/write-model.R

insert_bugfile_chunk_noreg_measR Documentation

Insert measurement likelihood (without regression) code chunks into .bug model file

Description

Insert measurement likelihood (without regression) code chunks into .bug model file

Usage

insert_bugfile_chunk_noreg_meas(
  k_subclass,
  Mobs,
  prior,
  cause_list,
  use_measurements = "BrS",
  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 inserted into .bug model file as measurement likelihood

See Also

It is used in write_model_NoReg for constructing a .bug file along with specification of latent status distribution (insert_bugfile_chunk_noreg_etiology)


zhenkewu/baker documentation built on March 17, 2022, 9:54 p.m.