rWishart0 {ADtools}R Documentation

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

d <- 4
rWishart0(3, crossprod(randn(d, d)))


[Package ADtools version 0.5.5 Index]