norm.like: Normal Likelihood

View source: R/norm.like.R

norm.likeR Documentation

Normal Likelihood

Description

Calculate the negative log likelihood for a normal distribution.

Usage

norm.like(obs, fit)

Arguments

obs

vector of observed values.

fit

vector of fitted values.

Value

Negative log likelihood.

Note

The negative log likelihood is calculated as:

-\log L=0.5n\log(2\pi) + n\log\sigma + \frac{RSS}{2\sigma^2}


arnima-github/arni documentation built on Oct. 28, 2023, 6:18 p.m.