View source: R/bgev_functions.R
likbgev | R Documentation |
Uses the density function to evaluate the likelihood. This is useful for the 'bgev.mle' function.
likbgev(y, theta = c(1, 1, 0.3, 2))
y |
a unidimensional vector containing the points to compute the log likelihood |
theta |
bimodal GEV parameters as an ordered pair |
a unidimensional vector containing the computed log likelihood for y
.
Cira Otiniano Author [aut], Yasmin Lirio Author [aut], Thiago Sousa Developer [cre]
Otiniano, Cira EG, et al. (2023). A bimodal model for extremes data. Environmental and Ecological Statistics, 1-28. http://dx.doi.org/10.1007/s10651-023-00566-7
# get random points from bimodal GEV
y = rbgev(100, mu = 1, sigma = 1, xi = 0.3, delta = 2)
# compute log-likelihood
likbgev (y, theta = c(1, 1, 0.3, 2))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.