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) > par20 = '' > par19 = '' > par18 = '' > par17 = '' > par16 = '' > par15 = '' > par14 = '' > par13 = '' > par12 = '' > par11 = '' > par10 = '' > par9 = '' > par8 = '' > par7 = '' > par6 = '' > par5 = '' > par4 = '' > par3 = '' > par2 = '8' > par1 = '12' > ylab = '' > xlab = '' > main = '' > #'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)) > darr <- array(NA,dim=c(par1,np+1)) > ari <- array(0,dim=par1) > dx <- diff(x) > j <- 0 > for (i in 1:n) + { + j = j + 1 + ari[j] = ari[j] + 1 + arr[j,ari[j]] <- x[i] + darr[j,ari[j]] <- dx[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 > darr [,1] [,2] [,3] [,4] [,5] [,6] [1,] -3560 -4114 -13794 -4020 -1871 NA [2,] -6355 -6709 -8680 -7221 1165 NA [3,] 1228 1179 -3965 3683 9502 NA [4,] -787 -2466 3173 1436 8554 NA [5,] -25 218 -4858 -3502 4028 NA [6,] -2066 -3572 -8978 -7959 4699 NA [7,] -4887 -1620 -1845 5 917 NA [8,] -3010 -864 -7296 -11531 -6533 NA [9,] -2147 -3041 -10685 1285 4563 NA [10,] 22266 18491 23184 21095 20717 NA [11,] 3927 924 2437 399 3171 NA [12,] 1114 1574 -6330 -1364 NA NA > arr.mean <- array(NA,dim=par1) > arr.median <- array(NA,dim=par1) > arr.midrange <- array(NA,dim=par1) > for (j in 1:par1) + { + arr.mean[j] <- mean(arr[j,],na.rm=TRUE) + arr.median[j] <- median(arr[j,],na.rm=TRUE) + arr.midrange[j] <- (quantile(arr[j,],0.75,na.rm=TRUE) + quantile(arr[j,],0.25,na.rm=TRUE)) / 2 + } > overall.mean <- mean(x) > overall.median <- median(x) > overall.midrange <- (quantile(x,0.75) + quantile(x,0.25)) / 2 > postscript(file="/var/www/html/rcomp/tmp/1zog51290785993.ps",horizontal=F,pagecentre=F,paper="special",width=8.3333333333333,height=5.5555555555556) > plot(arr.mean,type='b',ylab='mean',main='Mean Plot',xlab='Periodic Index') > mtext(paste('#blocks = ',np)) > abline(overall.mean,0) > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/2aff81290785993.ps",horizontal=F,pagecentre=F,paper="special",width=8.3333333333333,height=5.5555555555556) > plot(arr.median,type='b',ylab='median',main='Median Plot',xlab='Periodic Index') > mtext(paste('#blocks = ',np)) > abline(overall.median,0) > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/3aff81290785993.ps",horizontal=F,pagecentre=F,paper="special",width=8.3333333333333,height=5.5555555555556) > plot(arr.midrange,type='b',ylab='midrange',main='Midrange Plot',xlab='Periodic Index') > mtext(paste('#blocks = ',np)) > abline(overall.midrange,0) > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/4aff81290785993.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/5k6et1290785993.ps",horizontal=F,pagecentre=F,paper="special",width=8.3333333333333,height=5.5555555555556) > z <- data.frame(t(darr)) > names(z) <- c(1:par1) > (boxplot(z,notch=TRUE,col='grey',xlab='Periodic Index',ylab='Value',main='Notched Box Plots - Differenced Periodic Subseries')) $stats [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [,10] [,11] [,12] [1,] -4114 -7221 1179 -2466 -4858 -8978 -1845 -11531 -3041 18491 399 -6330 [2,] -4114 -7221 1179 -787 -3502 -7959 -1845 -7296 -3041 20717 924 -3847 [3,] -4020 -6709 1228 1436 -25 -3572 -1620 -6533 -2147 21095 2437 -125 [4,] -3560 -6355 3683 3173 218 -2066 5 -3010 1285 22266 3171 1344 [5,] -3560 -6355 3683 8554 4028 4699 917 -864 4563 23184 3927 1574 $n [1] 5 5 5 5 5 5 5 5 5 5 5 4 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] -4411.455 -7320.913 -541.3201 -1362.126 -2653.543 -7735.979 -2927.2053 [2,] -3628.545 -6097.087 2997.3201 4234.126 2603.543 591.979 -312.7947 [,8] [,9] [,10] [,11] [,12] [1,] -9561.477 -5203.7407 20000.48 849.2755 -4225.89 [2,] -3504.523 909.7407 22189.52 4024.7245 3975.89 $out [1] -13794 -1871 -8680 1165 -3965 9502 -4887 -10685 $group [1] 1 1 2 2 3 3 7 9 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(-4114, -4114, -4020, -3560, -3560, -7221, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/6k6et1290785993.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/7dyww1290785993.ps",horizontal=F,pagecentre=F,paper="special",width=8.3333333333333,height=5.5555555555556) > z <- data.frame(cbind(arr.mean,arr.median,arr.midrange)) > names(z) <- list('mean','median','midrange') > (boxplot(z,notch=TRUE,col='grey',ylab='Overall Central Tendency',main='Notched Box Plots')) $stats [,1] [,2] [,3] [1,] 254101.6 264993.0 253341.5 [2,] 262696.4 267743.5 262566.5 [3,] 266437.5 269988.0 266841.2 [4,] 271830.9 282554.0 272102.5 [5,] 277423.8 290726.0 276089.5 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 262271.2 263232.8 262491.8 [2,] 270603.8 276743.2 271190.7 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(254101.6, 262696.4, 266437.5, 271830.9, 277423.8, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > try(system("convert tmp/1zog51290785993.ps tmp/1zog51290785993.png",intern=TRUE)) character(0) > try(system("convert tmp/2aff81290785993.ps tmp/2aff81290785993.png",intern=TRUE)) character(0) > try(system("convert tmp/3aff81290785993.ps tmp/3aff81290785993.png",intern=TRUE)) character(0) > try(system("convert tmp/4aff81290785993.ps tmp/4aff81290785993.png",intern=TRUE)) character(0) > try(system("convert tmp/5k6et1290785993.ps tmp/5k6et1290785993.png",intern=TRUE)) character(0) > try(system("convert tmp/6k6et1290785993.ps tmp/6k6et1290785993.png",intern=TRUE)) character(0) > try(system("convert tmp/7dyww1290785993.ps tmp/7dyww1290785993.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 1.197 0.948 2.930