-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathmiscmodels.html
More file actions
190 lines (167 loc) · 9.43 KB
/
miscmodels.html
File metadata and controls
190 lines (167 loc) · 9.43 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Other Models miscmodels — statsmodels 0.6.1 documentation</title>
<link rel="stylesheet" href="_static/nature.css" type="text/css" />
<link rel="stylesheet" href="_static/pygments.css" type="text/css" />
<script type="text/javascript">
var DOCUMENTATION_OPTIONS = {
URL_ROOT: './',
VERSION: '0.6.1',
COLLAPSE_INDEX: false,
FILE_SUFFIX: '.html',
HAS_SOURCE: true
};
</script>
<script type="text/javascript" src="_static/jquery.js"></script>
<script type="text/javascript" src="_static/underscore.js"></script>
<script type="text/javascript" src="_static/doctools.js"></script>
<link rel="shortcut icon" href="_static/statsmodels_hybi_favico.ico"/>
<link rel="author" title="About these documents" href="about.html" />
<link rel="top" title="statsmodels 0.6.1 documentation" href="index.html" />
<link rel="next" title="statsmodels.miscmodels.count.PoissonGMLE" href="generated/statsmodels.miscmodels.count.PoissonGMLE.html" />
<link rel="prev" title="statsmodels.emplike.descriptive.DescStatMV.test_corr" href="generated/statsmodels.emplike.descriptive.DescStatMV.test_corr.html" />
<link rel="stylesheet" href="../../_static/facebox.css" type="text/css" />
<link rel="stylesheet" href="../_static/examples.css" type="text/css" />
<script type="text/javascript" src="_static/scripts.js">
</script>
<script type="text/javascript" src="_static/facebox.js">
</script>
</head>
<body role="document">
<div class="headerwrap">
<div class = "header">
<a href = "index.html">
<img src="_static/statsmodels_hybi_banner.png" alt="Logo"
style="padding-left: 15px"/></a>
</div>
</div>
<div class="related" role="navigation" aria-label="related navigation">
<h3>Navigation</h3>
<ul>
<li class="right" style="margin-right: 10px">
<a href="genindex.html" title="General Index"
accesskey="I">index</a></li>
<li class="right" >
<a href="generated/statsmodels.miscmodels.count.PoissonGMLE.html" title="statsmodels.miscmodels.count.PoissonGMLE"
accesskey="N">next</a> |</li>
<li class="right" >
<a href="generated/statsmodels.emplike.descriptive.DescStatMV.test_corr.html" title="statsmodels.emplike.descriptive.DescStatMV.test_corr"
accesskey="P">previous</a> |</li>
<li><a href ="install.html">Install</a></li> |
<li><a href="https://groups.google.com/group/pystatsmodels?hl=en">Support</a></li> |
<li><a href="https://github.com/statsmodels/statsmodels/issues">Bugs</a></li> |
<li><a href="dev/index.html">Develop</a></li> |
<li><a href="examples/index.html">Examples</a></li> |
<li><a href="faq.html">FAQ</a></li> |
</ul>
</div>
<div class="document">
<div class="documentwrapper">
<div class="bodywrapper">
<div class="body" role="main">
<div class="section" id="other-models-miscmodels">
<span id="miscmodels"></span><h1>Other Models <code class="xref py py-mod docutils literal"><span class="pre">miscmodels</span></code><a class="headerlink" href="#other-models-miscmodels" title="Permalink to this headline">¶</a></h1>
<p><code class="xref py py-mod docutils literal"><span class="pre">statsmodels.miscmodels</span></code> contains model classes and that do not yet fit into
any other category, or are basic implementations that are not yet polished and will most
likely still change. Some of these models were written as examples for the generic
maximum likelihood framework, and there will be others that might be based on general
method of moments.</p>
<p>The models in this category have been checked for basic cases, but might be more exposed
to numerical problems than the complete implementation. For example, count.Poisson has
been added using only the generic maximum likelihood framework, the standard errors
are based on the numerical evaluation of the Hessian, while discretemod.Poisson uses
analytical Gradients and Hessian and will be more precise, especially in cases when there
is strong multicollinearity.
On the other hand, by subclassing GenericLikelihoodModel, it is easy to add new models,
another example can be seen in the zero inflated Poisson model, miscmodels.count.</p>
<div class="section" id="count-models-count">
<h2>Count Models <code class="xref py py-mod docutils literal"><span class="pre">count</span></code><a class="headerlink" href="#count-models-count" title="Permalink to this headline">¶</a></h2>
<table border="1" class="longtable docutils">
<colgroup>
<col width="10%" />
<col width="90%" />
</colgroup>
<tbody valign="top">
<tr class="row-odd"><td><a class="reference internal" href="generated/statsmodels.miscmodels.count.PoissonGMLE.html#statsmodels.miscmodels.count.PoissonGMLE" title="statsmodels.miscmodels.count.PoissonGMLE"><code class="xref py py-obj docutils literal"><span class="pre">PoissonGMLE</span></code></a>(endog[, exog, loglike, score, ...])</td>
<td>Maximum Likelihood Estimation of Poisson Model</td>
</tr>
<tr class="row-even"><td><a class="reference internal" href="generated/statsmodels.miscmodels.count.PoissonOffsetGMLE.html#statsmodels.miscmodels.count.PoissonOffsetGMLE" title="statsmodels.miscmodels.count.PoissonOffsetGMLE"><code class="xref py py-obj docutils literal"><span class="pre">PoissonOffsetGMLE</span></code></a>(endog[, exog, offset, missing])</td>
<td>Maximum Likelihood Estimation of Poisson Model</td>
</tr>
<tr class="row-odd"><td><a class="reference internal" href="generated/statsmodels.miscmodels.count.PoissonZiGMLE.html#statsmodels.miscmodels.count.PoissonZiGMLE" title="statsmodels.miscmodels.count.PoissonZiGMLE"><code class="xref py py-obj docutils literal"><span class="pre">PoissonZiGMLE</span></code></a>(endog[, exog, offset, missing])</td>
<td>Maximum Likelihood Estimation of Poisson Model</td>
</tr>
</tbody>
</table>
</div>
<div class="section" id="linear-model-with-t-distributed-errors">
<h2>Linear Model with t-distributed errors<a class="headerlink" href="#linear-model-with-t-distributed-errors" title="Permalink to this headline">¶</a></h2>
<p>This is a class that shows that a new model can be defined by only specifying the
method for the loglikelihood. All result statistics are inherited from the generic
likelihood model and result classes. The results have been checked against R for a
simple case.</p>
<table border="1" class="longtable docutils">
<colgroup>
<col width="10%" />
<col width="90%" />
</colgroup>
<tbody valign="top">
<tr class="row-odd"><td><a class="reference internal" href="generated/statsmodels.miscmodels.tmodel.TLinearModel.html#statsmodels.miscmodels.tmodel.TLinearModel" title="statsmodels.miscmodels.tmodel.TLinearModel"><code class="xref py py-obj docutils literal"><span class="pre">TLinearModel</span></code></a>(endog[, exog, loglike, score, ...])</td>
<td>Maximum Likelihood Estimation of Linear Model with t-distributed errors</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
<div class="sphinxsidebar" role="navigation" aria-label="main navigation">
<div class="sphinxsidebarwrapper">
<h3><a href="index.html">Table Of Contents</a></h3>
<ul>
<li><a class="reference internal" href="#">Other Models <code class="docutils literal"><span class="pre">miscmodels</span></code></a><ul>
<li><a class="reference internal" href="#count-models-count">Count Models <code class="docutils literal"><span class="pre">count</span></code></a></li>
<li><a class="reference internal" href="#linear-model-with-t-distributed-errors">Linear Model with t-distributed errors</a></li>
</ul>
</li>
</ul>
<h4>Previous topic</h4>
<p class="topless"><a href="generated/statsmodels.emplike.descriptive.DescStatMV.test_corr.html"
title="previous chapter">statsmodels.emplike.descriptive.DescStatMV.test_corr</a></p>
<h4>Next topic</h4>
<p class="topless"><a href="generated/statsmodels.miscmodels.count.PoissonGMLE.html"
title="next chapter">statsmodels.miscmodels.count.PoissonGMLE</a></p>
<div role="note" aria-label="source link">
<h3>This Page</h3>
<ul class="this-page-menu">
<li><a href="_sources/miscmodels.txt"
rel="nofollow">Show Source</a></li>
</ul>
</div>
<div id="searchbox" style="display: none" role="search">
<h3>Quick search</h3>
<form class="search" action="search.html" method="get">
<input type="text" name="q" />
<input type="submit" value="Go" />
<input type="hidden" name="check_keywords" value="yes" />
<input type="hidden" name="area" value="default" />
</form>
<p class="searchtip" style="font-size: 90%">
Enter search terms or a module, class or function name.
</p>
</div>
<script type="text/javascript">$('#searchbox').show(0);</script>
</div>
</div>
<div class="clearer"></div>
</div>
<div class="footer" role="contentinfo">
© Copyright 2009-2013, Josef Perktold, Skipper Seabold, Jonathan Taylor, statsmodels-developers.
Created using <a href="http://sphinx-doc.org/">Sphinx</a> 1.3.1.
</div>
</body>
</html>