tdistribution {lestat}R Documentation

A t-distribution

Description

Create an object representing a univariate non-centered t-distribution.

Usage

tdistribution(expectation = 0, degreesoffreedom = 1e+20, 
    lambda, P = 1)

Arguments

expectation

The expectation of the distribution.

degreesoffreedom

The degrees of freedom parameter.

lambda

The natural logarithm of the scale σ\sigma of the distribution. The standard t-distribution has scale 1, and the default for lambda is log(1)=0\log(1)=0.

P

An alternative to specifying the logged scale log(σ)\log(\sigma) with lambda is to specify P: It is defined as P=1/σ2P=1/\sigma^2.

Details

The probability density of a t-distribution with expectation μ\mu, degrees of freedom ν\nu, and logged scale λ\lambda is proportional to

f(x)=(ν+e2λ(xμ)2)(ν+1)/2 f(x)=(\nu + e^{-2\lambda}(x-\mu)^2)^{-(\nu+1)/2}

Value

A t-distribution.

Author(s)

Petter Mostad <mostad@chalmers.se>

See Also

mtdistribution

Examples

dist <- tdistribution(3)
plot(dist)

[Package lestat version 1.9 Index]