convert_to_natural: Internal function for converting parameters to natural...

View source: R/dist_spec.R

convert_to_naturalR Documentation

Internal function for converting parameters to natural parameters.

Description

[Experimental] This is used for preprocessing before generating a dist_spec object from a given set of parameters and distribution

Usage

convert_to_natural(params, distribution)

Arguments

params

A numerical named parameter vector

distribution

Character; the distribution to use.

Value

A list with two elements, params_mean and params_sd, containing mean and sd of natural parameters.

Examples

## Not run: 
convert_to_natural(
  params = list(mean = 2, sd = 1),
  distribution = "gamma"
)

## End(Not run)

EpiNow2 documentation built on Oct. 31, 2024, 5:09 p.m.