Skip to content

Commit

Permalink
BLD: final touches (#20)
Browse files Browse the repository at this point in the history
* DOC: change title of index

* ENH: add cheatsheets

* ENH: add license

* DOC: update README

* MAINT: republish

* MAINT: change license
  • Loading branch information
eigenfoo authored Jun 27, 2019
1 parent 6f82f67 commit bbbeab6
Show file tree
Hide file tree
Showing 9 changed files with 839 additions and 389 deletions.
396 changes: 396 additions & 0 deletions LICENSE.txt

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ black: # Format code in-place with black.
publish: # Run notebook in-place and generate HTML files.
jupyter nbconvert --to notebook --inplace --execute tests-as-linear.ipynb
jupyter nbconvert --to html tests-as-linear.ipynb
sh scripts/embed-clicky.sh
sh scripts/process-html.sh
rm tests-as-linear.html

clean: # Clean directory.
Expand Down
16 changes: 16 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,24 @@ please refer to the [original appendices
upstream](https://github.com/lindeloev/tests-as-linear/tree/master/simulations)
for the simulations.

<div class="alert alert-warning">
Finally, certain statistical functions and tests are supported by neither
<code>statsmodels</code> or <code>scipy</code>, the two statistical Python
libraries used in this port. R code with no simple Python equivalent (mainly
in parts 6 and 7, <i>Three or more means</i> and <i>Proportions: Chi-square
is a log-linear model</i>) has not been ported. Such code has been noted in
yellow warning boxes such as this one.
</div>

## Contributing

Please refer to [the contributing
guide](https://github.com/eigenfoo/tests-as-linear/blob/master/CONTRIBUTING.md)
for project structure information and development instructions.

## License

This work is licensed under a Creative Commons Attribution 4.0 International
License. Please refer to
[`LICENSE.txt`](https://github.com/eigenoo/tests-as-linear/blob/master/LICENSE.txt)
for more details.
Binary file added cheatsheets/linear_tests_cheat_sheet.pages
Binary file not shown.
Binary file added cheatsheets/linear_tests_cheat_sheet.pdf
Binary file not shown.
Binary file added cheatsheets/linear_tests_cheat_sheet.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
381 changes: 199 additions & 182 deletions index.html

Large diffs are not rendered by default.

7 changes: 5 additions & 2 deletions scripts/embed-clicky.sh → scripts/process-html.sh
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
#!/bin/bash
# Embed Clicky web analytics to generated HTML files.

# Embed Clicky web analytics.
LINE=9

head -n $LINE tests-as-linear.html > index.html
echo '<script>var clicky_site_ids = clicky_site_ids || []; clicky_site_ids.push(101159456);</script>' >> index.html
echo '<script async src="//static.getclicky.com/js"></script>' >> index.html
tail -n +$LINE tests-as-linear.html >> index.html

# Change title.
sed -i.bak "s/<title>tests-as-linear<\/title>/<title>Common statistical tests are linear models (or: how to teach stats) | Eigenfoo<\/title>/" "index.html"
rm index.html.bak
426 changes: 222 additions & 204 deletions tests-as-linear.ipynb

Large diffs are not rendered by default.

0 comments on commit bbbeab6

Please sign in to comment.