pt2d(x, y = x, rho = 0, nu = 4)
dt2d(x, y = x, rho = 0, nu = 4)
rt2d(n, rho = 0, nu = 4)
pt2d
returns a two column matrix of probabilities for the bivariate
Student-t distribution function.
dt2d
returns a two column matrix of densities for the bivariate
Student-t distribution function.
rt2d
returns a two column matrix of random deviates generated from
the bivariate Student-t distribution function.## Bivariate Student-t Density:
x = (-40:40)/10
X = grid2d(x)
z = dt2d(X$x, X$y, rho = 0.5, nu =6)
Z = list(x = x, y = x, z = matrix(z, ncol = length(x)))
persp(Z, theta = -40, phi = 30, col = "steelblue")
Run the code above in your browser using DataLab