norm.like | R Documentation |
Calculate the negative log likelihood for a normal distribution.
norm.like(obs, fit)
obs |
vector of observed values. |
fit |
vector of fitted values. |
Negative log likelihood.
The negative log likelihood is calculated as:
-\log L=0.5n\log(2\pi) + n\log\sigma + \frac{RSS}{2\sigma^2}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.