terr {TLIC}R Documentation

terr function is used to generate a dataset where the error term follows a T-distribution

Description

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.

Usage

terr(n, nr, p, dist_type, ...)

Arguments

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

Value

X,Y,e

Examples

set.seed(12)
data <- terr(n = 1200, nr = 200, p = 5, dist_type = "student_t")
str(data)

[Package TLIC version 0.4 Index]