View source: R/simulation_helpers.R
simulate_noise | R Documentation |
Sample n
observations for p
independent noise variables
from a certain distribution distr
.
simulate_noise(
n,
p,
distr = c("student_t", "gaussian", "log_normal"),
tail_index
)
n |
Positive integer. The number of observations, must be larger than 1. |
p |
Positive integer. The number of variables, must be larger than 1. |
distr |
Character. The distribution of the noise. It is one of:
|
tail_index |
Positive numeric. The tail index, i.e., degrees of freedom, of the noise. |
Numeric matrix. Dataset matrix with n
rows (observations) and p
columns (variables).
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.