Skip to content
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
Cannot retrieve contributors at this time
title: "Handbook of Regression Modeling in People Analytics"
subtitle: "`r if (knitr::is_latex_output()) {'With Examples in R and Python'} else {'With Examples in R, Python and Julia'}`"
author: "Keith McNulty"
site: bookdown::bookdown_site
always_allow_html: true
documentclass: krantz
bibliography: r/book.bib
fig-caption: yes
link-citations: yes
github-repo: keithmcnulty/peopleanalytics-regression-book
pagetitle: "Handbook of Regression Modeling in People Analytics: With Examples in R, Python and Julia"
description: "A technical manual of inferential statistics and regression modeling in the people and social sciences"
url: ""
cover-image: "www/cover/coverpage-og.png"
twitter-handle: "dr_keithmcnulty"
```{r, echo = FALSE}
if (knitr::is_latex_output()) {
options(width = 100)
# bookdown::render_book("index.Rmd", output_format = "bookdown::bs4_book", config_file = "_bookdown_bs4.yml")
# knitr::opts_chunk$set(dpi=300)
knitr::opts_chunk$set(out.width = "90%")
```{r, echo = FALSE}
# google scholar metadata
if (knitr::is_html_output()) {
meta() |>
title = "Handbook of Regression Modeling in People Analytics: With Examples in R and Python",
author = "Keith McNulty",
publication_date = "2021",
isbn = "9781003194156"
<div class="banner">
<div class="banner__content">
<div class="banner__text">
<strong>News:</strong> The new textbook in this series - <i>Handbook of Graphs and Networks in People Analytics</i> - is now online <a href="">here</a>
<button class="banner__close" type="button">
<span class="material-icons">
document.querySelector(".banner__close").addEventListener("click", function() {
this.closest(".banner").style.display = "none";
`r if (knitr::is_latex_output()) '<!--'`
# Welcome {-}
Welcome to the website for the book *Handbook of Regression Modeling in People Analytics* by [Keith McNulty](
<p style="text-align: center;"><a href=""><img src="www/cover/coverpage.png" alt="Handbook of Regression Modeling Cover" width="300"/></a></p>
::: {.infobox .ukraine}
**Note**: This book is published by Chapman & Hall/CRC and can be purchased [directly from their website at a 20% discount using discount code LLJM20](, as well as from Amazon and other book retailers. *Please consider buying this book if you find it useful* - all the author's royalties are donated to the [Red Cross Ukraine Appeal]( The online version of this book is free to read here (thanks to Chapman & Hall/CRC), and licensed under the [Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License]( If you have any feedback, please feel free to [file an issue on GitHub]( Thank you!
This book is available in [bootstrap format]( and, for those who prefer, in a more plain [gitbook format](
`r if (knitr::is_latex_output()) '--> \\newpage\\thispagestyle{empty}\\null'`
### Notes on data used in this book {-}
`r if (knitr::is_html_output()) {'For R, Python and Julia'} else {'For R and Python'}` users, each of the data sets used in this book can be downloaded individually by following the code in each chapter. Alternatively, packages containing all the data sets used in this book are now available in R and Python. For R users, install and load the `peopleanalyticsdata` R package.
```{r, eval = FALSE}
# install peopleanalyticsdata package
# see a list of data sets
data(package = "peopleanalyticsdata")
# find out more about a specific data set ('managers' example)
For Python users , use `pip install peopleanalyticsdata` to install the package into your environment. Then, to use the package:
```{python, eval = FALSE}
# import peopleanalyticsdata package
import peopleanalyticsdata as pad
import pandas as pd
# see a list of data sets
# load data into a dataframe
df = pad.managers()
# find out more about a specific data set ('managers' example)
`r if (knitr::is_latex_output()) '<!--'`
Happy modeling!
*Last update: `r format(Sys.Date(), "%d %B %Y")`*
`r if (knitr::is_latex_output()) '-->'`