powered by
Generate data with skewed errors
serr(n, nr, p, dist_type, ...)
A list with X (design matrix), Y (response), and e (error)
Number of total observations
Number of observations with a different error distribution
Number of predictors
Type of error distribution ("skew_normal", "skew_t", "skew_laplace")
Additional parameters for the error distribution
set.seed(123) data <- serr(1000, 200, 5, "skew_t") str(data)
Run the code above in your browser using DataLab