-
Notifications
You must be signed in to change notification settings - Fork 1
/
README.Rmd
104 lines (68 loc) · 5.39 KB
/
README.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
---
output:
github_document
encoding: 'UTF-8'
---
# noiris <img src="data-raw/noiris.png" style="margin: 0 auto; width: 10%">
This package is primarily to provide data that is more similar to what many people would typically come across in the wild, or is simply more interesting or accessible (in my opinion), and more useful for instruction and workshops. Far too often examples use `iris`, `mtcars`, etc. for convenience, but these are actually inconvenient for demonstrating common data and modeling problems, or are too small to even be realistic.
This package will provide larger and messier data. The bias is towards data that could be understood regardless of discipline/background. In addition, it should have minimally several hundred observations, and often much larger, but not so large that analysis or data processing demonstration would take an inordinate amount of time. However, it should have relatively few columns (unless for demonstration of a 'large p' type of problem/analysis, e.g. penalized regression.).
In general the goals are:
- Large(-ish) data. At least enough to make analysis and visualization interesting.
- Clean messy data (not a typo). Most of the data is relatively clean, but some will have missing values, require text cleaning, etc.
- Well documented data. All columns will have descriptions (unless otherwise not possible), and article references and web sources will be provided.
- Well named data. It can be very annoying if something is called d, an author name, an acronym, etc. Columns are also renamed for some data sets for clarity.
- Data that covers common analyses.
## Data
In most cases the data has been cleaned up to make it easier to use and understand.
Right now it has:
- `gapminder_2019`: a 2019 pull from [gapminder.org/data](http://www.gapminder.org/data/).
- A nice longitudinal/time-series data set suitable for a wide range of standard and more complex mixed models, spatial visualization and analyses, etc.
- `star_wars`: several data sets based on the [Star Wars API](https://swapi.co/).
- Mostly just for fun, but it demonstrates usage of list columns and otherwise could be good for demonstrating joins.
- `instructor_evaluations`: a nice-sized data set for mixed/multi-level modeling taken from the `lme4` package.
- Good for mixed models and similar.
- `fish`: Number of fish caught on camping trips.
- An accessible data set useful for demonstrating count models including zero-inflated/hurdle models.
- `pisa`: OECD's Programme for International Student Assessment with international scores for math, science, and reading, covering years 2000-2015.
- Potentially good for demonstrating nonlinear relationships (e.g. GAM), imputing missing data, longitudinal/spatial analyses.
- `world_happiness`: Multiyear data set with country level scores of 'happiness'. From 2019 World Happiness Report, and includes data from 2005-2018.
- Similar to Gapminder and PISA, this could be used for a variety of standard statistical models.
- `sp500`: Daily S & P 500 data for a 10 year period covering +- 5 years before and after the Great Recession low.
- Good for time series and related analyses. Includes industry classifications.
- `wine_reviews`, `wine_quality`: Two data sets regarding wine reviews that can be used for a wide range of standard statistical and machine learning.
- Can be used for standard regression and classification, ordinal regression, text analysis, sentiment analysis.
- `google_apps`: Ratings and other information for Google Play Store apps.
- Text & sentiment analysis, standard regression, etc.
- `fashion_train`, `fasion_test`: The 'Fashion MNIST'. Image data for clothing items.
- Image classification, cluster analysis
- `gender_gap`, `gender_gap_2018`: Country level data regarding the World Bank Gender Gap Index.
- Longitudinal analysis, geospatial analysis, etc.
- `kiva`: Lending information from kiva.org online crowdfunding platform.
- econometric, geospatial, multilevel, etc.
- `water_risk`, `water_risk_province`: Country and province level data regarding water risk.
- geospatial analysis and visualization
- `big_five`: Big Five personality traits.
- scale reliability, factor analysis, item response theory, structural equation modeling.
- `heart_disease`: The UCI heart disease data.
- survival, classification.
- `retirement`: Data on retirement plan participation rate of employees.
- binomial glm, fractional regression, beta regression.
- `movielens`: 1 million samples from MovieLens data.
- recommendation systems, item response theory, cluster analysis, etc.
## Installation
This package is not on CRAN. To install:
```{r, eval=FALSE}
devtools::install_github('m-clark/noiris')
```
## Other
To do:
- [X] Data for basic classification
- [X] Data for basic machine learning (regression and classification)
- [X] Data for text analysis (more to come)
- [X] Data for image classification
- [X] Data for survival analysis
- [X] Data for factor analysis/SEM (PCA?)
- [X] Data on the unit interval suitable for binomial, beta regression, etc.
- [X] Data for non-obvious cluster analysis (no iris! and no old faithful either!).
- [ ] Data for network/graphical models and visualization.
Note to self, see flexmix, poLCA, and other packages. Maybe add classic biochemists for another count data set. Article pub for link models and related.