Robust standard errors or covariances are not yet fully integrated into the models. They are currently mainly add-ons to get them after the model is estimated.
We will be able to change default covariance to any of the available robust covariance estimators in the next release of statsmodels and is already in current master for OLS. Then all additional results, t_test, wald_test and so on, will be using the robust or nonrobust covariance that has been defined as default.
current version: http://statsmodels.sourceforge.net/devel/generated/statsmodels.regression.linear_model.OLSResults.get_robustcov_results.html
For the prediction standard errors:
I think the calculations are the same when cov_params
is a robust sandwich estimator, but I haven't verified that against Stata. see the last part of my answer in
Mathematical background of statsmodels wls_prediction_std
So in statsmodels 0.5 it's not possible to get the prediction errors with robust covariances directly, you need to copy the function to use the desired cov_params.
Why do we use robust covariances
If there is heteroscedasticity or correlation of observations, then OLS has consistent or unbiased parameter estimates, but the standard covariance matrix of the parameter estimates is "wrong". So we need to get a covariance matrix that is robust to heteroscedasticity, correlation or both.
Many modern econometrics textbooks recommend to always use robust covariance estimators, when we are not sure about the correct specification of heteroscedasticity or correlation across observations. Which is almost always the case in economics.
The simplest case is just heteroscedasticity http://en.wikipedia.org/wiki/Heteroscedasticity-consistent_standard_errors but in timeseries we might have autocorrelation that we did not include in the model, in repeated measures or panel data we often have correlation within clusters or panels. Robust covariances give us consistent standard errors in these cases.
The same can apply to other models, for example cluster robust standard errors in Poisson or Logit model in generalized estimating equations (GEE).