# specify a grouping structure
groups = c(rep(1:20, each=3),
rep(21:40, each=4),
rep(41:60, each=5),
rep(61:80, each=6),
rep(81:100, each=7))
# generate data
data = gen_toy_data(p=500, n=400, groups = groups, seed_id=3)
Run the code above in your browser using DataLab