Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

poissonsim

Simple Poisson Regression Data Simulator


Description

This function simulates simple regression data from a Poisson model. It also has the option to create over-dispersed data of a particular type.

Usage

poissonsim(x = seq(0, 1, length=101), a = 2, b = -4, intcp.sd=NULL,
           slope.sd=NULL, seed=NULL)

Arguments

x

a numeric vector representing the explanatory variable

a

the regression function intercept

b

the regression function slope

intcp.sd

standard deviation of the (random) intercept

slope.sd

standard deviation of the (random) slope

seed

numeric constant

Value

a list consisting of

x

the explanatory variable vector

y

the Poisson response vector

Examples

poissonsim()

DAAG

Data Analysis and Graphics Data and Functions

v1.24
GPL-3
Authors
John H. Maindonald and W. John Braun
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.