- n
Integer. Number of observations.
- p
Integer. Total number of covariates in the model matrix.
- interc
Numeric. Intercept to include in the linear predictor. Default is 0
.
- beta
Numeric vector of length p
. Regression coefficients in the linear predictor.
- family
Distribution and link function. Allowed: gaussian()
, binomial()
, poisson()
and , Gamma()
. Can be a string, function, or family object.
- prop
Numeric in [0,1]
. Used only if beta
is missing; proportion of non-zero coefficients in p
. Default is 0.1
.
- lim.b
Numeric vector of length 2. Range for coefficients if beta
is missing. Default: c(-3, 3)
.
- sigma
Standard deviation of Gaussian response. Default is 1
.
- size
Integer. Number of trials for binomial response. Default is 1
.
- rho
Numeric. Correlation coefficient for generating covariates. Used to create AR(1)-type covariance: rho^|i-j|
. Default is 0
.
- scale.data
Logical. Whether to scale columns of the model matrix. Default is TRUE
.
- seed
Optional. Integer seed for reproducibility.
- X
Optional. Custom model matrix. If supplied, it overrides the internally generated X
.
- dispersion
Dispersion parameter of Gamma response. Default is 0.1
.