Simulate input grouped data (gaussian outcome) for testing with ptLasso.
Source:R/simulate.R
gaussian.example.data.Rd
No required arguments; used primarily for documentation. Simply calls makedata
with a reasonable set of features.
Value
A list for data with 5 groups and a gaussian outcome, n=1000 and p=120:
- x
Simulated features, size n x p.
- y
Outcomes y, length n.
- groups
Vector of length n, indicating which observations belong to which group.
- snr
Gaussian outcome only: signal to noise ratio.
- mu
Gaussian outcome only: the value of y before noise is added.