Description Usage Arguments Details Value Examples
Using a data vector and its approximate distribution, find the maximum log-likelihood estimator for a given interval.
1 | mylogl(x, func, interval)
|
x |
data vector |
func |
function with arguments theta (the parameter) and x (the data vector) |
interval |
search range(numerical vector of length 2) |
Example functions for argument "fun": function(theta,x) dgamma(x, shape = theta, log = TRUE)
function(theta,x) dcauchy(x, location = theta, log = TRUE)
function(theta,x) dbinom(x, 20, prob = 1 / (1 + exp(- theta)), log = TRUE)
The maximum likelihood estimator for the function: one numeric value
1 2 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.