View source: R/generic-functions-minor.R
natural2parameters | R Documentation |
Convert natural parameters to distribution parameters
natural2parameters(eta, ...)
eta |
vector of natural parameters |
... |
other arguments passed to methods |
A vector of the original distribution parameters
parameters2natural()
samp <- rtrunc(n = 100, lambda = 2, family = "Poisson")
lambda_hat <- empiricalParameters(samp)
eta_hat <- parameters2natural(lambda_hat)
natural2parameters(eta_hat) # yields back lambda
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.