powered by
Generates a dynamic regression dataset for gamma family GLM where the rate parameter follows a dynamic process.
simGamma(N = 1000L, p = 4L, alpha_gamma = 2)
List with components:
N x p design matrix.
Numeric vector of length N, gamma distributed observations.
True coefficient vector.
Shape parameter used.
Integer > 1, number of observations.
Integer > 0, number of predictors.
Numeric > 0, shape parameter for gamma distribution (default = 2).
set.seed(3) dat <- simGamma(N = 500, p = 3) hist(dat$Y, main = "Gamma Data")
Run the code above in your browser using DataLab