The Derivative of the Natural Logarithm

The derivative of the natural logarithm is defined the following way:

f(x) = ln (x)

f'(x)=\frac{1}{x}

The formal proof of the derivative is provided at the bottom of this post.

The following example further explains the derivative of the natural logarithm. Remember that Continue reading

Posted in Proof, Statistic | Leave a comment

Robust Standard Errors in STATA

”Robust” standard errors is a technique to obtain unbiased standard errors of OLS coefficients under heteroscedasticity. In contrary to other statistical software, such as R for instance, it is rather simple to calculate robust standard errors in STATA. All you need to is add the option robust to you regression command. That is:

Continue reading

Posted in Computing and Others | 2 Comments

Robust Standard Errors in R

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

Posted in Computing and Others, Econometrics | 3 Comments

Robust Standard Errors in R – Function

One can calculate robust standard errors easily in STATA. However, one can easily reach its limit when calculating robust standard errors in R. Although there exist several possibilities to calculate heteroscedasticity consistent standard errors most of them are not easy to implement, especially for beginners. I modified the summary() function in R so that it replicates the simple way of STATA. You can find the new summary() function below. Furthermore, I uploaded the function to a github.com repository. This makes it easy to load the function into your R session. In order to see how you can import the new summary() function into your R session and how you can use it see this post here. Continue reading

Posted in Computing and Others, Econometrics | 2 Comments

Robust Standard Errors

”Robust” standard errors is a technique to obtain unbiased standard errors of OLS coefficients under heteroscedasticity.  Remember,the presence of heteroscedasticity violates the Gauss Markov assumptions that are necessary to render OLS the best linear unbiased estimator (BLUE). Continue reading

Posted in Econometrics | 4 Comments

Violation of CLRM – Assumption 4.2: Consequences of Heteroscedasticity

Violating assumption 4.2, i.e. \sigma_{i}^{2} \neq \sigma_{j}^{2} \text{ for } i \neq j leads to heteroscedasticity. Recall, under heteroscedasticity the OLS estimator still delivers unbiased and consistent coefficient estimates, but the estimator will be biased for standard errors. Increasing the number of observations will not solve the problem in this case.

Fortunately, several ways exist to deal with heteroscedasticity: Continue reading

Posted in Econometrics | 2 Comments

Self-Hosted WordPress Permalink Problems – Solve Database Issues

Finally, if you are still here it means that you properly applied point 1 to 3 of the checklist and you are still experiencing problems with permalink.

I have one last point that you should check out. Sometimes WordPress does not Continue reading

Posted in Computing and Others | 1 Comment