Publications by FelixS

Wilcox’s Robust Statistics: A new R package

12.04.2011

Recently I started to build a new package for R containing Wilcox’ collection of functions for robust statistics. Wilcox provides 700+ functions for robust statistics, including: robust correlations (e.g. percentage bend correlation) robust measures of location and mean differences (e.g. Yuen’s test, trimmed mean test with bootstrapping) boo...

1216 sym

Weighted t-Test in R

12.04.2012

Although there is a weighted.mean function in R, so far I couldn’t find a implementation of weighted.var and weighted.t.test – here they are (the weighted variance is from Gavin Simpson, found on the R malining list): ?View Code RSPLUS# weighted variance, inspired by a function from Gavin Simpson on R-Help var.wt <- function(x, w, na.rm = FAL...

632 sym R (1755 sym/1 pcs) 1 tbl

Comparing all quantiles of two distributions simultaneously

13.04.2012

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 subjective estimate). In some cases, however, it would be sensible to comp...

3563 sym R (1320 sym/3 pcs) 4 img 1 tbl

Shading regions of the normal: The Stanine scale

26.06.2012

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 standard dev...

1371 sym R (1469 sym/4 pcs) 8 img 4 tbl

Validating email adresses in R

05.07.2012

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 vali...

1105 sym R (491 sym/2 pcs) 2 tbl

Visually weighted regression in R (à la Solomon Hsiang)

30.08.2012

[Update 1: Sep 5, 2012: Explore the Magical Data Enhancer by IRES, using this visualization technique] [Update 2: Sep 6, 2012: See new improved plots, and new R code! Solomon Hsiang proposed an appealing method for visually displaying the uncertainty in regressions (see his blog [1][2], and also the discussions on the Statistical Modeling, Causal...

2689 sym R (394 sym/2 pcs) 18 img 2 tbl

Amazing fMRI plots for everybody!

05.09.2012

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 unsu...

4103 sym 6 img

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

06.09.2012

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 with increa...

3759 sym R (8501 sym/1 pcs) 22 img 1 tbl

How to check your package with R-devel

12.09.2012

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 (might be slightly different on Win or Linux):   Inst...

1773 sym

Parse pdf files with R (on a Mac)

04.10.2012

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 pdftotext (a binary can b...

962 sym R (2717 sym/2 pcs) 1 tbl