A small selection of R scripts of things I am finding useful and to share with students
- Setting up R
- Telling R where to find your data and program files (setting the working directory)
- Basic packages to install for social science research
- Alternative ways of calculating means for variable by groups of categorical variables (i.e. by factors)
- Alternative ways of creating a bar plot or box plot of means of variable by twoway categories
- Running a regression and getting output formatted for cut and paste into Excel
- A script to download data from World Development Indicators and calculate number of missing women
- Using the World Bank’s Gender database… R script to reshape the data.
Some links to really useful resources on R (for the social sciences)
- statsTeachR is an open-access, online repository of modular lesson plans, a.k.a. “modules”, for teaching statistics using R at the undergraduate and graduate level
- A table that provides translations of Stata commands into R.
- A really great concordance between R and Stata.
- A new R package that will “meta” Stata syntax into R so yuo don;t even have to learn R you can just use Stata commands and keep fingers cross.