calculateDensities | R Documentation |
Evaluates the density (or its logarithm) for each observation given the parameters.
calculateDensities(y, params, family = "gkw", log = FALSE)
y |
NumericVector of observations. |
params |
NumericMatrix with parameters (columns: alpha, beta, gamma, delta, lambda). |
family |
String specifying the distribution family (default: "gkw"). |
log |
Logical indicating whether to return the log-density (default FALSE). |
NumericVector containing the evaluated densities.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.