powered by
Generate random numbers from bivariate and trivariate normal distributions.
# S3 method for NBVPDF bvrng(f, n=1, …) # S3 method for NTVPDF bvrng(f, n=1, …)
A nbvpdf (bivariate normal) or ntvpdf (trivariate normal) object.
Integer, the number of random numbers.
Ignored.
A two-column or three-column numeric matrix.
These functions call the rmvnorm function from the mvtnorm package.
Refer to the vignette for an overview, references, theoretical background and better examples.
Normal For bivarate and triviate normal distributions.
# NOT RUN { f <- nbvpdf () bvrng (f, 30) # }
Run the code above in your browser using DataLab