Monthly Archives: January 2011

Trends in partisanship by state

January 24, 2011
By

Matthew Yglesias discusses how West Virginia used to be a Democratic state but is now solidly Republican. I thought it would be helpful to expand this to look at trends since 1948 (rather than just 1988) and all 50 states...

Read more »

Merge Me Baby One More Time!

January 24, 2011
By

OK – has this ever happened to you? You are working with a team of collaborators all using a common dataset – maybe from an Agency, and LTER, or someone else’s data altogether. Each of you has some task – incorporating new data, running fancy models and putting the results back into the data for

Read more »

Example 8.22: latent class modeling using randomLCA

January 24, 2011
By
Example 8.22: latent class modeling using randomLCA

In Example 8.21 we described how to fit a latent class model to data from the HELP dataset using SAS and R. Subjects were classified based on their observed (manifest) status on the following variables (on street or in shelter in past 180 days [homele...

Read more »

Pattern Matching for Transcription Factor Binding Sites

January 24, 2011
By

I'm trying to search for binding sites for the transcription factor MAF (i.e. TFBS for MAF) in the promoter regions of various genes. I initially started out looking at a precomputed database of binding sites MAPPER. However the TFBS models that have ...

Read more »

R Tutorial Series: One-Way ANOVA with Pairwise Comparisons

January 24, 2011
By
R Tutorial Series: One-Way ANOVA with Pairwise Comparisons

When we have more than two groups in a one-way ANOVA, we typically want to statistically assess the differences between each group. Whereas a one-way omnibus ANOVA assesses whether a significant difference exists at all amongst the groups, pairwise com...

Read more »

R Tutorial Series: One-Way ANOVA with Pairwise Comparisons

January 24, 2011
By
R Tutorial Series: One-Way ANOVA with Pairwise Comparisons

When we have more than two groups in a one-way ANOVA, we typically want to statistically assess the differences between each group. Whereas a one-way omnibus ANOVA assesses whether a significant difference exists at all amongst the groups, pairwise com...

Read more »

Hello world!

January 24, 2011
By
Hello world!

I suppose that “Hello World” is the first thing that any blogger should do when starts a blog. So here I go “HELLO WORLD!!!” The aim of this blog is to gather my thoughts and experience around learning R and hopefully to get a lot of insights from my readers. Officially this is my third attempt

Read more »

Paying interest and the number e

January 24, 2011
By
Paying interest and the number e

Suppose I borrow a dollar from you and I’ll pay you 100% interest at the end of the year.  How much money will you have then? $1 * (1 + 1) = $2 What happens if instead the interest is calculated as  50% twice in the year? $1 * (1.5 * 1.5) = $2.25 After … Continue reading...

Read more »

Using RClimate To Retrieve Climate Series Data

January 23, 2011
By
Using RClimate To Retrieve Climate Series Data

This post shows how to use RClimate.txt to retrieve a climate time series and write a csv file in 5 lines of R script. One of my readers, Robert, wants to be able to download climate time series data and … Continue reading →

Read more »

Using R for Introductory Statistics, Chapter 5

January 23, 2011
By
Using R for Introductory Statistics, Chapter 5

Any good stats book has to cover a bit of basic probability. That's the purpose of Chapter 5 of Using R for Introductory Statistics, starting with a few definitions: Random variable A random number drawn from a population. A random variable is a variable for which we define a range of possible values and...

Read more »