20 ene 2013

Looking to boxplots (Shootout 2012)

Boxplots are a nice way to compare the three sample sets of the Shoot-out 2012 data files.
There is a category variable (Set) in the data frame with the labels (Cal = Training Set, Test = Test Set and Val = Validation Set).

# IMPORTING THE SAMPLE SETS #
shootout2012.raw<-read.csv("Shootout2012_R.csv",header=TRUE)
# ORGANIZING THE DATA-FRAME #
NIT<-shootout2012.raw[,4:375]
Active<-shootout2012.raw[,3]
Set<-shootout2012.raw[,2]

shootout2012<-data.frame(Set=I(Set),Active=I(Active),
+ NIT=I(NIT))

names(shootout2012)   
#  "Set"    "Active" "NIT"                 
attach(shootout2012)
boxplot(Active ~ Set,main="Shootout 2012",xlab="Sample Sets",
+ col="grey")
 


aggregate(Active ~ Set, summary, data=shootout2012)
 Set     Active.Min.   Active.1st Qu.  Active.Median  Active.Mean
1  Cal       4.740          6.680         8.390         7.550
2 Test       5.120          7.050         7.950         7.386
3  Val       4.610          7.240         8.000         7.520
     Active.3rd Qu. Active.Max.
1          8.750       9.790
2          8.142       8.480
3          8.135       8.580


Previous posts in this blog about the Shoot-out 2012 data.
See also Label "Shootout 2012)"

Sample Sets" plots (Shootout-2012)
Shootout 2012: Test & Val Sets proyections
Working with Shootout - 2012 in R (001)
Shootout 2012 files

1 comentario: