Blog Archives

R-package: Wilcox’ Robust Statistics updated (WRS v0.20)

January 8, 2013
By

Rand Wilcox constantly updates the functions accompanying his books on robust statistics. Recently, they have been updated to version 20. The functions are available in the WRS package for R – for installation simply type install.packages("WRS", repos="http://R-Forge.R-project.org") In version 0.20, a number of functions dealing with ANCOVA have been added and some others improved. Unfortunately,

Read more »

Parse pdf files with R (on a Mac)

October 4, 2012
By

Inspired by this blog post from theBioBucket, I created a script to parse all pdf files in a directory. Due to its reliance on the Terminal, it’s Mac specific, but modifications for other systems shouldn’t be too hard (as a start for Windows, see BioBucket’s script). First, you have to install the command line tool

Read more »

How to check your package with R-devel

September 12, 2012
By

In response to an update to ggplot2 (now verson 0.9.2) I had to make some minor changes to our package TripleR. The CRAN maintainers also asked to … Please also fix other issues that may be apparent in checks with a current R-devel. Now, how can this be done? Here’s my workflow on Mac OS

Read more »

Visually weighted/ Watercolor Plots, new variants: Please vote!

September 6, 2012
By
Visually weighted/ Watercolor Plots, new variants: Please vote!

Update Oct-23: Added a new parameter add to the function. Now multiple groups can be plotted in a single plot (see example in my comment) As a follow-up on my R implementation of Solomon’s watercolor plots, I made some improvements to the function. I fine-tuned the graphical parameters (the median smoother line now diminishes faster

Read more »

Amazing fMRI plots for everybody!

September 5, 2012
By
Amazing fMRI plots for everybody!

Dear valued customer, it is a well-known scientific truth that research results which are accompanied by a fancy, colorful fMRI scan, are perceived as more believable and more persuasive than simple bar graphs or text results (McCabe & Castel, 2007; Weisberg, Keil, Goodstein, Rawson, & Gray, 2008). Readers even agree more with fictitious and unsubstantiated

Read more »

Visually weighted regression in R (à la Solomon Hsiang)

August 30, 2012
By
Visually weighted regression in R (à la Solomon Hsiang)

, and also the discussions on the Statistical Modeling, Causal

Read more »

Validating email adresses in R

July 5, 2012
By

I currently program an automated report generation in R – participants fill out a questionnaire, and they receive a nicely formatted pdf with their personality profile. I use knitr, LaTex, and the sendmailR package. Some participants did not provide valid email addresses, which caused the sendmail function to crash. Therefore I wanted some validation of

Read more »

Shading regions of the normal: The Stanine scale

June 26, 2012
By
Shading regions of the normal: The Stanine scale

For the presentation of norm values, often stanines are used (standard nine). These values mark a person’s relativ position in comparison to the sample or to norm values. According to Wikipedia: The underlying basis for obtaining stanines is that a normal distribution is divided into nine intervals, each of which has a width of 0.5

Read more »

Comparing all quantiles of two distributions simultaneously

April 13, 2012
By
Comparing all quantiles of two distributions simultaneously

Summary: A new function in the WRS package compares many quantiles of two distributions simultaneously while controlling the overall alpha error. When comparing data from two groups, approximately 99.6% of all psychological research compares the central tendency (that is a … Continue reading →