View source: R/dgp-lib-errors.R
block_errors | R Documentation |
Generate correlated Gaussian errors based on a block-dependence
covariance structure with n_blocks
(approximately) equally-sized
blocks.
block_errors(n, n_blocks = 3, rho = 0.8)
n |
Number of samples. |
n_blocks |
Number of blocks. |
rho |
Correlation. Must be a scalar or vector of length |
A vector of simulated errors with length n
.
errs <- block_errors(n = 100, n_blocks = 3, rho = 0.7)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.