terr | R Documentation |
This terr function generates a dataset with a specified number of observations and predictors, along with a response vector that has an error term following a T-distribution.
terr(n, nr, p, dist_type, ...)
n |
is the number of observations |
nr |
is the number of observations with a different error T distribution |
p |
is the dimension of the observation |
dist_type |
is the type where the error term obeys a T-distribution |
... |
is additional arguments for the T-distribution function |
X,Y,e
set.seed(12)
data <- terr(n = 1200, nr = 200, p = 5, dist_type = "student_t")
str(data)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.