Learn R Programming

REFA (version 0.2.0)

gendata: Data generation process

Description

Generate heavy-tailed data.

Usage

gendata(seed = 1, T = 50, N = 50, type = "1a")

Value

A list containing:

Y

The observed matrix.

F0

The true factor matrix.

L0

The true loading matrix.

Arguments

seed

The seed used in the data generation process.

T

Time dimension.

N

Cross-sectional dimension.

type

The type of the data generation process. Options include "1a", "1b", "1c", "1d", "2a", "2b", "2c", "2d", "3a", "3b".

Author

Jiaqi Hu

References

Robust factor analysis with exponential squared loss. Jiaqi Hu, Tingyin Wang, Xueqin Wang. Journal of Multivariate Analysis 2026, 213 105567; doi:10.1016/j.jmva.2025.105567

Examples

Run this code
dat = gendata()
Y = dat$Y
head(Y)

Run the code above in your browser using DataLab