powered by
This function simulates simple regression data from a Poisson model. It also has the option to create over-dispersed data of a particular type.
poissonsim(x = seq(0, 1, length=101), a = 2, b = -4, intcp.sd=NULL, slope.sd=NULL, seed=NULL)
a list consisting of
the explanatory variable vector
the Poisson response vector
a numeric vector representing the explanatory variable
the regression function intercept
the regression function slope
standard deviation of the (random) intercept
standard deviation of the (random) slope
numeric constant
poissonsim()
Run the code above in your browser using DataLab