One can calculate robust standard errors in R in various ways. However, one can easily reach its limit when calculating robust standard errors in R, especially when you are new in R. It always bordered me that you can calculate robust standard errors so easily in STATA, but you needed ten lines of code to compute robust standard errors in R. I decided to solve the problem myself and modified the ` summary() `

function in R so that it replicates the simple way of STATA. I added the parameter ` robust `

to the ` summary() `

function that calculates robust standard errors if one sets the parameter to true. With the new ` summary() `

function you can get robust standard errors in your usual ` summary() `

output. All you need to do is to set the ` robust `

parameter to true:

` summary(lm.object, robust=T) `

Continue reading Robust Standard Errors in R →