Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

dmt

Probability density function for multivariate t


Description

Computes the density of a multivariate t distribution

Usage

dmt(x, mean = rep(0, d), S, df = Inf, log=FALSE)

Arguments

x

vector of length d or matrix with d columns, giving the coordinates of points where density is to evaluated

mean

numeric vector giving the location parameter of the distribution

S

a positive definite matrix representing the scale matrix of the distribution

df

degrees of freedom

log

a logical value; if TRUE, the logarithm of the density is to be computed

Value

vector of density values

Author(s)

Jim Albert

Examples

mu <- c(1,12,2)
Sigma <- matrix(c(1,2,0,2,5,0.5,0,0.5,3), 3, 3)
df <- 4
x <- c(2,14,0)
f <- dmt(x, mu, Sigma, df)

LearnBayes

Functions for Learning Bayesian Inference

v2.15.1
GPL (>= 2)
Authors
Jim Albert
Initial release
2018-03-18

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.