prior_pred {lgpr} | R Documentation |
Prior (predictive) sampling
Description
These functions take an lgpmodel object, and
-
prior_pred
samples from the prior predictive distribution of the model -
sample_param_prior
samples only its parameter prior usingsampling
Usage
prior_pred(
model,
verbose = TRUE,
quiet = FALSE,
refresh = 0,
STREAM = get_stream(),
...
)
sample_param_prior(model, verbose = TRUE, quiet = FALSE, ...)
Arguments
model |
An object of class lgpmodel. |
verbose |
Should more information and a possible progress bar be printed? |
quiet |
This forces |
refresh |
Argument for |
STREAM |
External pointer. By default obtained with
|
... |
Additional arguments for |
Value
-
prior_pred
returns a list with components-
y_draws
: A matrix containing the prior predictive draws as rows. Can be passed tobayesplot::pp_check()
for graphical prior predictive checking. -
pred_draws
: an object of class Prediction, containing prior draws of each model component and their sum -
param_draws
: astanfit
object of prior parameter draws (obtained by callingsample_param_prior
internally)
-
-
sample_param_prior
returns an object of classstanfit
See Also
Other main functions:
create_model()
,
draw_pred()
,
get_draws()
,
lgp()
,
pred()
,
sample_model()