start_params : array (optional)
starting value for parameters ub minimization. If None then
fitstart method is called for the starting values.
maxiter : int or ‘cue’
Number of iterations in iterated GMM. The onestep estimate can be
obtained with maxiter=0 or 1. If maxiter is large, then the
iteration will stop either at maxiter or on convergence of the
parameters (TODO: no options for convergence criteria yet.)
If maxiter == ‘cue’, the the continuously updated GMM is
calculated which updates the weight matrix during the minimization
of the GMM objective function. The CUE estimation uses the onestep
parameters as starting values.
inv_weights : None or ndarray
inverse of the starting weighting matrix. If inv_weights are not
given then the method start_weights is used which depends on
the subclass, for IV subclasses inv_weights = z’z where z are
the instruments, otherwise an identity matrix is used.
weights_method : string, defines method for robust
Options here are similar to statsmodels.stats.robust_covariance
default is heteroscedasticity consistent, HC0
currently available methods are
- cov : HC0, optionally with degrees of freedom correction
- hac :
- iid : untested, only for Z*u case, IV cases with u as error indep of Z
- ac : not available yet
- cluster : not connected yet
- others from robust_covariance
wargs` : tuple or dict,
required and optional arguments for weights_method
- centered : bool,
indicates whether moments are centered for the calculation of the weights
and covariance matrix, applies to all weight_methods
- ddof : int
degrees of freedom correction, applies currently only to cov
- maxlag : int
number of lags to include in HAC calculation , applies only to hac
- others not yet, e.g. groups for cluster robust
has_optimal_weights: If true, then the calculation of the covariance :
matrix assumes that we have optimal GMM with
System Message: WARNING/2 (W = S^{-1})
latex exited with error
[stdout]
This is pdfTeX, Version 3.14159265-2.6-1.40.15 (TeX Live 2014) (preloaded format=latex)
restricted \write18 enabled.
entering extended mode
(./math.tex
LaTeX2e <2011/06/27>
Babel <3.9k> and hyphenation patterns for 2 languages loaded.
(/usr/share/texlive/texmf-dist/tex/latex/base/article.cls
Document Class: article 2007/10/19 v1.4h Standard LaTeX document class
(/usr/share/texlive/texmf-dist/tex/latex/base/size12.clo))
(/usr/share/texlive/texmf-dist/tex/latex/base/inputenc.sty
! LaTeX Error: File `utf8x.def’ not found.
Type X to quit or <RETURN> to proceed,
or enter new name. (Default extension: def)
Enter file name:
! Emergency stop.
<read *>
l.131 \endinput
^^M
No pages of output.
Transcript written on math.log.
.
Default is True.
TODO: do we want to have a different default after onestep?
optim_method : string, default is ‘bfgs’
numerical optimization method. Currently not all optimizers that
are available in LikelihoodModels are connected.
optim_args : dict
keyword arguments for the numerical optimizer.
|