Learn R Programming

SciencesPo (version 1.02.12)

loglik: Calculate the Log Likelihood of a Normal Distribution

Description

Find the log likelihood of a normal distribution.

Usage

loglik(x = data, mu, var)

Arguments

x
data.
mu
estimated mean.
var
estimated variance.

Value

  • ll logliklihood of the distribution

encoding

UTF-8

Examples

Run this code
x = rnorm(100, 3, 7)
loglik(x,3,7)

Run the code above in your browser using DataLab