rmvtnorm_df: Simulate Data From the Normal or t-Distributions

Description Usage Arguments Details Value

View source: R/rmvtnorm_df.R

Description

Simulate data from normal or Student t-distributions.

Usage

1
2
rmvtnorm_df(n, loc = 0, scale = rep(1, length(loc)),
  R = diag(length(loc)), df = Inf)

Arguments

n

Number of simulations to draw.

loc

A vector of locations.

scale

A vector of standard deviations of the scale matrix.

R

A correlation matrix.

df

The degrees of freedom. If Inf, then the data are simulated from a normal distribution.

Details

This function is a wrapper around rmvt and rmvnorm functions which returns a data frame instead of a matrix.

Value

A tibble with length(loc) columns and n rows.


jrnold/rubbish documentation built on May 20, 2019, 2:05 a.m.