View source: R/pcd_cmdstan_model.R
pcd_cmdstan_model | R Documentation |
This function creates a CmdStanModel object using the Stan model and functions from primarycensored and optionally includes additional user-specified Stan files.
pcd_cmdstan_model(include_paths = primarycensored::pcd_stan_path(), ...)
include_paths |
Character vector of paths to include for Stan
compilation. Defaults to the result of |
... |
Additional arguments passed to cmdstanr::cmdstan_model(). |
The underlying Stan model (pcens_model.stan
) supports various features:
Multiple probability distributions for modeling delays
Primary and secondary censoring
Truncation
Optional use of reduce_sum for improved performance (via within chain parallelism).
Flexible prior specifications
Optional computation of log-likelihood for model comparison
A CmdStanModel object.
Modelling wrappers for external fitting packages
fitdistdoublecens()
,
pcd_as_stan_data()
if (!is.null(cmdstanr::cmdstan_version(error_on_NA = FALSE))) {
model <- pcd_cmdstan_model(compile = FALSE)
model
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.