42_random_numbers: Random Numbers

Description Usage Arguments Details Value References See Also Examples

Description

Generate random numbers from bivariate and trivariate normal distributions.

Usage

1
2
3
4
## S3 method for class 'NBVPDF'
bvrng(f, n=1, ...)
## S3 method for class 'NTVPDF'
bvrng(f, n=1, ...)

Arguments

f

A nbvpdf (bivariate normal) or ntvpdf (trivariate normal) object.

n

Integer, the number of random numbers.

...

Ignored.

Details

These functions call the rmvnorm function from the mvtnorm package.

Value

A two-column or three-column numeric matrix.

References

Refer to the vignette for an overview, references, theoretical background and better examples.

See Also

Normal
For bivarate and triviate normal distributions.

Examples

1
2
3
f <- nbvpdf ()

bvrng (f, 30)

bivariate documentation built on April 11, 2021, 9:06 a.m.