Skip to content

ENH: QIF regression - #5803

Merged
kshedden merged 8 commits into
statsmodels:masterfrom
kshedden:qif
Jun 1, 2019
Merged

kshedden merged 8 commits into
statsmodels:masterfrom
kshedden:qif

Conversation

@kshedden

Copy link
Copy Markdown
Contributor

No description provided.

@coveralls

coveralls commented May 29, 2019 •

Copy link
Copy Markdown

Coverage Status

Coverage increased (+0.04%) to 85.029% when pulling 58baabc on kshedden:qif into 321619e on statsmodels:master.

@codecov

codecov Bot commented May 29, 2019

Copy link
Copy Markdown

Codecov Report

Merging #5803 into master will increase coverage by 0.01%.
The diff coverage is 88.16%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #5803      +/-   ##
==========================================
+ Coverage   82.46%   82.48%   +0.01%     
==========================================
  Files         595      597       +2     
  Lines       93776    94038     +262     
  Branches    10353    10391      +38     
==========================================
+ Hits        77333    77564     +231     
- Misses      14046    14060      +14     
- Partials     2397     2414      +17
Impacted Files Coverage Δ
statsmodels/genmod/families/links.py 96.07% <100%> (+0.07%) ⬆️
statsmodels/genmod/qif.py 84.65% <84.65%> (ø)
statsmodels/genmod/tests/test_qif.py 97.14% <97.14%> (ø)

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 321619e...cc7b14a. Read the comment docs.

@codecov

codecov Bot commented May 29, 2019 •

Copy link
Copy Markdown

Codecov Report

Merging #5803 into master will increase coverage by 0.01%.
The diff coverage is 84.84%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #5803      +/-   ##
==========================================
+ Coverage   82.46%   82.47%   +0.01%     
==========================================
  Files         595      597       +2     
  Lines       93776    94062     +286     
  Branches    10353    10398      +45     
==========================================
+ Hits        77333    77580     +247     
- Misses      14046    14061      +15     
- Partials     2397     2421      +24
Impacted Files Coverage Δ
statsmodels/genmod/families/links.py 94.9% <71.42%> (-1.1%) ⬇️
statsmodels/genmod/qif.py 81.1% <81.1%> (ø)
statsmodels/genmod/tests/test_qif.py 97.26% <97.26%> (ø)
statsmodels/sandbox/distributions/extras.py 60.61% <0%> (-0.37%) ⬇️
statsmodels/miscmodels/tmodel.py 87.01% <0%> (-0.17%) ⬇️
...tsmodels/sandbox/nonparametric/densityorthopoly.py 0% <0%> (ø) ⬆️
statsmodels/discrete/tests/test_constrained.py 90.6% <0%> (ø) ⬆️
statsmodels/tsa/filters/_utils.py 42.5% <0%> (ø) ⬆️
statsmodels/sandbox/distributions/mv_normal.py 39.21% <0%> (ø) ⬆️
statsmodels/sandbox/distributions/genpareto.py 0% <0%> (ø) ⬆️
... and 21 more

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 321619e...58baabc. Read the comment docs.

Comment thread statsmodels/genmod/qif.py Outdated
cov_struct : QIFCovariance instance
An instance of a QIFCovariance.

Returns

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure that init returns anything here, other than the object.

Comment thread statsmodels/genmod/qif.py
def __init__(self):
self.num_terms = 3

def mat(self, dim, term):

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what is mat? Is there a more specific, descriptive name?

Comment thread statsmodels/genmod/qif.py
"""

def __init__(self, endog, exog, groups, family=None,
cov_struct=None, missing='none', **kwargs):

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what kwargs are expected? Can these be made explicit?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Never mind, didn't see this subclasses Model.

from statsmodels.tools.numdiff import approx_fprime
from numpy.testing import assert_allclose
import pandas as pd
import pytest

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can you collect 3rd party imports before statsmodels imports

@kshedden
kshedden merged commit 35b6aab into statsmodels:master Jun 1, 2019
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.

5 participants