Log-linear regression (Poisson) in Excel tutorial (2024)

This tutorial will help you set up and interpret a Log-Linear regression, also called Poisson regression in Excel using the XLSTAT software.Not sure this is the modeling feature you are looking for? Check out this guide.

Dataset for log-linear regression (Poisson regression)

The data correspond to the number of awards earned by students at one high school. To explain the number of awards earned, there are two predictors: the type of program in which the student was enrolled (e.g., vocational, general or academic) and the score on their final exam in math.

Log-linear regression (Poisson) in Excel tutorial (1)

Since we have count data, a log-linear regression with a Poisson distribution should be used to explain and/or predict the number of awards earned by a student.

Setting up a Log-linear regression

After opening XLSTAT, select the **XLSTAT / Modeling data / Log-linear regression command, or click on the corresponding button of the Modeling data toolbar.

Log-linear regression (Poisson) in Excel tutorial (2)

Once you've clicked on the button, the dialog box appears.

The data are presented in 200 rows and 3 columns table. The first column is the response variable and the two others are the explanatory variables.

Log-linear regression (Poisson) in Excel tutorial (3)

In the Options tab**,** several criteria about the algorithm can be modified. It is also possible to add interactions between the variables. Here we choose to leave all the options to their default values.

Log-linear regression (Poisson) in Excel tutorial (4)

The computations begin once you have clicked on OK. The results will then be displayed in a new sheet.

Interpreting the results

The first results displayed are the statistics for each variable, the dependent variable is represented in blue.

The next table gives several indicators of the quality of the model (or goodness of fit). These results are equivalent to the R2 and to the analysis of variance table in linear regression and ANOVA. The most important value to look at is the probability of Chi-square test on the log ratio. This is equivalent to the Fisher's F test: we try to evaluate if the variables bring significant information by comparing the model as it is defined with a simpler model with only one constant. In this case, as the probability is lower than 0.0001, we can conclude that significant information is brought by the variables.

Log-linear regression (Poisson) in Excel tutorial (5)

The following table gives the estimated value of the coefficients for the fitted model. To evaluate if a variable bring significant information, a statistical test is displayed. In our case, we note that the parameter of “General Program” does not differ significantly from 0 (at a 5% level).

Log-linear regression (Poisson) in Excel tutorial (6)

The last step is the application of the model on the whole population.

Was this article useful?

  • Yes
  • No
Log-linear regression (Poisson) in Excel tutorial (2024)

FAQs

How do you do a log-linear regression in Excel? ›

Setting up a Log-linear regression

After opening XLSTAT, select the **XLSTAT / Modeling data / Log-linear regression command, or click on the corresponding button of the Modeling data toolbar. Once you've clicked on the button, the dialog box appears. The data are presented in 200 rows and 3 columns table.

Can you do Poisson regression in Excel? ›

We provide two examples with their solutions from the literature to show Poisson regression in Excel. Additionally, we present a pattern recognition method for the Hessian matrix to find the Variance–Covariance matrix in Poisson regression which is used to obtain the coefficient's standard errors.

What is log in Poisson regression? ›

Poisson regression assumes the response variable Y has a Poisson distribution, and assumes the logarithm of its expected value can be modeled by a linear combination of unknown parameters. A Poisson regression model is sometimes known as a log-linear model, especially when used to model contingency tables.

How to use Poisson formula in Excel? ›

Excel Function: Excel provides the following function for the Poisson distribution: POISSON. DIST(x, μ, cum) = the probability density function value for the Poisson distribution with mean μ if cum = FALSE, and the corresponding cumulative probability distribution value if cum = TRUE.

What is the formula for log linear regression? ›

The logarithmic transformation is what as known as a monotone transformation: it preserves the ordering between x and f (x). Recall that in the linear regression model, logYi = α + βXi + εi, the coefficient β gives us directly the change in Y for a one-unit change in X.

Is Poisson regression the same as linear regression? ›

Contrary to linear regression, in Poisson regression: Residuals may follow an asymmetric distribution around the mean (λ). Hence, outcomes on either side of the mean (λ-x, λ+x) are NOT equally likely.

When not to use Poisson regression? ›

It requires that the count variable's variance is not greater than its mean. Violating this assumption, known as “overdispersion,” results in deflated standard errors and inflated z values, yielding Type I errors and thus making Poisson regression contraindicated.

What is the formula for Poisson regression? ›

For a sample of size n, the likelihood for a Poisson regression is given by: L ( β ; y , X ) = ∏ i = 1 n e − exp ⁡ { X i β } exp ⁡ This yields the log-likelihood: ℓ ( β ) = ∑ i = 1 n y i X i β − ∑ i = 1 n exp ⁡ { X i β } − ∑ i = 1 n log ⁡

What is the difference between log linear and Poisson? ›

Log-linear analysis is a form of categorical data analysis mostly used with three-way contingency tables. A common Poisson GLM would only explain a subset of the independence relations that a log-linear analysis can explain, though in some cases (e.g. two-way tables) both methods are exactly the same.

What is logarithmic Poisson model? ›

The logarithmic Poisson model is a member of the geometric family. We do not consider different types because the mean value functions of the models are independent of type, and the mean value function is the primary determinant of the model characteristics.

Why use log linear regression? ›

One reason is to make data more "normal", or symmetric. If we're performing a statistical analysis that assumes normality, a log transformation might help us meet this assumption. Another reason is to help meet the assumption of constant variance in the context of linear modeling.

How do you use Poisson formula? ›

Poisson distribution is calculated by using the Poisson distribution formula. The formula for the probability of a function following Poisson distribution is: f(x) = P(X=x) = (e-λ λx )/x!

How do you fit data to Poisson? ›

Fitting a Poisson Distribution to Given Data

For a given frequency distribution of a quantity, if the range of that quantity starts from 0 and proceeds to a positive integer, then a Poisson Probability Distribution can be fitted to that data using the parameter = the observed mean frequency of that quantity.

Can you do linear regression on a log scale? ›

Straight lines on graphs with logarithmic axes

In these cases, linear regression will fit a straight line to the data but the graph will appear curved since an axis (or both axes) are not linear. In contrast, nonlinear regression to an appropriate nonlinear model will create a curve that appears straight on these axes.

How do you log a linear scale in Excel? ›

Excel displays the Format Axis window. Select the "Scale" tab on the Format Axis window. Click the "Logarithmic Scale" check box near the bottom of the window. This changes the chart's axis to a log scale.

How do you calculate Lognormal in Excel? ›

Excel Functions: Excel provides the following two functions: LOGNORM. DIST(x, μ, σ, cum) = the log-normal cumulative distribution function with mean μ and standard deviation σ at x if cum = TRUE and the probability density function of the log-normal distribution if cum = FALSE.

Top Articles
How Much Money is Appropriate for a Graduation Gift?
Investment Insurance - What Is Investment Insurance?| ICICI Pru Life
Friskies Tender And Crunchy Recall
Television Archive News Search Service
Room Background For Zepeto
Repentance (2 Corinthians 7:10) – West Palm Beach church of Christ
News - Rachel Stevens at RachelStevens.com
9192464227
Crocodile Tears - Quest
Doublelist Paducah Ky
Bluegabe Girlfriend
Lenscrafters Westchester Mall
Achivr Visb Verizon
Erskine Plus Portal
Tamilblasters 2023
Clairememory Scam
Hallelu-JaH - Psalm 119 - inleiding
Buying risk?
Shuiby aslam - ForeverMissed.com Online Memorials
Explore Top Free Tattoo Fonts: Style Your Ink Perfectly! 🖌️
Reddit Wisconsin Badgers Leaked
Hell's Kitchen Valley Center Photos Menu
boohoo group plc Stock (BOO) - Quote London S.E.- MarketScreener
Nine Perfect Strangers (Miniserie, 2021)
Spn 520211
Brazos Valley Busted Newspaper
Project Reeducation Gamcore
The Listings Project New York
Haunted Mansion Showtimes Near Epic Theatres Of West Volusia
Chamberlain College of Nursing | Tuition & Acceptance Rates 2024
Ordensfrau: Der Tod ist die Geburt in ein Leben bei Gott
Restored Republic
Askhistorians Book List
Craftsman Yt3000 Oil Capacity
Ilabs Ucsf
15 Downer Way, Crosswicks, NJ 08515 - MLS NJBL2072416 - Coldwell Banker
Pnc Bank Routing Number Cincinnati
Zero Sievert Coop
ATM Near Me | Find The Nearest ATM Location | ATM Locator NL
Craigs List Palm Springs
The All-New MyUMobile App - Support | U Mobile
התחבר/י או הירשם/הירשמי כדי לראות.
The Angel Next Door Spoils Me Rotten Gogoanime
Home Auctions - Real Estate Auctions
St Vrain Schoology
10 Types of Funeral Services, Ceremonies, and Events » US Urns Online
Verizon Forum Gac Family
FactoryEye | Enabling data-driven smart manufacturing
Black Adam Showtimes Near Kerasotes Showplace 14
Uno Grade Scale
Latest Posts
Article information

Author: Duncan Muller

Last Updated:

Views: 6027

Rating: 4.9 / 5 (59 voted)

Reviews: 90% of readers found this page helpful

Author information

Name: Duncan Muller

Birthday: 1997-01-13

Address: Apt. 505 914 Phillip Crossroad, O'Konborough, NV 62411

Phone: +8555305800947

Job: Construction Agent

Hobby: Shopping, Table tennis, Snowboarding, Rafting, Motor sports, Homebrewing, Taxidermy

Introduction: My name is Duncan Muller, I am a enchanting, good, gentle, modern, tasty, nice, elegant person who loves writing and wants to share my knowledge and understanding with you.