| get_parameters | R Documentation |
Generic function to extract parameters. For dist_spec objects, extracts
the distribution parameters (e.g., shape and rate for Gamma). For fitted
model objects, extracts estimated parameters and delays as dist_spec
objects that can be used as priors.
get_parameters(x, ...)
## S3 method for class 'dist_spec'
get_parameters(x, id = NULL, ...)
## S3 method for class 'epinowfit'
get_parameters(x, ...)
## S3 method for class 'estimate_dist'
get_parameters(x, ...)
x |
A |
... |
Additional arguments passed to methods |
id |
Numeric index of the distribution to extract (for multi-
component |
For dist_spec: a list of distribution parameters.
For fitted models: a named list of dist_spec objects.
# For dist_spec objects
dist <- Gamma(shape = 3, rate = 2)
get_parameters(dist)
## Not run:
# For fitted models - extract estimated distributions
dists <- get_parameters(fit)
names(dists)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.