extract_samples: Extract Predictive Samples From Stanobject

Description Usage Arguments Value Examples

View source: R/old_stanparts.R

Description

Extract preditive samples and bring them in a format that can be used for scoring. Function needs to be updated to deal with more than one predictive parameter?

Usage

1
extract_samples(stanfitobject, type = "predictive")

Arguments

stanfitobject

a stanfitobject

predictive

TRUE indicates that you want to extract predictive values, FALSE returns fitted values

Value

a matrix of dimension nxN with predictive samples. n is the number of predicted values, N is the number of MCMC samples for each value to be predicted.

Examples

1

nikosbosse/epipredictr documentation built on April 7, 2020, 9:51 p.m.