R version 2.13.0 (2011-04-13) Copyright (C) 2011 The R Foundation for Statistical Computing ISBN 3-900051-07-0 Platform: i486-pc-linux-gnu (32-bit) 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(1070,1240,1200,1280,1180,1190,1190,1230,1170,1190,1190,1400,1130,1260,1260,1260,1130,1220,1180,1280,1140,1160,1170,1410,1100,1280,1330,1260,1070,1260,1270,1410,1160,1130,1160,1300,1080,1380,1260,1250,990,1180,1240,1500,1150,1110,1080,1270,1050,1490,1280,1230,960,1100,1270,1530,1290,1120,1100,1310,1020,1510,1260,1160,970,1020,1210,1530,1350,1070,1140,1250,930,1510,1230,1180,960,960,1240,1640,1350,1100,1120,1290,890,1560,1250,1170,900,860,1310,1610,1440,1130,1220,1400,930,1490,1250,1160,910,880,1300,1550,1460,1120,1270,1410) > 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] 108 > (np <- floor(n / par1)) [1] 9 > 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] 9 9 9 9 9 9 9 9 9 9 9 9 > arr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [,10] [1,] 1070 1130 1100 1080 1050 1020 930 890 930 NA [2,] 1240 1260 1280 1380 1490 1510 1510 1560 1490 NA [3,] 1200 1260 1330 1260 1280 1260 1230 1250 1250 NA [4,] 1280 1260 1260 1250 1230 1160 1180 1170 1160 NA [5,] 1180 1130 1070 990 960 970 960 900 910 NA [6,] 1190 1220 1260 1180 1100 1020 960 860 880 NA [7,] 1190 1180 1270 1240 1270 1210 1240 1310 1300 NA [8,] 1230 1280 1410 1500 1530 1530 1640 1610 1550 NA [9,] 1170 1140 1160 1150 1290 1350 1350 1440 1460 NA [10,] 1190 1160 1130 1110 1120 1070 1100 1130 1120 NA [11,] 1190 1170 1160 1080 1100 1140 1120 1220 1270 NA [12,] 1400 1410 1300 1270 1310 1250 1290 1400 1410 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [,10] [1,] 170 130 180 300 440 490 580 670 560 NA [2,] -40 0 50 -120 -210 -250 -280 -310 -240 NA [3,] 80 0 -70 -10 -50 -100 -50 -80 -90 NA [4,] -100 -130 -190 -260 -270 -190 -220 -270 -250 NA [5,] 10 90 190 190 140 50 0 -40 -30 NA [6,] 0 -40 10 60 170 190 280 450 420 NA [7,] 40 100 140 260 260 320 400 300 250 NA [8,] -60 -140 -250 -350 -240 -180 -290 -170 -90 NA [9,] 20 20 -30 -40 -170 -280 -250 -310 -340 NA [10,] 0 10 30 -30 -20 70 20 90 150 NA [11,] 210 240 140 190 210 110 170 180 140 NA [12,] -270 -310 -220 -220 -290 -320 -400 -470 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/wessaorg/rcomp/tmp/1he4j1311075026.ps",horizontal=F,onefile=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/wessaorg/rcomp/tmp/2mifx1311075026.ps",horizontal=F,onefile=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/wessaorg/rcomp/tmp/3pthu1311075026.ps",horizontal=F,onefile=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/wessaorg/rcomp/tmp/4o43r1311075026.ps",horizontal=F,onefile=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] [,11] [,12] [1,] 890 1240 1250 1160 900 860 1180 1230 1140 1100 1080 1250 [2,] 930 1280 1250 1170 960 960 1210 1410 1160 1110 1120 1290 [3,] 1050 1490 1260 1230 970 1100 1240 1530 1290 1120 1160 1310 [4,] 1080 1510 1260 1260 1070 1190 1270 1550 1350 1130 1190 1400 [5,] 1130 1560 1260 1280 1180 1260 1310 1640 1460 1160 1270 1410 $n [1] 9 9 9 9 9 9 9 9 9 9 9 9 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [1,] 971 1368.867 1254.733 1182.6 912.0667 978.8667 1208.4 1456.267 1189.933 [2,] 1129 1611.133 1265.267 1277.4 1027.9333 1221.1333 1271.6 1603.733 1390.067 [,10] [,11] [,12] [1,] 1109.467 1123.133 1252.067 [2,] 1130.533 1196.867 1367.933 $out [1] 1200 1330 1280 1230 1190 1070 $group [1] 3 3 3 3 10 10 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(890, 930, 1050, 1080, 1130, 1240, 1280, 1490, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/wessaorg/rcomp/tmp/5r4ht1311075026.ps",horizontal=F,onefile=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,] 130 -310 -100 -270 -40 -40 40 -350 -340 -30 110 -470 [2,] 180 -250 -80 -260 0 10 140 -250 -280 0 140 -360 [3,] 440 -210 -50 -220 50 170 260 -180 -170 20 180 -300 [4,] 560 -40 -10 -190 140 280 300 -140 -30 70 210 -245 [5,] 670 50 80 -100 190 450 400 -60 20 150 240 -220 $n [1] 9 9 9 9 9 9 9 9 9 9 9 8 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 239.8667 -320.6 -86.86667 -256.8667 -23.73333 27.8 175.7333 -237.9333 [2,] 640.1333 -99.4 -13.13333 -183.1333 123.73333 312.2 344.2667 -122.0667 [,9] [,10] [,11] [,12] [1,] -301.66667 -16.86667 143.1333 -364.2407 [2,] -38.33333 56.86667 216.8667 -235.7593 $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(130, 180, 440, 560, 670, -310, -250, -210, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/wessaorg/rcomp/tmp/6uc1e1311075026.ps",horizontal=F,onefile=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] [,7] [,8] [,9] [,10] [1,] 1170 1130 1070 990 960 970 930 860 880 NA [2,] 1185 1150 1145 1095 1100 1045 1030 1015 1025 NA [3,] 1190 1200 1260 1210 1250 1185 1205 1235 1260 NA [4,] 1235 1260 1290 1265 1300 1305 1320 1420 1435 NA [5,] 1280 1410 1410 1500 1530 1530 1640 1610 1550 NA $n [1] 12 12 12 12 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 1167.195 1149.828 1193.865 1132.462 1158.779 1066.412 1072.729 1050.277 [2,] 1212.805 1250.172 1326.135 1287.538 1341.221 1303.588 1337.271 1419.723 [,9] [,10] [1,] 1072.996 NA [2,] 1447.004 NA $out [1] 1070 1400 $group [1] 1 1 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" NA Warning message: In bxp(list(stats = c(1170, 1185, 1190, 1235, 1280, 1130, 1150, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/wessaorg/rcomp/tmp/7adk61311075026.ps",horizontal=F,onefile=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,] 1007.778 970 1005.0 [2,] 1100.000 1110 1097.5 [3,] 1231.111 1235 1227.5 [4,] 1308.333 1300 1300.0 [5,] 1475.556 1530 1480.0 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 1136.089 1148.34 1135.138 [2,] 1326.133 1321.66 1319.862 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(1007.77777777778, 1100, 1231.11111111111, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > try(system("convert tmp/1he4j1311075026.ps tmp/1he4j1311075026.png",intern=TRUE)) character(0) > try(system("convert tmp/2mifx1311075026.ps tmp/2mifx1311075026.png",intern=TRUE)) character(0) > try(system("convert tmp/3pthu1311075026.ps tmp/3pthu1311075026.png",intern=TRUE)) character(0) > try(system("convert tmp/4o43r1311075026.ps tmp/4o43r1311075026.png",intern=TRUE)) character(0) > try(system("convert tmp/5r4ht1311075026.ps tmp/5r4ht1311075026.png",intern=TRUE)) character(0) > try(system("convert tmp/6uc1e1311075026.ps tmp/6uc1e1311075026.png",intern=TRUE)) character(0) > try(system("convert tmp/7adk61311075026.ps tmp/7adk61311075026.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 1.610 0.333 1.948