In Econometric.
I used the function btest to test the heteroskedaticity using the Breush-Pagman method
Regresion<-lm(Y~X, data=datos)
#Test de Breush- Pagman
bptest(Regresion)
studentized Breusch-Pagan test
#data: Regresion
#BP = 5.2722, df = 1, p-value = 0.02167
Do you know if there any similar function for white method, for lineal model.
Many Thanks in advance for your help.