statsmodels.stats.diagnostic.linear_lm(resid, exog, func=None)
[source]
Lagrange multiplier test for linearity against functional alternative
limitations: Assumes currently that the first column is integer. Currently it doesn’t check whether the transformed variables contain NaNs, for example log of negative number.
Parameters: 


Returns: 

written to match Gretl’s linearity test. The test runs an auxilliary regression of the residuals on the combined original and transformed regressors. The Null hypothesis is that the linear specification is correct.
© 2009–2012 Statsmodels Developers
© 2006–2008 Scipy Developers
© 2006 Jonathan E. Taylor
Licensed under the 3clause BSD License.
http://www.statsmodels.org/stable/generated/statsmodels.stats.diagnostic.linear_lm.html