This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
Self-Exciting Threshold Autoregression | |
References | |
---------- | |
Hansen, Bruce. 1999. | |
"Testing for Linearity." | |
Journal of Economic Surveys 13 (5): 551-576. | |
""" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/statsmodels/regression/linear_model.py b/statsmodels/regression/linear_model.py | |
index e4be23e..d7cf538 100644 | |
--- a/statsmodels/regression/linear_model.py | |
+++ b/statsmodels/regression/linear_model.py | |
@@ -90,7 +90,7 @@ class RegressionModel(base.LikelihoodModel): | |
self.df_resid = self.nobs - self.rank | |
self.df_model = float(rank(self.exog) - self.k_constant) | |
- def fit(self, method="pinv", **kwargs): | |
+ def _fit(self, method="pinv", **kwargs): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"metadata": { | |
"name": "SETAR Example - Sunspots" | |
}, | |
"nbformat": 3, | |
"nbformat_minor": 0, | |
"worksheets": [ | |
{ | |
"cells": [ | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
Structural Change | |
References | |
---------- | |
Bai, Jushan, and Pierre Perron. 1998. | |
"Estimating and Testing Linear Models with Multiple Structural Changes." | |
Econometrica 66 (1) (January 1): 47-78. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
Smooth Transition Autoregression | |
References | |
---------- | |
Dijk, Dick van, Timo Terasvirta, and Philip Hans Franses. 2002. | |
"Smooth Transition Autoregressive Models - a Survey of Recent Developments." | |
Econometric Reviews 21 (1): 1-47. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import numpy as np | |
cimport numpy as np | |
cimport cython | |
DTYPE = np.float64 | |
ctypedef np.float64_t dtype_t | |
@cython.boundscheck(False) | |
@cython.wraparound(False) | |
def hamilton_filter(int nobs, | |
int nstates, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"metadata": { | |
"name": "" | |
}, | |
"nbformat": 3, | |
"nbformat_minor": 0, | |
"worksheets": [ | |
{ | |
"cells": [ | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Typical imports | |
from cpython cimport PyCObject_AsVoidPtr | |
import numpy as np | |
cimport numpy as np | |
cimport cython | |
# BLAS / LAPACK functions | |
from blas_lapack cimport * | |
from scipy.linalg import blas, lapack |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta http-equiv="content-type" content="text/html;charset=utf-8"> | |
<title>_statespace.pyx</title> | |
<style> | |
/*--------------------- Layout and Typography ----------------------------*/ | |
body { | |
font-family: 'Palatino Linotype', 'Book Antiqua', Palatino, FreeSerif, serif; | |
font-size: 16px; |
OlderNewer