In this post, I will show how one can easily construct confidence intervals in R. Assume you have a vector of numbers and you want to construct a confidence interval around the mean of this vector. The subsequent R code shows one easy way to calculate the confidence interval around the mean of this vector. The following code loads a function that allows you to pass on the vector and returns the confidence intervals. Per default the function returns the 95% confidence interval. However, the parameter ‘conf_level’ allows you to specify the interval you want.

Continue reading Confidence Intervals in R# Tag Archives: R-Project

# Cluster Robust Standard Errors in Stargazer

In a previous post, we discussed how to obtain clustered standard errors in R. While the previous post described how one can easily calculate cluster robust standard errors in R, this post shows how one can include cluster robust standard errors in stargazer and create nice tables including clustered standard errors.

Continue reading Cluster Robust Standard Errors in Stargazer

# Robust Standard Errors in Stargazer

In a previous post, we discussed how to obtain robust standard errors in R. While the previous post described how one can easily calculate robust standard errors in R, this post shows how one can include robust standard errors in stargazer and create nice tables including robust standard errors.

# Create Venn-Diagram in R

A Venn diagram (also sometimes also called primary diagram or set diagram) is a diagram that depicts all possible logical relations between a collection of sets. Certain subjects, such as omitted variable bias, can be best be explained by using a Venn diagram. This post shows how to construct a Venn diagram in R.

# Julia-R Cheatsheet – Mathematical Operations

# Mathematical Operations

What are the commands for the most important mathematical operations in Julia and R? The following table translates the most common Julia commands into R language.

Continue reading Julia-R Cheatsheet – Mathematical Operations

# Julia-R Cheatsheet – Accessing Vector/Matrix Elements

# Accessing Vector/Matrix Elements

How to access vector and matrix elements in Julia and R? The following table translates the most common Julia commands into R language.

Continue reading Julia-R Cheatsheet – Accessing Vector/Matrix Elements

# Julia-R Cheatsheet – Manipulating Vectors and Matrices

# Manipulating Vectors and Matrices

How to manipulate vectors and matrices in Julia and R? The following table translates the most common Julia commands into R language.

Continue reading Julia-R Cheatsheet – Manipulating Vectors and Matrices

# Julia-R Cheatsheet – Creating Random Numbers

# Creating Random Numbers

How to create random number in Julia and R? The following table translates the most common Julia commands into R language.

Continue reading Julia-R Cheatsheet – Creating Random Numbers

# Julia-R Cheatsheet – Creating Matrices

# Creating Matrices

How to create matrices in Julia and R? The following table translates the most common Julia commands into R language.

# Julia-R Cheatsheet – Creating Vectors

# Creating Vectors

How to create vectors in Julia and R? The following table translates the most common Julia commands into R language.