Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,7 @@ jobs:

- name: Install dependencies
run: |
pip install -r requirements.txt
pip install mkdocs-material mkdocs-material-extensions mkdocstrings[python]
pip install -e .
pip install -e ".[dev]"

- name: Build and Deploy
working-directory: docs # Set the working directory to 'docs'
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
run: |
python -m pip install --upgrade pip
python -m pip install flake8 pytest
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
pip install -e .
- name: Lint with flake8
run: |
# stop the build if there are Python syntax errors or undefined names
Expand Down
453 changes: 347 additions & 106 deletions examples/T4-regression.ipynb

Large diffs are not rendered by default.

73 changes: 73 additions & 0 deletions pycircstat2/data/pewsey/lung_deaths.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
,year,month,deaths
1,1974,1,3035
2,1974,2,2552
3,1974,3,2704
4,1974,4,2554
5,1974,5,2014
6,1974,6,1655
7,1974,7,1721
8,1974,8,1524
9,1974,9,1596
10,1974,10,2074
11,1974,11,2199
12,1974,12,2512
13,1975,1,2933
14,1975,2,2889
15,1975,3,2938
16,1975,4,2497
17,1975,5,1870
18,1975,6,1726
19,1975,7,1607
20,1975,8,1545
21,1975,9,1396
22,1975,10,1787
23,1975,11,2076
24,1975,12,2837
25,1976,1,2787
26,1976,2,3891
27,1976,3,3179
28,1976,4,2011
29,1976,5,1636
30,1976,6,1580
31,1976,7,1489
32,1976,8,1300
33,1976,9,1356
34,1976,10,1653
35,1976,11,2013
36,1976,12,2823
37,1977,1,2996
38,1977,2,2523
39,1977,3,2540
40,1977,4,2520
41,1977,5,1994
42,1977,6,1641
43,1977,7,1691
44,1977,8,1479
45,1977,9,1696
46,1977,10,1877
47,1977,11,2032
48,1977,12,2484
49,1978,1,2899
50,1978,2,2990
51,1978,3,2890
52,1978,4,2379
53,1978,5,1933
54,1978,6,1734
55,1978,7,1617
56,1978,8,1495
57,1978,9,1440
58,1978,10,1777
59,1978,11,1970
60,1978,12,2745
61,1979,1,2841
62,1979,2,3535
63,1979,3,3010
64,1979,4,2091
65,1979,5,1667
66,1979,6,1589
67,1979,7,1518
68,1979,8,1349
69,1979,9,1392
70,1979,10,1619
71,1979,11,1954
72,1979,12,2633
25 changes: 25 additions & 0 deletions pycircstat2/data/pewsey/lung_deaths.csv-metadata.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"Description": "Monthly numbers of deaths attributed to lung disease in a given area, recorded over six consecutive years (1974-1979). Used in Pewsey, Neuhäuser & Ruxton (2014) to illustrate linear-circular regression with a periodic (annual) seasonal component. The February 1976 (3891) and February 1979 (3535) observations are typically treated as outliers and dropped before fitting the cosine regression model in §8.4.1-§8.4.2.",
"Source": "Hand et al. (1994) — A Handbook of Small Data Sets, Chapman & Hall.",
"Examples": "Pewsey, Neuhäuser & Ruxton (2014) §8.4.1-§8.4.4",
"Columns": {
"year": {
"name": "year",
"type": "integer",
"unit": "calendar year",
"description": "calendar year of observation (1974-1979)"
},
"month": {
"name": "month",
"type": "integer",
"unit": "month-of-year",
"description": "month index, 1=January through 12=December"
},
"deaths": {
"name": "deaths",
"type": "integer",
"unit": "count",
"description": "monthly number of deaths attributed to lung disease"
}
}
}
Loading
Loading