The multivariate truncated Student's t distribution
mtrunct.RdThe probability density function and the distribution function of the multivariate truncated Student's t distribution
Usage
dmtrunct(x, mean, S, df, lower, upper, log = FALSE, ...)
pmtrunct(x, mean, S, df, lower, upper, ...)Arguments
- x
either a vector of length
dor a matrix withdcolumns, whered=ncol(S), giving the coordinates of the point(s) where the density must be evaluated.- mean
either a vector of length
d, representing the location parameter (equal to the mean vector whendf>1) of the pre-truncation distribution or a matrix whose rows represent different mean vectors; in the matrix case, its dimensions must match those ofx.- S
a symmetric positive-definite matrix representing the scale matrix, such that
S*df/(df-2)is the variance-covariance matrix of the pre-truncation distribution whendf>2.- df
degrees of freedom; it must be a positive integer
- lower
a vector representing the lower truncation values of the component variables;
-Infvalues are allowed. If missing, it is set equal torep(-Inf, d).- upper
a vector representing the upper truncation values of the component variables;
Infvalues are allowed. If missing, it is set equal torep(Inf, d).- log
a logical value (default value is
FALSE); ifTRUE, the logarithm of the density is computed.- ...
arguments passed to
sadmvt, amongmaxpts,absrel,releps.
See also
sadmvt for regulating accuracy