diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 731e16a..35e0606 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -21,15 +21,18 @@ some ideas on how to contribute. . ├── CODE_OF_CONDUCT.md ├── CONTRIBUTING.md +├── LICENSE.txt ├── Makefile ├── README.md +├── cheatsheets +│   └── ... ├── index.html # Published HTML. ├── requirements-dev.txt # Dependencies for development. ├── requirements.txt # Dependencies. ├── scripts # Shell scripts for development, testing and deployment. │   └── ... ├── tests-as-linear.ipynb # Main notebook. -└── tests_as_linear # Python source code +└── tests_as_linear # Supporting Python source code. ├── __init__.py ├── plots.py # Functions for large plots in main notebook. └── utils.py # Utility functions used in main notebook. diff --git a/Makefile b/Makefile index 4c8e41a..241f8f8 100644 --- a/Makefile +++ b/Makefile @@ -41,7 +41,7 @@ test: clean # Run test scripts. check: clean lint test # Alias for `make clean lint test`. black: # Format code in-place with black. - black *.py --target-version=py36 + black tests_as_linear/ --target-version=py36 publish: # Run notebook in-place and generate HTML files. jupyter nbconvert --to notebook --inplace --execute tests-as-linear.ipynb diff --git a/README.md b/README.md index efe5d49..fe32036 100644 --- a/README.md +++ b/README.md @@ -26,14 +26,11 @@ please refer to the [original appendices upstream](https://github.com/lindeloev/tests-as-linear/tree/master/simulations) for the simulations. -
- Finally, certain statistical functions and tests are supported by neither - statsmodels or scipy, the two statistical Python - libraries used in this port. R code with no simple Python equivalent (mainly - in parts 6 and 7, Three or more means and Proportions: Chi-square - is a log-linear model) has not been ported. Such code has been noted in - yellow warning boxes such as this one. -
+Finally, certain statistical functions and tests are supported by neither +`statsmodels` or `scipy`, the two statistical Python libraries used in this +port. R code with no simple Python equivalent (mainly in sections 6 and 7, +"Three or more means" and "Proportions: Chi-square is a log-linear model") has +not been ported. Such code has been noted in yellow warning boxes. ## Contributing diff --git a/index.html b/index.html index 48a7ff4..9509c82 100644 --- a/index.html +++ b/index.html @@ -13298,10 +13298,10 @@

2 Python environmentimport scipy import statsmodels.api as sm import statsmodels.formula.api as smf +# See GitHub repo for supporting Python code. from tests_as_linear import plots, utils np.random.seed(1618) -plt.style.use('seaborn-whitegrid') diff --git a/tests-as-linear.ipynb b/tests-as-linear.ipynb index aa8ee88..37d321d 100644 --- a/tests-as-linear.ipynb +++ b/tests-as-linear.ipynb @@ -144,10 +144,10 @@ "import scipy\n", "import statsmodels.api as sm\n", "import statsmodels.formula.api as smf\n", + "# See GitHub repo for supporting Python code.\n", "from tests_as_linear import plots, utils\n", "\n", - "np.random.seed(1618)\n", - "plt.style.use('seaborn-whitegrid')" + "np.random.seed(1618)" ] }, { diff --git a/tests_as_linear/plots.py b/tests_as_linear/plots.py index 53a3082..63915cb 100644 --- a/tests_as_linear/plots.py +++ b/tests_as_linear/plots.py @@ -4,6 +4,8 @@ import matplotlib.pyplot as plt from .utils import signed_rank, format_decimals_factory +plt.style.use("seaborn-whitegrid") + def linear_regression_plot(): # Construct data as a pd.DataFrame