# statsmodels.stats.diagnostic.linear_harvey_collier¶

statsmodels.stats.diagnostic.linear_harvey_collier(res)[source]

Harvey Collier test for linearity

The Null hypothesis is that the regression is correctly modeled as linear.

Parameters
resResult instance
Returns
tvaluefloat

test statistic, based on ttest_1sample

pvaluefloat

pvalue of the test

Notes