mtrunct | R Documentation |
The probability density function and the distribution function of the multivariate truncated Student's t distribution
dmtrunct(x, mean, S, df, lower, upper, log = FALSE, ...) pmtrunct(x, mean, S, df, lower, upper, ...)
x |
either a vector of length |
mean |
either a vector of length |
S |
a symmetric positive-definite matrix representing the
scale matrix, such that |
df |
degrees of freedom; it must be a positive integer |
lower |
a vector representing the lower truncation values of the
component variables; |
upper |
a vector representing the upper truncation values of the
component variables; |
log |
a logical value (default value is |
... |
arguments passed to |
The dimension d
cannot exceed 20
.
a numeric vector
Adelchi Azzalini
sadmvt
for regulating accuracy
m2 <- c(0.5, -1) V2 <- matrix(c(1.5, -1.75, -1.75, 3), 2, 2) lower <- a <- c(-1, -2.5) upper <- b <- c(2, 1) set.seed(1) points <- matrix(runif(10, -3, 3), nrow=5, ncol=2) pdf <- dmtrunct(points, mean=m2, S=V2, df=4, lower, upper) cdf <- pmtrunct(points, mean=m2, S=V2, df=4, lower, upper)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.