• Home
  • Blog Archives
  • R Resources
  • Contact

Recent Comments

  • Rasmus Larsen on Monty Hall Simulations
  • Rasmus Larsen on Monty Hall Simulations
  • Thays de Souza on Effect of sample size on the accuracy of Cohen’s d estimates (95 % CI)
  • Helen on Effect of sample size on the accuracy of Cohen’s d estimates (95 % CI)
  • henrique on Short R script to plot effect sizes (Cohen’s d) and shade overlapping area

Blogroll

  • R-bloggers
  • Research Blogging

“It wouldn’t happen…there hasn’t been one publication by a monkey.”

- Karl Pilkington on the Infinite Monkey theorem
  • Menu
  • Sidebar

Posts in Category ‘R’

World map in ggplot using winkel tripel projection

Working with shapefiles, projections and world maps in ggplot

In this post I show some different examples of how to work with map projections and how to plot the maps using ggplot. Many maps that are using the default projection are shown in the longlat-format, which is far from optimal. Here I show how to use either the Robinson or Winkel Tripel projection. Read more

  • May 23, 2013
  • Comments 0
  • Filed under: R

Share this:

  • Tweet
  • Pin It

Analytical and simulation-based power analyses for mixed-design ANOVAs

In this post I show some R-examples on how to perform power analyses for mixed-design ANOVAs. The first example is analytical—and adapted from formulas used in G*Power (Faul et al., 2007), and the second example is a Monte Carlo simulation. Read more

  • May 22, 2013
  • Comments 0
  • Filed under: R, Statistics

Share this:

  • Tweet
  • Pin It

How to tell when error bars correspond to a significant p-value

Can you tell when error bars based on 95 % CIs or standard errors correspond to a significant p-value? Don’t fret if you think it’s hard, a study from 2005 showed that researchers in psychogoly, behavior neuroscience and medicine had a hard time judging when error bars from two independent groups signified a significant difference. Read more

  • July 24, 2012
  • Comments 12
  • Filed under: R, Statistics

Share this:

  • Tweet
  • Pin It

The Higgs boson: 5-sigma and the concept of p-values

Why are physicists talking about 5-sigma, and what’s it got to do with statistics? In this short post I’ll explain what 5-sigma is and why it’s not a measure of how certain scientist are that they’ve found the Higgs boson Read more

  • July 4, 2012
  • Comments 5
  • Filed under: R, Statistics

Share this:

  • Tweet
  • Pin It

Effect of sample size on the accuracy of Cohen’s d estimates (95 % CI)

When talking about confidence intervals, Jacob Cohen famously said: “I suspect that the main reason they are not reported is that they are so embarrassingly large!” (Cohen, 1994). In this post I’ll take a look at the relationship between the 95 % CI for Cohen’s d and it’s corresponding sample size. Read more

  • June 27, 2012
  • Comments 2
  • Filed under: Psychology, R, Statistics

Share this:

  • Tweet
  • Pin It
PubMed publications output of world countries in 2011

PubMed publications in 2011 by 202 world countries: who’s the winner?

Which country had the most PubMed citations in 2011? To find out I used R statistical software to analyze the affiliation of 986 427 articles. Read more

  • May 7, 2012
  • Comments 14
  • Filed under: R, Statistics

Share this:

  • Tweet
  • Pin It
Use R to download complete XML records from PubMed and extract data

How to download complete XML records from PubMed and extract data

Yesterday I wrote an article that looked at the top 20 Cognitive Behavior Therapy journals with the most publications; today I will explain how I did it with R. Read more

  • April 27, 2012
  • Comments 6
  • Filed under: R

Share this:

  • Tweet
  • Pin It

More PubMed data mining: looking at top 20 CBT journals

In this short article I present some data of the top 20 Cognitive Behavior Therapy (CBT) journals with the most PubMed publications, and compare that to data from 2010 and 2011. Read more

  • April 26, 2012
  • Comments 0
  • Filed under: Psychology, R, Statistics

Share this:

  • Tweet
  • Pin It

Short R script to plot effect sizes (Cohen’s d) and shade overlapping area

In this short post I take a look at how to use R and ggplot2 to visualize effect sizes (Cohen’s d) and how to shade the overlapping area of two distributions. Read more

  • April 23, 2012
  • Comments 3
  • Filed under: Psychology, R, Statistics

Share this:

  • Tweet
  • Pin It
PubMed_trend_feature

An R Script to Automatically download PubMed Citation Counts By Year of Publication

Ever wanted to look at PubMed trends and make elegant graphs of them? Here’s an R script that will do it automatically for you. Read more

  • April 19, 2012
  • Comments 19
  • Filed under: R, Statistics

Share this:

  • Tweet
  • Pin It
← Older entries

Copyright information

Creative Commons
All work on this website is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.

Follow me

  • Twitter
  • RSS Feed

Tags

Big Data Cognitive Behavior Therapy cohen's d DSM effect sizes Featured Ggplot2 Journal last.fm Maps Meditation Mindfulness Probability Psychology PubMed R Research Simulation statistics Tutorial

Top Posts & Pages

  • Working with shapefiles, projections and world maps in ggplot
  • Cognitive behavior therapy outperformed psychodynamic therapy on all outcomes in a randomized controlled trail
  • Simple data mining and plotting data on a map with ggplot2
  • How to tell when error bars correspond to a significant p-value
  • An R Script to Automatically download PubMed Citation Counts By Year of Publication
  • How to work with Google n-gram data sets in R using MySQL
  • Analytical and simulation-based power analyses for mixed-design ANOVAs
  • PubMed publications in 2011 by 202 world countries: who’s the winner?
  • The Higgs boson: 5-sigma and the concept of p-values
Top

About me

Hello, I am a psychologist from Sweden with a passion for research and statistics. I hold a Master of Science degree in psychology from Umeå University. This is my personal blog about psychological research and statistical programming with R.

  • Twitter
  • RSS Feed

Tags

Big Data Cognitive Behavior Therapy cohen's d DSM effect sizes Featured Ggplot2 Journal last.fm Maps Meditation Mindfulness Probability Psychology PubMed R Research Simulation statistics Tutorial

Categories

  • Psychology (10)
  • R (16)
  • Research (6)
  • Statistics (10)

Archives

  • May 2013 (2)
  • July 2012 (3)
  • June 2012 (1)
  • May 2012 (1)
  • April 2012 (11)
  • March 2012 (3)

Recent Posts

  • Working with shapefiles, projections and world maps in ggplot

    May 23, 2013
  • Analytical and simulation-based power analyses for mixed-design ANOVAs

    May 22, 2013
  • Cognitive behavior therapy outperformed psychodynamic therapy on all outcomes in a randomized controlled trail

    July 30, 2012
  • How to tell when error bars correspond to a significant p-value

    July 24, 2012
  • The Higgs boson: 5-sigma and the concept of p-values

    July 4, 2012

Follow me on Twitter

My Tweets