Monthly Archives: February 2011

R Tutorial Series: Two-Way ANOVA with Interactions and Simple Main Effects

February 7, 2011
By
R Tutorial Series: Two-Way ANOVA with Interactions and Simple Main Effects

When an interaction is present in a two-way ANOVA, we typically choose to ignore the main effects and elect to investigate the simple main effects when making pairwise comparisons. This tutorial will demonstrate how to conduct pairwise comparisons when...

Read more »

R Tutorial Series: Two-Way ANOVA with Interactions and Simple Main Effects

February 7, 2011
By
R Tutorial Series: Two-Way ANOVA with Interactions and Simple Main Effects

When an interaction is present in a two-way ANOVA, we typically choose to ignore the main effects and elect to investigate the simple main effects when making pairwise comparisons. This tutorial will demonstrate how to conduct pairwise comparisons when...

Read more »

R: Functions and environments and a debugging utility, oh my!

February 7, 2011
By

The Mark Fredrickson blog has a superb post on R functions and environments that's well worth checking out.He also includes a handy function for debugging:> fnpeek + env + if (is.null(name)) {+ return(ls(envir = env))+ }+ ...

Read more »

Reproducing the BMA exercise of Fernández, Ley and Steel (2001) in R

February 7, 2011
By
Reproducing the BMA exercise of Fernández, Ley and Steel (2001) in R

In their paper Model uncertainty in cross-country growth regressions (Journal of Applied Econometrics 2001), Fernández, Ley and Steel (FLS) demonstrate the use of Bayesian Model Averaging (BMA) for a cross-section economic growth data set. This tutor...

Read more »

Open data might be a false good opportunity…

February 7, 2011
By
Open data might be a false good opportunity…

I am always surprised to see many people on Twitter tweeting about #opendata, e.g. @data4all, @usdatagov, @datapublicatwit, @ProPublica or @open3 among so many others... Initially, I was also very enthousiastic, but I have to admit that open data a...

Read more »

Simple example:How to use foreach and doSNOW packages for parallel computation.

February 6, 2011
By

update************************************************************************************************I checked whether this example was run collectly or not in Windows XP(32bit) only ! ************************************************************************************************In R language, the members at Revolution R provide foreach and doSNOW packages for parallel computation. these packages allow us to compute things in parallel. So, we start to install these packages.install.packages("foreach")install.packages("doSNOW")Created by Pretty R at inside-R.orgIn...

Read more »

Simple example:How to use foreach and doSNOW packages for parallel computation.

February 6, 2011
By

update************************************************************************************************I checked whether this example was run collectly or not in Windows XP(32bit) only !  ************************************************************************************************In R language, the members at Revolution R provide foreach and doSNOW packages for parallel computation. these packages allow us to compute things in parallel. So, we start to install these packages.install.packages("foreach")install.packages("doSNOW")Created by Pretty R at inside-R.orgIn...

Read more »

Rhythms of Equality and Inequality

February 6, 2011
By
Rhythms of Equality and Inequality

Today I unveil my very first statistical YouTube video! I will do anything to keep you statisfied, and if that means YouTube, then so be it. But first, some exposition: In Panama, 10 percent of the population owned 45 percent of the income in 2000, whereas the bottom 10 percent owned only 0.6 percent. How

Read more »

Latent Gaussian Models im Zürich [day 2]

February 6, 2011
By
Latent Gaussian Models im Zürich [day 2]

The second day at the Latent Gaussian Models workshop in Zürich was equally interesting. Among the morning talks, let me mention Daniel Bové who gave a talk connected with the hyper-g prior paper he wrote with Leo Held (commented in an earlier post) and the duo of Janine Illian and Daniel Simpson who gave enthusiastic

Read more »

Boxplots and Beyond – Part II: Asymmetry

Boxplots and Beyond – Part II: Asymmetry

In my last post, I discussed boxplots in their simplest forms, illustrating some of the useful options available with the boxplot command in the open-source statistical software package R.  As I noted in that post, the basic boxplot is both useful...

Read more »