Posts Tagged ‘ r-project ’

Marking Your Graphics

June 2, 2010
By
Marking Your Graphics

Over at The Book Blog, Tango has a post about standardizing Pitch F/X graphs to be catcher/batter/umpire view. While I don't think this should necessarily be the case for all Pitch F/X graphics, it brings up another issue that I've had with some graph...

Read more »

Trading for Speed in H2H Fantasy Leagues

June 1, 2010
By
Trading for Speed in H2H Fantasy Leagues

As a followup to my last article at FBJ, I took a look at the distributions of weekly totals for Stolen Bases to gauge win expectancies in the SB category in H2H fantasy baseball formats. The study is again pretty simple, as I just subtract one hypoth...

Read more »

Testing Out my Pitch F/X Data

May 25, 2010
By
Testing Out my Pitch F/X Data

I recently got all the Pitch F/X data downloaded from Gameday, and have been fiddling around. I certainly don't have the physics knowledge to really talk about the movement at this point, and I'm still acquainting myself with the data format and what e...

Read more »

Fun with R: Clustering and MDS

May 5, 2010
By
Fun with R: Clustering and MDS

I've seen K-means clustering, PCA, etc. done some over at Beyond the Boxscore and Baseball Analysts (and the now defunct Statspeak), but I thought I'd just check out some clustering on the young fantasy season using the traditional 5x5 categories with ...

Read more »

Modifying basic plots in R

May 4, 2010
By

Below is a walk-through of some of the basics of customizing plot in R. These are all based on the graphics package that comes in the base installation of R. Let’s start by making a basic plot in R. In the code snippets below, green text behind a...

Read more »

Eclipse and StatET – a working environment for R

April 28, 2010
By

How to use Eclipse and StatET to create a handy-dandy development environment for R. Using the Eclipse environment provides a nice colored-syntax script editor, an R console, and an object browser to let you peruse the variables you've put into memory....

Read more »

Weighting model fit with ctree in party

March 15, 2010
By
Weighting model fit with ctree in party

Conditional inference trees (ctree) in package party allows weighting which is useful when one classification outcome is more important than another. Useful examples are not difficult to imagine: in a marketing direct mailing, a false positive (non-res...

Read more »

Calculating LT50 (median lethal temperature, aka LD50) quickly in R

February 27, 2010
By

Say you’ve got a bunch of survival/mortality data from an experiment. Maybe you exposed batches of snails to various high temperatures for a few hours, and recorded the number alive and dead in each batch at the end. Now you’d like to repor...

Read more »

Does a Proclamation of Increased Workout Load Matter?

February 20, 2010
By
Does a Proclamation of Increased Workout Load Matter?

I forgot to link this up, but I have a new article (joint with our editor) over at Fantasy Ball Junkie. I run an extremely crude model to see if players who were mentioned in the media as having lost weight, gained muscle, gained speed, got eye surgery...

Read more »

R Tutorial Series: Regression With Interaction Variables

January 23, 2010
By
R Tutorial Series: Regression With Interaction Variables

Interaction variables introduce an additional level of regression analysis by allowing researchers to explore the synergistic effects of combined predictors. This tutorial will explore how interaction models can be created in R.Tutorial Files Before we...

Read more »