Monthly Archives: December 2012

Tips for R Package Creation

December 30, 2012
By
Tips for R Package Creation

I’m being tortured by the mistakes of my past self. I think I’ve made most every mistake possible in creating a package and I want to go back in time and tell year ago me all I know now. But … Continue reading →

Read more »

2012 in review by The WordPress.com

December 30, 2012
By
2012 in review by The WordPress.com

Here is a 2012 annual report for this blog produced by The WordPress.com. My top post this year based on number of views are R-Uni (A List of Free R Tutorials and Resources in Universities webpages) 29 COMMENTS February 2012 R Style Guide 7 COMMENTS June 2012 Click here to see the complete report. Filed under: R

Read more »

Pearson’s r: Not a good measure of electoral persistence

December 30, 2012
By
Pearson’s r: Not a good measure of electoral persistence

Pearson’s product-moment correlation, \(r\), is an incredibly useful tool for getting some idea about how two variables are (linearly) related. But there are times when using Pearson’s \(r\) is not appropriate and, even if linearity and all other assumptions hold, … Continue reading →

Read more »

Misusage of the new shiny package: A nerdy drink tracker for your next party

December 30, 2012
By
Misusage of the new shiny package: A nerdy drink tracker for your next party

Currently a lot of people are talking about the new shiny package. So I got curious and built an own, more or less useful app: A drink trackerThis app can be used to track how much someone drank and therefore it is very useful for every party, especial...

Read more »

RcppClassicExamples 0.1.1

December 30, 2012
By

Yesterday's initial upload of RcppClassicExamples was lacking a versioned Depends: to prevent builds on older versions of R. This has been added in a new upload 0.1.1. We also added a NEWS file (see below); no code changes were made. Changes in ver...

Read more »

Searching for Structure underlying Customer Satisfaction Ratings: Item Response Theory through the Back Door

December 30, 2012
By
Searching for Structure underlying Customer Satisfaction Ratings: Item Response Theory through the Back Door

Variations on a Theme of Negative Skew and Positive ManifoldNo one familiar with research on customer satisfaction expects to find uncorrelated ratings or symmetric distributions centered toward the middle of the rating scale.  There are forces at work that structure the means and correlations among the items from a customer satisfaction questionnaire.  On the one hand, unsatisfied customers churn,...

Read more »

National idenftification number: Finland

December 30, 2012
By

The Finnish Social Security number (FSSn) is a common variable in a Finnish population based study. Within FSSn are individuals birthday, and gender. We can also check if the FSSn correct because it has a check digit. If the data doesn't have birthday ...

Read more »

STL random_shuffle for permutations

December 30, 2012
By

The STL also contains random sampling and shuffling algorithms. We start by looking at random_shuffle. There are two forms. The first uses an internal RNG with its own seed; the second form allows for a function object conformant to the STL’s re...

Read more »

Update to Graphing Non-Proportional Hazards in R

December 30, 2012
By
Update to Graphing Non-Proportional Hazards in R

Update 1 February 2013: I've moved all of the functionality described in this post into an R package called simtvc. Have a look. It is much easier to use. This is a quick update for a previous post on Graphing Non-Proportional Hazards in R. In the previous post I showed how to simulate and graph 1,000...

Read more »

Spirograph with R

December 30, 2012
By
Spirograph with R

Just had to figure out how to replicate this old toy of mine with R! I had no idea how long it's been around:Read more »

Read more »