Learn R Programming

ADtools (version 0.5.4)

rWishart0: Simulate Wishart random variates

Description

Simulate Wishart random variates

Usage

rWishart0(v, M, method = "inv_tf")

Arguments

v

A scalar; degrees of freedom.

M

A matrix; the matrix parameter of the Wishart distribution.

method

base or inv_tf; base refers to the function in the `stats` package while inv_tf refers to inverse transform.

Examples

Run this code
# NOT RUN {
d <- 4
rWishart0(3, crossprod(randn(d, d)))

# }

Run the code above in your browser using DataLab