Learn R Programming

LearnBayes (version 2.15.2)

lbinorm: Logarithm of bivariate normal density

Description

Computes the logarithm of a bivariate normal density

Usage

lbinorm(xy,par)

Value

value of the kernel of the log density

Arguments

xy

vector of values of two variables x and y

par

list with components m, a vector of means, and v, a variance-covariance matrix

Author

Jim Albert

Examples

Run this code
mean=c(0,0)
varcov=diag(c(1,1))
value=c(1,1)
param=list(m=mean,v=varcov)
lbinorm(value,param)

Run the code above in your browser using DataLab