gamma_logl | R Documentation |
A function to calculate the log-likelihood of Gamma model
gamma_logl(param, x)
param |
parameters of Gamma model |
x |
input data for Gamma model |
returns the value of negative log-likelihood of the Gamma model
set.seed(42) data <- rgamma(30,3,0.01) # set some parameters par_hat <- c(2.7626793657057762, 0.0094307059277139432) # estimated parameters param <- log(par_hat) # input parameters for logl function # calculate log-likelihood result <- marp::gamma_logl(param, data) # print result cat("-logl = ", result, "\n")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.