serr | R Documentation |
Generate data with skewed errors
serr(n, nr, p, dist_type, ...)
n |
Number of total observations |
nr |
Number of observations with a different error distribution |
p |
Number of predictors |
dist_type |
Type of error distribution ("skew_normal", "skew_t", "skew_laplace") |
... |
Additional parameters for the error distribution |
A list with X (design matrix), Y (response), and e (error)
set.seed(123)
data <- serr(1000, 200, 5, "skew_t")
str(data)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.