Convert natural parameters to distribution parameters
Source:R/generic-functions-minor.R
natural2parameters.Rd
Convert natural parameters to distribution parameters
Examples
samp <- rtrunc(n = 100, lambda = 2, family = "Poisson")
lambda_hat <- empiricalParameters(samp)
eta_hat <- parameters2natural(lambda_hat)
natural2parameters(eta_hat) # yields back lambda
#> lambda
#> 2.15
#> attr(,"class")
#> [1] "parms_poisson"