TDist: Specify a vector of independent t-distributed variables

View source: R/SpecPrior-generators.R

TDistR Documentation

Specify a vector of independent t-distributed variables

Description

Specify a vector of n t-distributed variables, each of which has degrees of freedom df[i], mean mean[i], and scale scale[i].

Usage

TDist(df = 7, mean = 0, scale = NULL, mult = 1)

Arguments

df

Degrees of freedom. A vector with length equal to 1 or to the number of variables required. Defaults to 4.

mean

Mean parameter. A vector with length equal to 1 or to the number of variables required. Defaults to 0.

scale

Scale parameter. A vector with length equal to 1 or to the number of variables required. Defaults to 1.

mult

Multiplier applied to scale, if sd is generated automatically. Defaults to 1.

Value

Object of class TDist.

See Also

Covariates

Examples

TDist()
TDist(mean = c(-1, 0, 0))
TDist(df = c(4, 4, 7),
      mean = c(-1, 0.2, 0.1),
      scale = c(1, 2, 1))

StatisticsNZ/demest documentation built on Nov. 2, 2023, 7:56 p.m.