Publications by Daniel

Looping through factor variables

10.01.2012

Today I was typing to a friend who is working on a Ph.D thesis about my favor issue on elections: campaign contributions. We discussed about analyzing probabilities of a particular group/category grasp more money than the others, in this case, male and female given a district. A preliminary approach should consider identify in the data whether a ...

3636 sym 4 img

Running R through Stata on Mac OS

10.01.2012

I’ve friends favouring Stata rather than R, while others do the inverse. However, few of them actually know that it is possible to work on both softwares, simultaneously inclusive. It is possible to integrate R and Stata, complementing so we can run almost all kind of analyses using them. Therefore, who prefers the Stata’s interface but favor...

3434 sym 12 img

Loading SPSS (.sav) into Stata

11.10.2012

Most statistical softwares nowadays are able to convert their files to a wide range of other packages. Perhaps it is the reason for the discontinuity of old converter bundles like SAS Transport and DBMS. Interesting, however, Stata, a quite popular statistical package, still lack built-in support for exporting and importing files among concurrent...

3873 sym

Why [Not] Simulate?

27.11.2012

Since we are in the “big data” Era, which means that a massive amount of data are made daily available by governments, institutions, and ordinary people like you and me—the importance of simulate data for “frequentists”, like myself, seems to fade. After all, once we have access to “real data”, why bother with non-real data, right? ...

6565 sym 8 img

Loading Big files in R

05.12.2012

Far as I remember, today was the first day in my life I succeed to load a text file bigger than 1.5 Gb into R (~ 5 million lines and 18 columns). My computer is not a small stuff, I’m using a Macbook Pro with rough 8GB of RAM, but the issue why I couldn’t load such huge file–I would discover later–was not related to the robustness of the...

2565 sym 2 img

Migrating from SPSS to R #rstats

22.02.2013

Preface I will every now and then post my experience with R, a package for statistical analyses. I try to show some solutions for common types of analyses or problems you are facing when you start working with R. These “tutorials” especially address people who are used to work with SPSS or maybe also Strata. Since I myself am new to R, my sol...

4636 sym 8 img

Simplify your R workflow with functions #rstats

24.02.2013

Update/ Thanks to Bernd I could improve the function of how to import the data, so here’s the updated script! /Update In R, you often may have scripts or code snippets that will be reused. In such cases, you can write functions for your every-day-tasks. For instance, importing and converting data is such a task. I have written a small function ...

1213 sym R (908 sym/4 pcs) 4 img

Simplify frequency plots with ggplot in R #rstats

25.02.2013

Update March 5th All downloads are now accessible from my script page! Summary This posting shows how to plot frequency plots using the ggplot-package in R. Compared to SPSS standard outputs, you will learn how to create appealing diagrams ready for use in your papers. Frequency plots in SPSS In SPSS, you can create frequencies of variables by u...

4488 sym R (1146 sym/8 pcs) 24 img

2013 World Universities Ranking

04.03.2013

The Times Higher Education (http://www.timeshighereducation.co.uk) released its World Reputation Ranking. The ranking employs survey consultation among invited-only academics to measure reputation among several universities. It is assumed to be the world’s largest opinion survey of this sort across the globe. Every year, a list of the top 100 m...

1685 sym 2 img

Easily plotting grouped bars with ggplot #rstats

05.03.2013

Summary This tutorial shows how to create diagrams with grouped bar charts or dot plots with ggplot. The groups can also be displayed as facet grids. Importing the data from SPSS All following examples are based on an imported SPSS data set. Refer to this posting for more details on how to do that and to my script page to download the scripts. Th...

5652 sym R (2477 sym/11 pcs) 22 img