Skip to content
Permalink
master
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: "https://peopleanalytics-regression-book.org"
cover-image: "www/cover/coverpage-og.png"
twitter-handle: "dr_keithmcnulty"
---
```{r, echo = FALSE}
library(reticulate)
library(JuliaCall)
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
library(metathis)
if (knitr::is_html_output()) {
meta() |>
meta_google_scholar(
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="https://ona-book.org">here</a>
<button class="banner__close" type="button">
<span class="material-icons">
close
</span>
</button>
</div>
</div>
</div>
<script>
document.querySelector(".banner__close").addEventListener("click", function() {
this.closest(".banner").style.display = "none";
});
</script>
-->
`r if (knitr::is_latex_output()) '<!--'`
# Welcome {-}
Welcome to the website for the book *Handbook of Regression Modeling in People Analytics* by [Keith McNulty](https://twitter.com/dr_keithmcnulty).
```{asis}
<p style="text-align: center;"><a href="https://www.routledge.com/Handbook-of-Regression-Modeling-in-People-Analytics-With-Examples-in-R/McNulty/p/book/9781032041742?utm_source=website&utm_medium=shared_link&utm_campaign=B027587_jm1_5ll_8pm_d765_handbookofregressionmodeling"><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](https://www.routledge.com/Handbook-of-Regression-Modeling-in-People-Analytics-With-Examples-in-R/McNulty/p/book/9781032041742?utm_source=website&utm_medium=shared_link&utm_campaign=B027587_jm1_5ll_8pm_d765_handbookofregressionmodeling), 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](https://donate.redcross.org.uk/appeal/ukraine-crisis-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](http://creativecommons.org/licenses/by-nc-sa/4.0/). If you have any feedback, please feel free to [file an issue on GitHub](https://github.com/keithmcnulty/peopleanalytics-regression-book/issues). Thank you!
:::
```
This book is available in [bootstrap format](http://peopleanalytics-regression-book.org) and, for those who prefer, in a more plain [gitbook format](http://peopleanalytics-regression-book.org/gitbook/index.html).
`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
install.packages("peopleanalyticsdata")
library(peopleanalyticsdata)
# see a list of data sets
data(package = "peopleanalyticsdata")
# find out more about a specific data set ('managers' example)
help(managers)
```
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
pad.list_sets()
# load data into a dataframe
df = pad.managers()
# find out more about a specific data set ('managers' example)
pad.managers().info()
```
`r if (knitr::is_latex_output()) '<!--'`
Happy modeling!
*Last update: `r format(Sys.Date(), "%d %B %Y")`*
`r if (knitr::is_latex_output()) '-->'`