Skip to content

ENH: Add formula support to MI multiple imputation - #4722

Merged
kshedden merged 1 commit into
statsmodels:masterfrom
kshedden:mi_formula
Jun 21, 2018
Merged

kshedden merged 1 commit into
statsmodels:masterfrom
kshedden:mi_formula

Conversation

@kshedden

@kshedden kshedden commented Jun 7, 2018

Copy link
Copy Markdown
Contributor
  1. Allow MI to work with formulas

  2. If BayesMI is given a DataFrame, it saves the column names and returns the imputed results as a DataFrame (previously it always returned an ndarray).

  3. Docstring fixes and improvements

@coveralls

coveralls commented Jun 7, 2018 •

Copy link
Copy Markdown

Coverage Status

Coverage decreased (-0.02%) to 83.412% when pulling b08eb30 on kshedden:mi_formula into 8928f8d on statsmodels:master.

@codecov-io

Copy link
Copy Markdown

Codecov Report

Merging #4722 into master will increase coverage by <.01%.
The diff coverage is 98.03%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #4722      +/-   ##
==========================================
+ Coverage   80.88%   80.89%   +<.01%     
==========================================
  Files         577      577              
  Lines       88572    88606      +34     
  Branches     9885     9890       +5     
==========================================
+ Hits        71642    71676      +34     
  Misses      14672    14672              
  Partials     2258     2258
Impacted Files Coverage Δ
statsmodels/imputation/tests/test_bayes_mi.py 100% <100%> (ø) ⬆️
statsmodels/imputation/bayes_mi.py 93.9% <96.55%> (+0.61%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 8928f8d...b08eb30. Read the comment docs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants