Commit Graph

130 Commits

Author SHA1 Message Date
RunasSudo 0fa261498a
In auto_descriptives, autodetect ordinal variables based on category dtype 2022-12-03 22:20:42 +11:00
RunasSudo 5633a191f1
Update documentation 2022-12-03 20:01:05 +11:00
RunasSudo fa89f2f156
Implement yli.spearman 2022-12-03 20:00:52 +11:00
RunasSudo 56e16bc71d
Fixups and update documentation 2022-12-03 02:02:34 +11:00
RunasSudo 957ef9f3fc
Add documentation for RegressionResult.brant 2022-12-03 01:59:54 +11:00
RunasSudo b2a72a8ef8
Add unit test for RegressionResult.brant 2022-12-03 01:59:54 +11:00
RunasSudo ea2d04ada1
Add unit test for OrdinalLogit 2022-12-03 01:59:54 +11:00
RunasSudo 2135796d85
Automatically factorise pandas categorical when required for regression 2022-12-02 21:42:41 +11:00
RunasSudo 04643d312c
Add unit test for RegressionResult.bootstrap 2022-12-02 21:07:08 +11:00
RunasSudo e4e85db354
Refactor bootstrap regression API as method of RegressionResult 2022-12-02 21:04:58 +11:00
RunasSudo 4d59e1a521
Refactor Brant test API as method of RegressionResult 2022-12-02 20:47:35 +11:00
RunasSudo fc8303678f
Initial implementation of Brant test 2022-12-02 20:47:34 +11:00
RunasSudo 0dab62ad0a
Implement yli.OrdinalLogit as preferred model for ordinal logistic regression
OrdinalLogit uses a parameterisation where the cutoff terms are directly incorporated
2022-12-02 20:47:11 +11:00
RunasSudo f8e56d96b1
Add "method" parameter for yli.regress 2022-12-02 12:54:03 +11:00
RunasSudo a48e96e96c
Handle OrderedModel for yli.regress 2022-12-02 12:53:50 +11:00
RunasSudo 5b08784498
Ignore ModuleNotFoundError in yli.reload 2022-11-29 23:08:31 +11:00
RunasSudo 645cb7a85e
Rename bootstrap_regress to regress_bootstrap and update
Improve performance by directly calling statsmodels regression
Report bootstrap in model summary
Add to documentation
2022-11-29 23:00:14 +11:00
RunasSudo e71a1aea12
Implement bootstrap_regress 2022-11-29 14:40:50 +11:00
RunasSudo e268f385be
Implement yli.auto_descriptives 2022-11-10 21:20:06 +11:00
RunasSudo c3eef0efea
In auto_univariable, omit NaN only from affected analyses 2022-11-10 18:51:35 +11:00
RunasSudo f80afd0e80
Allow check_nan to only consider certain columns 2022-11-10 18:51:35 +11:00
RunasSudo 040aa2d463
Implement convert_pandas_nullable for pandas nullable boolean dtype 2022-11-10 18:46:54 +11:00
RunasSudo ed67a4a610
Make nan_policy defaults consistent
Should default to 'warn' always
2022-11-10 18:28:27 +11:00
RunasSudo e5833796af
Add auto_univariable 2022-11-09 23:31:27 +11:00
RunasSudo ce4df2eac1
Show independent/dependent variables in t test and Mann-Whitney output 2022-11-09 22:25:50 +11:00
RunasSudo 239a0646d2
Rename ConfidenceInterval to Interval 2022-11-09 22:10:15 +11:00
RunasSudo 0f63b7eb40
Show descriptives in Mann-Whitney test output 2022-11-09 22:08:27 +11:00
RunasSudo ea2bf53ace
Display t test comparison of groups as table 2022-11-09 18:18:47 +11:00
RunasSudo d8dcece09d
Refactor fmt_p
Combine html, only_value, tabular flags into a single Flag
2022-11-09 17:39:53 +11:00
RunasSudo c6cef4aee7
Update documentation 2022-11-09 17:39:52 +11:00
RunasSudo 50597ddc74
Update convert_pandas_nullable
Automatically convert pandas Float64 to float64 when required
Avoid unnecessary copy if possible
2022-11-09 17:39:52 +11:00
RunasSudo ab90cfc0e4
Report group means/SD for t test 2022-11-09 17:05:16 +11:00
RunasSudo bae93b2c8e
Fix bug when nan_policy='raise' 2022-10-20 20:59:06 +11:00
RunasSudo b31ae6686f
Make yli.mannwhitney support pandas nullable dtypes 2022-10-20 20:58:42 +11:00
RunasSudo ee36ac9d14
Add test and example for yli.pearsonr 2022-10-20 20:57:57 +11:00
RunasSudo 5248abf859
Clarify documentation for Mann-Whitney test 2022-10-20 20:57:24 +11:00
RunasSudo 05e5189fc5
Update global.rst documentation 2022-10-19 08:54:39 +11:00
RunasSudo d5ce46f6d0
Add example code/output to documentation 2022-10-19 08:49:44 +11:00
RunasSudo 62c23efebc
Align tabular p values in plaintext output 2022-10-19 08:49:44 +11:00
RunasSudo a484b6205c
Add option to make __repr__ print the summary 2022-10-19 08:49:44 +11:00
RunasSudo 57189990d6
Write Sphinx documentation 2022-10-19 08:49:44 +11:00
RunasSudo 7730ce476a
Make PyCryptodome an optional dependency 2022-10-19 08:49:44 +11:00
RunasSudo 3626d3037f
Disallow specifying a salt for pickle_write_encrypted 2022-10-19 08:49:43 +11:00
RunasSudo 12a0707998
Move ConfidenceInterval to yli.utils 2022-10-19 08:49:43 +11:00
RunasSudo ca521ae529
Make mpmath optional dependency 2022-10-17 20:35:04 +11:00
RunasSudo 7a93355dab
Show covariance matrix type in regression results 2022-10-17 20:34:58 +11:00
RunasSudo b24f675d57
Don't show SciPy optimisation message in regression 2022-10-17 20:34:36 +11:00
RunasSudo 4340be165b
Fix RegressionResult.bayesfactor_beta_zero for categorical terms 2022-10-16 02:49:43 +11:00
RunasSudo 78944c7966
Implement yli.logit_then_regress 2022-10-16 02:31:37 +11:00
RunasSudo 5cd04c3f6c
Report if robust covariance matrix in regression 2022-10-16 02:31:23 +11:00
RunasSudo 6206723713
Add model_kwargs, fit_kwargs and common arguments to yli.regress 2022-10-16 02:31:08 +11:00
RunasSudo f407c5a44f
Move dof_resid below dof_model in regression output
dof_model is the numerator in the F test so this makes more sense
2022-10-16 02:30:24 +11:00
RunasSudo 349eebb202
Rename δ -> Δμ for clarity 2022-10-16 01:44:05 +11:00
RunasSudo 8d40e9db8b
Improve formatting of tabular p values 2022-10-15 23:30:41 +11:00
RunasSudo a2442214ed
Observe config.alpha for significance tests and regression 2022-10-15 23:24:29 +11:00
RunasSudo bf5cc434b5
Allow customising p value formatting 2022-10-15 23:11:22 +11:00
RunasSudo 49b9230484
Rename fs -> io 2022-10-15 14:07:54 +11:00
RunasSudo 70fba04b2f
Regression output: Hide boolean reference categories by default if reference category is False 2022-10-15 01:42:06 +11:00
RunasSudo d1249914ff
Allow cols_for_formula and reference category detection to support explicit contrasts 2022-10-15 01:35:49 +11:00
RunasSudo 0391877296
Refactor parsing of Patsy formulas 2022-10-15 00:54:46 +11:00
RunasSudo b2aaaabb0e
Improve pretty printing of regression results
Pretty print categorical variables and show reference category
2022-10-14 21:57:22 +11:00
RunasSudo e8e97f6073
Implement anova_oneway 2022-10-14 20:18:25 +11:00
RunasSudo a753761675
Style fixups 2022-10-14 20:08:01 +11:00
RunasSudo 255ad100fd
Refactor fmt_p 2022-10-14 14:48:26 +11:00
RunasSudo 526d361338
Implement RegressionResult.bayesfactor_beta_zero 2022-10-14 14:21:36 +11:00
RunasSudo bb534cb285
vif: Allow computing VIF only for variables in the formula 2022-10-14 14:08:51 +11:00
RunasSudo 461e00df78
Implement PenalisedLogit 2022-10-13 17:23:29 +11:00
RunasSudo 51008296c2
Implement vif 2022-10-13 16:46:53 +11:00
RunasSudo 987520e700
Implement regression helpers 2022-10-13 16:46:53 +11:00
RunasSudo e1051d8aff
Implement utilities for saving/loading pandas DataFrames to/from file 2022-10-13 15:58:27 +11:00
RunasSudo 7e8418eb36
Implement chi2 2022-10-13 15:58:27 +11:00
RunasSudo edc82c1658
Implement mannwhitney 2022-10-13 13:18:51 +11:00
RunasSudo 6b43034a50
Implement ttest_ind 2022-10-13 12:53:18 +11:00
RunasSudo 97a01b4e80
Implement ttest_ind 2022-10-11 22:52:42 +11:00
RunasSudo 582cfa5893
Implement transformed_dist 2022-10-09 13:02:06 +11:00
RunasSudo b8250054a2
Implement truncated sum for calculating beta_oddsratio.cdf 2022-10-07 22:12:55 +11:00
RunasSudo cbb79207ae
Implement beta_oddsratio 2022-10-07 16:52:51 +11:00
RunasSudo d3842e1645
Implement hdi 2022-10-06 18:47:24 +11:00
RunasSudo fb1e03bfab
Implement beta_ratio.from_scipy 2022-10-05 21:50:16 +11:00
RunasSudo 006ddd2c41
Publish beta ratio distribution 2022-10-05 20:08:04 +11:00