0 оценок0% нашли этот документ полезным (0 голосов)
23 просмотров2 страницы
The R code loads car sales dataset and splits it into individual car models. Linear regression models are created to analyze the relationship between unit sales and independent variables like average petrol price, interest rates, price, GDP, and inflation. The models are compared and tested for heteroskedasticity, autocorrelation, and variance inflation. Coefficients are also calculated using heteroskedastic robust standard errors.
Исходное описание:
Many R-Codes for running the Regression analysis, white tests, checking heteroskadiscity etc
The R code loads car sales dataset and splits it into individual car models. Linear regression models are created to analyze the relationship between unit sales and independent variables like average petrol price, interest rates, price, GDP, and inflation. The models are compared and tested for heteroskedasticity, autocorrelation, and variance inflation. Coefficients are also calculated using heteroskedastic robust standard errors.
The R code loads car sales dataset and splits it into individual car models. Linear regression models are created to analyze the relationship between unit sales and independent variables like average petrol price, interest rates, price, GDP, and inflation. The models are compared and tested for heteroskedasticity, autocorrelation, and variance inflation. Coefficients are also calculated using heteroskedastic robust standard errors.
coeftest(*insert model name*,vcov=NeweyWest) - Autocorrelation and heterosked robust SE' coeftest(model1,vcovHC(model1,type="HC1")) - Heterosked robust SE (White standard error)