R version 2.9.0 (2009-04-17) Copyright (C) 2009 The R Foundation for Statistical Computing ISBN 3-900051-07-0 R is free software and comes with ABSOLUTELY NO WARRANTY. You are welcome to redistribute it under certain conditions. Type 'license()' or 'licence()' for distribution details. R is a collaborative project with many contributors. Type 'contributors()' for more information and 'citation()' on how to cite R or R packages in publications. Type 'demo()' for some demos, 'help()' for on-line help, or 'help.start()' for an HTML browser interface to help. Type 'q()' to quit R. > x <- c(286602,283042,276687,277915,277128,277103,275037,270150,267140,264993,287259,291186,292300,288186,281477,282656,280190,280408,276836,275216,274352,271311,289802,290726,292300,278506,269826,265861,269034,264176,255198,253353,246057,235372,258556,260993,254663,250643,243422,247105,248541,245039,237080,237085,225554,226839,247934,248333,246969,245098,246263,255765,264319,268347,273046,273963,267430,271993,292710,295881) > par1 = '12' > #'GNU S' R Code compiled by R2WASP v. 1.0.44 () > #Author: Prof. Dr. P. Wessa > #To cite this work: AUTHOR(S), (YEAR), YOUR SOFTWARE TITLE (vNUMBER) in Free Statistics Software (v$_version), Office for Research Development and Education, URL http://www.wessa.net/rwasp_YOURPAGE.wasp/ > #Source of accompanying publication: Office for Research, Development, and Education > #Technical description: Write here your technical program description (don't use hard returns!) > par1 <- as.numeric(par1) > (n <- length(x)) [1] 60 > (np <- floor(n / par1)) [1] 5 > arr <- array(NA,dim=c(par1,np+1)) > ari <- array(0,dim=par1) > j <- 0 > for (i in 1:n) + { + j = j + 1 + ari[j] = ari[j] + 1 + arr[j,ari[j]] <- x[i] + if (j == par1) j = 0 + } > ari [1] 5 5 5 5 5 5 5 5 5 5 5 5 > arr [,1] [,2] [,3] [,4] [,5] [,6] [1,] 286602 292300 292300 254663 246969 NA [2,] 283042 288186 278506 250643 245098 NA [3,] 276687 281477 269826 243422 246263 NA [4,] 277915 282656 265861 247105 255765 NA [5,] 277128 280190 269034 248541 264319 NA [6,] 277103 280408 264176 245039 268347 NA [7,] 275037 276836 255198 237080 273046 NA [8,] 270150 275216 253353 237085 273963 NA [9,] 267140 274352 246057 225554 267430 NA [10,] 264993 271311 235372 226839 271993 NA [11,] 287259 289802 258556 247934 292710 NA [12,] 291186 290726 260993 248333 295881 NA > arr.sd <- array(NA,dim=par1) > arr.range <- array(NA,dim=par1) > arr.iqr <- array(NA,dim=par1) > for (j in 1:par1) + { + arr.sd[j] <- sqrt(var(arr[j,],na.rm=TRUE)) + arr.range[j] <- max(arr[j,],na.rm=TRUE) - min(arr[j,],na.rm=TRUE) + arr.iqr[j] <- quantile(arr[j,],0.75,na.rm=TRUE) - quantile(arr[j,],0.25,na.rm=TRUE) + } > overall.sd <- sqrt(var(x)) > overall.range <- max(x) - min(x) > overall.iqr <- quantile(x,0.75) - quantile(x,0.25) > postscript(file="/var/www/html/rcomp/tmp/1hmga1258585067.ps",horizontal=F,pagecentre=F,paper="special",width=8.3333333333333,height=5.5555555555556) > plot(arr.sd,type='b',ylab='S.D.',main='Standard Deviation Plot',xlab='Periodic Index') > mtext(paste('# blocks = ',np)) > abline(overall.sd,0) > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/256pg1258585067.ps",horizontal=F,pagecentre=F,paper="special",width=8.3333333333333,height=5.5555555555556) > plot(arr.range,type='b',ylab='range',main='Range Plot',xlab='Periodic Index') > mtext(paste('# blocks = ',np)) > abline(overall.range,0) > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/32o421258585067.ps",horizontal=F,pagecentre=F,paper="special",width=8.3333333333333,height=5.5555555555556) > plot(arr.iqr,type='b',ylab='IQR',main='Interquartile Range Plot',xlab='Periodic Index') > mtext(paste('# blocks = ',np)) > abline(overall.iqr,0) > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/49ysa1258585067.ps",horizontal=F,pagecentre=F,paper="special",width=8.3333333333333,height=5.5555555555556) > z <- data.frame(t(arr)) > names(z) <- c(1:par1) > (boxplot(z,notch=TRUE,col='grey',xlab='Periodic Index',ylab='Value',main='Notched Box Plots - Periodic Subseries')) $stats [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [,10] [1,] 246969 245098 243422 247105 248541 245039 237080 237085 225554 226839 [2,] 254663 250643 246263 255765 264319 264176 255198 253353 246057 235372 [3,] 286602 278506 269826 265861 269034 268347 273046 270150 267140 264993 [4,] 292300 283042 276687 277915 277128 277103 275037 273963 267430 271311 [5,] 292300 288186 281477 282656 280190 280408 276836 275216 274352 271993 [,11] [,12] [1,] 247934 248333 [2,] 258556 260993 [3,] 287259 290726 [4,] 289802 291186 [5,] 292710 295881 $n [1] 5 5 5 5 5 5 5 5 5 5 5 5 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 260007.8 255612.9 248328.5 250209.9 259983.2 259212.8 259027.8 255587.0 [2,] 313196.2 301399.1 291323.5 281512.1 278084.8 277481.2 287064.2 284713.0 [,9] [,10] [,11] [,12] [1,] 252037.9 239598.6 265180.7 269391.7 [2,] 282242.1 290387.4 309337.3 312060.3 $out numeric(0) $group numeric(0) $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(246969, 254663, 286602, 292300, 292300, 245098, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/5z3361258585067.ps",horizontal=F,pagecentre=F,paper="special",width=8.3333333333333,height=5.5555555555556) > z <- data.frame(arr) > names(z) <- c(1:np) > (boxplot(z,notch=TRUE,col='grey',xlab='Block Index',ylab='Value',main='Notched Box Plots - Sequential Blocks')) $stats [,1] [,2] [,3] [,4] [,5] [,6] [1,] 264993.0 271311.0 235372.0 225554.0 245098.0 NA [2,] 272593.5 276026.0 254275.5 237082.5 251367.0 NA [3,] 277115.5 280942.5 262584.5 246072.0 267888.5 NA [4,] 284822.0 288994.0 269430.0 248437.0 273504.5 NA [5,] 291186.0 292300.0 278506.0 254663.0 295881.0 NA $n [1] 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [1,] 271538 275027.7 255672.4 240893.1 257791.4 NA [2,] 282693 286857.3 269496.6 251250.9 277985.6 NA $out [1] 292300 $group [1] 3 $names [1] "1" "2" "3" "4" "5" NA Warning message: In bxp(list(stats = c(264993, 272593.5, 277115.5, 284822, 291186, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/6mant1258585067.ps",horizontal=F,pagecentre=F,paper="special",width=8.3333333333333,height=5.5555555555556) > z <- data.frame(cbind(arr.sd,arr.range,arr.iqr)) > names(z) <- list('S.D.','Range','IQR') > (boxplot(z,notch=TRUE,col='grey',ylab='Overall Variability',main='Notched Box Plots')) $stats [,1] [,2] [,3] [1,] 12500.64 31649.0 12809.0 [2,] 15635.54 36803.0 20224.5 [3,] 18680.39 41422.0 26171.5 [4,] 20939.18 45242.5 31822.5 [5,] 21974.86 48798.0 37637.0 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 16261.36 37572.69 20881.57 [2,] 21099.42 45271.31 31461.43 $out numeric(0) $group numeric(0) $names [1] "S.D." "Range" "IQR" Warning message: In bxp(list(stats = c(12500.6389156715, 15635.5364930417, 18680.3910189203, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/1hmga1258585067.ps tmp/1hmga1258585067.png") > system("convert tmp/256pg1258585067.ps tmp/256pg1258585067.png") > system("convert tmp/32o421258585067.ps tmp/32o421258585067.png") > system("convert tmp/49ysa1258585067.ps tmp/49ysa1258585067.png") > system("convert tmp/5z3361258585067.ps tmp/5z3361258585067.png") > system("convert tmp/6mant1258585067.ps tmp/6mant1258585067.png") > > > proc.time() user system elapsed 1.037 0.796 1.291