If you work with survey data in R, you would already know how useful the package survey is.
Among its many other uses, the survey package can compute summary statistics by subgroups. For example, if you have survey of individuals from several countries with an item on the respondents’ income, you can calculate the average income in each subgroup with the svyby() function.
However, like many other functions in the package, svyby() returns standard errors—but not standard deviations—of the mean values.
The European Commission publishes annual reports on the progress of EU candidate countries, accompanied by short press releases. I find noticeable differences between these reports and releases on Turkey; while the sentiments in the reports have been fairly stable over the years, the press releases often remarkably diverge from the reports.
The Commission’s latest report on Turkey hit the headlines as the worst EU scorecard so far.
To see if there is evidence for this claim, I analysed the sentiments in the EU reports on Turkey since 2005—the year the accession negotiations started.
When Dogan Media was bought by a pro-Erdogan businessman, many suspected a change in the position of its news outlets in the long-run. I compare the tweets by Hurriyet — Dogan’s top-selling daily — in two presidential elections, before and after the sale. I find unmistakable changes in the way the newspaper approached the candidates, increasing its bias towards Erdogan in the election months after the sale.
Most news media are divided into pro- and anti-Erdogan camps in Turkey.
Mayor of Istanbul suggested that he would invest more in the districts where AKP voters live. I analysed his investment plan for 2018, and found strong evidence that he means it: the districts governed by AKP receive on average around 250 million ₺ more from the city. Statistical tests point to a partisan motivation behind this difference in public investment.
Last week, Mayor Mevlut Uysal suggested that his administration prioritises serving the voters of Erdogan’s party (AKP), stating that the new metro lines will go to the districts where their voters live.