get_parameters: Get parameters of a parametric distribution

View source: R/dist_spec.R

get_parametersR Documentation

Get parameters of a parametric distribution

Description

[Experimental]

Usage

get_parameters(x, id = NULL)

Arguments

x

A ⁠<dist_spec>⁠.

id

Integer; the id of the distribution to get parameters of (if x is a composite distribution). If x is a single distribution this is ignored and can be left as NULL.

Value

A list of parameters of the distribution.

Examples

dist <- Gamma(shape = 3, rate = 2)
get_parameters(dist)

EpiNow2 documentation built on May 29, 2024, 7:26 a.m.