View source: R/log_prior_draws.R
log_prior_draws | R Documentation |
Extract log likelihood from fitted model and return as a draws object.
log_prior_draws(x, ...)
## S3 method for class 'stanfit'
log_prior_draws(x, joint = FALSE, log_prior_name = "lprior", ...)
## S3 method for class 'CmdStanFit'
log_prior_draws(x, joint = FALSE, log_prior_name = "lprior", ...)
## S3 method for class 'draws'
log_prior_draws(x, joint = FALSE, log_prior_name = "lprior", ...)
x |
Model fit or draws object. |
... |
Arguments passed to individual methods. |
joint |
Logical indicating whether to return the joint log prior or array. Default is FALSE. |
log_prior_name |
Name of parameter in Stan model corresponding to log prior, default is "lprior". |
A draws_array object containing log_prior values.
ex <- example_powerscale_model()
drw <- ex$draws
log_prior_draws(drw)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.