Skip to content

Instantly share code, notes, and snippets.

View thomvolker's full-sized avatar

Thom Volker thomvolker

View GitHub Profile
set.seed(123)

# Number of predictors
P <- 10
# Sample size
N <- 10000
# Generate variance covariance matrix as toeplitz
V <- toeplitz(P:1/P)
# Relative size of coefficients