parameter_sample_to_tibble {oncomsm} | R Documentation |
Convert parameter sample to data table
Description
parameter_sample_to_tibble()
takes a rstan::stanfit parameter sample of
a model, extracts the paramters values and returns them in a data frame.
Usage
parameter_sample_to_tibble(model, sample, ...)
Arguments
model |
an object of class srpmodel containing prior information |
sample |
a stanfit object with samples from the respective model. |
... |
further arguments passed to method implementations |
Value
a tibble with the sampled parameters, in long format
See Also
sample_prior()
sample_posterior()
Examples
mdl <- create_srpmodel(A = define_srp_prior())
smpl <- sample_prior(mdl, seed = 3647L)
parameter_sample_to_tibble(mdl, smpl)
[Package oncomsm version 0.1.4 Index]