Monthly Archives: October 2010

Example 8.8: more Hosmer and Lemeshow

October 5, 2010
By
Example 8.8: more Hosmer and Lemeshow

This is a special R-only entry.In Example 8.7, we showed the Hosmer and Lemeshow goodness-of-fit test. Today we demonstrate more advanced computational approaches for the test.If you write a function for your own use, it hardly matters what it looks l...

Read more »

India Australia test cricket matches over the years

October 5, 2010
By
India Australia test cricket matches over the years

If you're like me - chewing your nails, sitting in the same position for the last 2 hours to watch India battle Australia in the Mohali test match and enjoying the fascinating duel, watch how closely these two teams have fought in the past. This plot s...

Read more »

India Australia test cricket matches over the years

October 5, 2010
By
India Australia test cricket matches over the years

If you're like me - chewing your nails, sitting in the same position for the last 2 hours to watch India battle Australia in the Mohali test match and enjoying the fascinating duel, watch how closely these two teams have fought in the past. This plot s...

Read more »

Why R is better than Excel for teaching statistics

October 4, 2010
By
Why R is better than Excel for teaching statistics

This was the topic of a recent conversation on the Australian and New Zealand R mailing list. Here is an edited list of some of the comments made. R is free. R is well-documented. R runs (really well) on *nix as well as Windows and Mac OS. R is open-source. Trust in the R software

Read more »

S4 classes in R: printing function definition and getting help

October 4, 2010
By

I’m not very familiar with S4 classes and methods, but I assume it’s the recommended way to write new packages since it is newer than S3; this of course is open to debate. I’ll outline my experience of programming with S4 classes and methods in a later post, but in the mean time, I want... Read more »

Use R to Analyze Players for your Fantasy Hockey League

October 4, 2010
By
Use R to Analyze Players for your Fantasy Hockey League

I am in a fantasy hockey league for the first time this seasons and I wanted to use R to analyze players.  Since I am relatively new to R, I am quite certain this code could be improved.  The code below is functional, however, and while this isn’t my complete analysis, I think it outlines

Read more »

Max Heart Rate Calculations Compared

October 4, 2010
By
Max Heart Rate Calculations Compared

Physical fitness has become increasingly technical and data driven.  I started running a bit in the last few months and have been delving into the prevailing wisdom related to assessing ones health as a baseline for pursuing various fitness goals....

Read more »

Max Heart Rate Calculations Compared

October 4, 2010
By
Max Heart Rate Calculations Compared

Physical fitness has become increasingly technical and data driven.  I started running a bit in the last few months and have been delving into the prevailing wisdom related to assessing ones health as a baseline for pursuing various fitness goals....

Read more »

Means By

October 4, 2010
By

The other day I was asked by a coworker hos to do a SAS Means By statement in R. I embarrassingly did not know how to so I wrote something up, and this is what I came up with, it takes a data.frame and an indexing variable and computes the means for each group defined

Read more »

Code Snippets in Revolution R

October 4, 2010
By

Ajay Ohri has been trying out the Code Snippets feature in Revolution R (available free to academics), and has found it handy for writing code for statistical analysis: Now even if you are averse to using a GUI /or GUI creators don’t have your particular analysis you can basically type in code at an extremely fast pace. It is...

Read more »