sample_store {pmwg}R Documentation

Create a new list for storage samples in the pmwgs object

Description

Create a new list for storage samples in the pmwgs object

Usage

sample_store(par_names, subject_ids, iters = 1, stage = "init")

Arguments

par_names

The names of each parameter as a character vector

subject_ids

The unique ID of each subjects as a character vector

iters

The number of iterations to be pre-allocated

stage

The stage for which the samples will be created. Should be one of c("init", "burn", "adapt", "sample")

Value

A list containing the conditional mean and variances for this subject


[Package pmwg version 0.2.7 Index]