get_ppmcdatasets: Generates data for posterior predictive model checks

Description Usage Arguments Value

View source: R/PPMC.R

Description

Generates data for posterior predictive model checks

Usage

1
2
3
4
5
6
7
8
get_ppmcdatasets(
  model,
  ppmcMethod,
  post_responses = NULL,
  sd = 1,
  n_samples = NULL,
  sequential = FALSE
)

Arguments

model

birtmsfit object

ppmcMethod

char; either 'C' for consevative checks or 'M' for mixed ppmc with independently drawn theta distribution

post_responses

data.frame; data generated with birtms::get_postdata

sd

double; standard deviation prior for theta distrubution (may be adjusted if person covars are used)

n_samples

integer; number of posterior samples to use (using all posterior samples might lead to memory overflow)

sequential

boolean; should mixed PPMC data be calculated sequential (slower but less memory intensive); try adjusting n_samples first

Value

data.frame to use with birtms::get_ppmccriteria


Famondir/birtms documentation built on Feb. 18, 2022, 2:51 a.m.