I am doing linear regression assumption tests, where Shapiro-Wilk test shows data is normal. Then I tried homoscedasticity test by plotting residual vs predicted plot where I can see a clear pattern (plot is not random) which means data is not homoscedastic, But when use command (estat imtest, white) for Cameron-Trivedi and Breush-Pegan Tests , I get following:
Source | chi2 df p ---------------------+-----------------------------
Heteroskedasticity | 3.62 2 0.1641
Skewness | 0.31 1 0.5800
Kurtosis | 2.49 1 0.1148 ---------------------+-----------------------------
Total | 6.41 4 0.1707
As P value for Heteroskedasticity greater than 0.05, the data is homoscadastic.
Why I get different explanation (which is non-random pattern) from the plot?