Book Image

Mastering Data analysis with R

By : Gergely Daróczi
Book Image

Mastering Data analysis with R

By: Gergely Daróczi

Overview of this book

Table of Contents (19 chapters)
Mastering Data Analysis with R
Credits
www.PacktPub.com
Preface

Chapter 5. Building Models (authored by Renata Nemeth and Gergely Toth)

"All models should be as simple as possible... but no simpler."

– Attributed to Albert Einstein

"All models are wrong... but some are useful."

– George Box

After loading and transforming data, in this chapter, we will focus on how to build statistical models. Models are representations of reality, and, as the preceding citations emphasize, are always simplified representations. Although you can't possibly take everything into account, you should be aware about what to include and exclude in a good model that provides meaningful results.

In this chapter, regression models are discussed on the basis of linear regression models and standard modeling. Generalized Linear Models (GLM) extend these to allow the response variables to differ in distribution...