check_common_pattern: Posterior predictive checking for the nested partially class...

Description Usage Arguments Value

View source: R/check-common-pattern.R

Description

At each MCMC iteration, we generate a new data set based on the model and parameter values at that iteration. The sample size of the new data set equals that of the actual data set, i.e. the same number of cases and controls.

Usage

1
2
check_common_pattern(DIR_NPLCM, npat.case = 10, npat.ctrl = 10,
  cex.pattern = 1)

Arguments

DIR_NPLCM

File path to the folder that stores results from npLCM fit.

npat.case

Number of the most common BrS measurement pattern among cases. Default is 10.

npat.ctrl

Number of the most common BrS measurement pattern among controls. Default is 10.

cex.pattern

Size of patterns; Default is 1.

Value

A figure of posterior predicted frequencies compared with the observed frequencies of the most common patterns for the BrS data. The function generates this figure in your working directory automatically.


zhenkewu/nplcm documentation built on May 4, 2019, 10:19 p.m.