forked from keithmcnulty/peopleanalytics-regression-book
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.Rmd
130 lines (97 loc) · 4.92 KB
/
index.Rmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
---
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"><img src="www/cover/coverpage.png" alt="Handbook of Regression Modeling Cover" width="300"/></a></p>
::: {.infobox .caution}
**Note**: This book is published by Chapman & Hall/CRC and can be purchased [directly from their website](https://www.routledge.com/Handbook-of-Regression-Modeling-in-People-Analytics-With-Examples-in-R/McNulty/p/book/9781032041742), 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 [R-ladies Global](https://rladies.org/) organization which promotes diversity in the statistical programming community. 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()) '-->'`