R version 2.7.2 (2008-08-25) Copyright (C) 2008 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(1332.7,1343.8,1421.6,1329.8,1306.8,1412.8,1358.1,1163.9,1467.9,1433.7,1362.2,1299,1291.5,1452.7,1555.4,1402.5,1242.9,1514.6,1308.6,1239.3,1519.9,1659.4,1597.6,1340.6,1427.2,1438.1,1616.2,1392.8,1318.7,1420.9,1221,1310,1466.7,1299.3,1640,1506.3,1530.2,1661.9,1880.3,1230.8,1406.5,1523.5,1323.2,1319.2,1500.7,1483,1497,1219.8,1472.9,1423.9,1629.6,1353.4,1366.8,1527.1,1487.6,1478.6,1536.7,1682.1,1576.5,1280.5) > 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)) > 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,] 1332.7 1291.5 1427.2 1530.2 1472.9 NA [2,] 1343.8 1452.7 1438.1 1661.9 1423.9 NA [3,] 1421.6 1555.4 1616.2 1880.3 1629.6 NA [4,] 1329.8 1402.5 1392.8 1230.8 1353.4 NA [5,] 1306.8 1242.9 1318.7 1406.5 1366.8 NA [6,] 1412.8 1514.6 1420.9 1523.5 1527.1 NA [7,] 1358.1 1308.6 1221.0 1323.2 1487.6 NA [8,] 1163.9 1239.3 1310.0 1319.2 1478.6 NA [9,] 1467.9 1519.9 1466.7 1500.7 1536.7 NA [10,] 1433.7 1659.4 1299.3 1483.0 1682.1 NA [11,] 1362.2 1597.6 1640.0 1497.0 1576.5 NA [12,] 1299.0 1340.6 1506.3 1219.8 1280.5 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [1,] 11.1 161.2 10.9 131.7 -49.0 NA [2,] 77.8 102.7 178.1 218.4 205.7 NA [3,] -91.8 -152.9 -223.4 -649.5 -276.2 NA [4,] -23.0 -159.6 -74.1 175.7 13.4 NA [5,] 106.0 271.7 102.2 117.0 160.3 NA [6,] -54.7 -206.0 -199.9 -200.3 -39.5 NA [7,] -194.2 -69.3 89.0 -4.0 -9.0 NA [8,] 304.0 280.6 156.7 181.5 58.1 NA [9,] -34.2 139.5 -167.4 -17.7 145.4 NA [10,] -71.5 -61.8 340.7 14.0 -105.6 NA [11,] -63.2 -257.0 -133.7 -277.2 -296.0 NA [12,] -7.5 86.6 23.9 253.1 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/17ci31225287657.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/2bgrj1225287657.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/3akwo1225287657.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/44z7g1225287657.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,] 1291.5 1423.9 1555.4 1329.8 1242.9 1412.8 1308.6 1163.9 1466.7 1299.3 [2,] 1332.7 1423.9 1555.4 1329.8 1306.8 1420.9 1308.6 1239.3 1467.9 1433.7 [3,] 1427.2 1438.1 1616.2 1353.4 1318.7 1514.6 1323.2 1310.0 1500.7 1483.0 [4,] 1472.9 1452.7 1629.6 1392.8 1366.8 1523.5 1358.1 1319.2 1519.9 1659.4 [5,] 1530.2 1452.7 1629.6 1402.5 1406.5 1527.1 1358.1 1319.2 1536.7 1682.1 [,11] [,12] [1,] 1362.2 1219.8 [2,] 1497.0 1280.5 [3,] 1576.5 1299.0 [4,] 1597.6 1340.6 [5,] 1640.0 1340.6 $n [1] 5 5 5 5 5 5 5 5 5 5 5 5 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 1328.135 1417.75 1563.770 1308.884 1276.304 1442.103 1288.223 1253.543 [2,] 1526.265 1458.45 1668.630 1397.916 1361.096 1587.097 1358.177 1366.457 [,9] [,10] [,11] [,12] [1,] 1463.957 1323.521 1505.416 1256.533 [2,] 1537.443 1642.479 1647.584 1341.467 $out [1] 1343.8 1661.9 1421.6 1880.3 1230.8 1221.0 1487.6 1478.6 1506.3 $group [1] 2 2 3 3 4 7 7 8 12 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(1291.5, 1332.7, 1427.2, 1472.9, 1530.2, 1423.9, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/5wjgx1225287657.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] [1,] -49.0 77.8 -276.2 -159.6 102.2 -206.0 -69.3 58.1 -167.4 -105.6 -296.0 [2,] 10.9 102.7 -276.2 -74.1 106.0 -200.3 -69.3 156.7 -34.2 -71.5 -277.2 [3,] 11.1 178.1 -223.4 -23.0 117.0 -199.9 -9.0 181.5 -17.7 -61.8 -257.0 [4,] 131.7 205.7 -152.9 13.4 160.3 -54.7 -4.0 280.6 139.5 14.0 -133.7 [5,] 161.2 218.4 -91.8 13.4 160.3 -39.5 89.0 304.0 145.4 14.0 -63.2 [,12] [1,] -7.50 [2,] 8.20 [3,] 55.25 [4,] 169.85 [5,] 253.10 $n [1] 5 5 5 5 5 5 5 5 5 5 5 4 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] -74.25698 105.3205 -310.5235 -84.82728 78.63176 -302.7806 -55.14082 [2,] 96.45698 250.8795 -136.2765 38.82728 155.36824 -97.0194 37.14082 [,8] [,9] [,10] [,11] [,12] [1,] 93.95257 -140.4360 -122.214085 -358.3967 -72.4535 [2,] 269.04743 105.0360 -1.385915 -155.6033 182.9535 $out [1] -649.5 175.7 271.7 -194.2 340.7 $group [1] 3 4 5 7 10 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(-49, 10.8999999999999, 11.0999999999999, 131.7, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/6dft11225287657.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,] 1299.00 1239.30 1221.00 1219.80 1280.50 NA [2,] 1318.30 1300.05 1314.35 1321.20 1395.35 NA [3,] 1350.95 1427.60 1424.05 1490.00 1483.10 NA [4,] 1417.20 1537.65 1486.50 1526.85 1556.60 NA [5,] 1467.90 1659.40 1640.00 1661.90 1682.10 NA $n [1] 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [1,] 1305.841 1319.229 1345.531 1396.202 1409.553 NA [2,] 1396.059 1535.971 1502.569 1583.798 1556.647 NA $out [1] 1163.9 1880.3 $group [1] 1 4 $names [1] "1" "2" "3" "4" "5" NA Warning message: In bxp(list(stats = c(1299, 1318.3, 1350.95, 1417.2, 1467.9, 1239.3, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/737oz1225287657.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,] 1302.20 1299.00 1279.250 [2,] 1334.47 1320.95 1335.075 [3,] 1437.49 1432.65 1420.550 [4,] 1504.94 1507.65 1520.225 [5,] 1620.62 1616.20 1592.500 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 1359.737 1347.495 1336.102 [2,] 1515.243 1517.805 1504.998 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(1302.2, 1334.47, 1437.49, 1504.94, 1620.62, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/17ci31225287657.ps tmp/17ci31225287657.png") > system("convert tmp/2bgrj1225287657.ps tmp/2bgrj1225287657.png") > system("convert tmp/3akwo1225287657.ps tmp/3akwo1225287657.png") > system("convert tmp/44z7g1225287657.ps tmp/44z7g1225287657.png") > system("convert tmp/5wjgx1225287657.ps tmp/5wjgx1225287657.png") > system("convert tmp/6dft11225287657.ps tmp/6dft11225287657.png") > system("convert tmp/737oz1225287657.ps tmp/737oz1225287657.png") > > > proc.time() user system elapsed 1.603 1.063 2.179