pearson7.objective: Compute the negative log likelihood for a sample.
Description
Compute the negative log likelihood for a sample.
Usage
pearson7.objective(params, y)
Arguments
params
a vector of parameter values.
y
a vector of observations.
Value
the negative log likelihood.
Details
This function computes the negative log likelihood for \((\mu,\sigma)\) given a sample. This function can be optimized using optim, but it is better to use pearson7.fit.