Learn R Programming

TLIC (version 0.4)

terr: 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, ...)

Value

X,Y,e

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

Examples

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

Run the code above in your browser using DataLab