posterior_predict.networkModelStanfit: Draw from the posterior predictive distribution of the model...

View source: R/ui_predictions.R

posterior_predict.networkModelStanfitR Documentation

Draw from the posterior predictive distribution of the model outcome

Description

Draw from the posterior predictive distribution of the model outcome

Usage

## S3 method for class 'networkModelStanfit'
posterior_predict(object, newdata, draw = NULL, cores = NULL, ...)

Arguments

object

A networkModelStanfit object.

newdata

Should be the model used to fit the networkStanfit object.

draw

Integer, number of draws to perform from the posterior. Default is 100.

cores

Number of cores to use for parallel calculations. Default is NULL, which means to use the value stored in options()[["mc.cores"]] (or 1 if this value is not set).

...

Not used for now.

Value

A "draw" by N matrix where N is the number of data points predicted per draw.


isotracer documentation built on Sept. 22, 2023, 1:07 a.m.