Poisson Regression in R Programming (original) (raw)

Last Updated : 10 May, 2020

A Poisson Regression model is used to model count data and model response variables (Y-values) that are counts. It shows which X-values work on the Y-value and more categorically, it counts data: discrete data with non-negative integer values that count something. In other words, it shows which explanatory variables have a notable effect on the response variable. Poisson Regression involves regression models in which the response variable is in the form of counts and not fractional numbers.

Mathematical Equation:

log(y) = a + b1x1 + b2x2 + bnxn.....

Parameters:

Creating Poisson Regression Model

The function used to create the Poisson regression model is the glm() function.

Syntax: glm(formula, data, family)Parameters:

Example: