Reader small image

You're reading from  R Statistics Cookbook

Product typeBook
Published inMar 2019
Reading LevelExpert
PublisherPackt
ISBN-139781789802566
Edition1st Edition
Languages
Tools
Concepts
Right arrow
Author (1)
Francisco Juretig
Francisco Juretig
author image
Francisco Juretig

Francisco Juretig has worked for over a decade in a variety of industries such as retail, gambling and finance deploying data-science solutions. He has written several R packages, and is a frequent contributor to the open source community.
Read more about Francisco Juretig

Right arrow

GLMs in JAGS

GLMs stand for Generalized Linear Models. It is a generalization of the linear model (that assumes normality) to other distributions of the so-called exponential family (the Gaussian one is also part of this family). This model formulation allows us to fit models using several responses for the dependent variable such as binary, categorical, count, and more. For example, logistic and Poisson regression are two models that are part of this family.

In this example, we will do Bayesian logistic regression (one type of GLM). This model is appropriate when modeling a categorical response that takes two possible values. Possible examples could be modeling whether a customer is going to buy a product or not, or a student is going to pass an exam.

Both STAN and JAGS can handle not only linear regression models, but a wide array of regression models. In this exercise, we will...

lock icon
The rest of the page is locked
Previous PageNext Chapter
You have been reading a chapter from
R Statistics Cookbook
Published in: Mar 2019Publisher: PacktISBN-13: 9781789802566

Author (1)

author image
Francisco Juretig

Francisco Juretig has worked for over a decade in a variety of industries such as retail, gambling and finance deploying data-science solutions. He has written several R packages, and is a frequent contributor to the open source community.
Read more about Francisco Juretig