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(252,247,218,226,212,219,227,221,222,221,202,211,217,202,199,195,271,249,259,254,222,216,211,203,200,192,192,188,179,192,205,203,189,168,169,170,177,177,166,153,159,163,167,195,179,245,243,240,240,239,236,235,226,223,225,218,215,206,201,200,196,193,193,184,188,187,185,185,186,179,175,173) > 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] 72 > (np <- floor(n / par1)) [1] 6 > 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] 6 6 6 6 6 6 6 6 6 6 6 6 > arr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 252 217 200 177 240 196 NA [2,] 247 202 192 177 239 193 NA [3,] 218 199 192 166 236 193 NA [4,] 226 195 188 153 235 184 NA [5,] 212 271 179 159 226 188 NA [6,] 219 249 192 163 223 187 NA [7,] 227 259 205 167 225 185 NA [8,] 221 254 203 195 218 185 NA [9,] 222 222 189 179 215 186 NA [10,] 221 216 168 245 206 179 NA [11,] 202 211 169 243 201 175 NA [12,] 211 203 170 240 200 173 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] -5 -15 -8 0 -1 -3 NA [2,] -29 -3 0 -11 -3 0 NA [3,] 8 -4 -4 -13 -1 -9 NA [4,] -14 76 -9 6 -9 4 NA [5,] 7 -22 13 4 -3 -1 NA [6,] 8 10 13 4 2 -2 NA [7,] -6 -5 -2 28 -7 0 NA [8,] 1 -32 -14 -16 -3 1 NA [9,] -1 -6 -21 66 -9 -7 NA [10,] -19 -5 1 -2 -5 -4 NA [11,] 9 -8 1 -3 -1 -2 NA [12,] 6 -3 7 0 -4 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/17j4a1258124564.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/2yf8x1258124564.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/3fuov1258124564.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/41o5i1258124564.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] [,11] [,12] [1,] 177.0 177.0 166 153.0 159 163.0 167 185.0 179 168 169.0 170.0 [2,] 196.0 192.0 192 184.0 179 187.0 185 195.0 186 179 175.0 173.0 [3,] 208.5 197.5 196 191.5 200 205.5 215 210.5 202 211 201.5 201.5 [4,] 240.0 239.0 218 226.0 226 223.0 227 221.0 222 221 211.0 211.0 [5,] 252.0 247.0 236 235.0 271 249.0 259 254.0 222 245 243.0 240.0 $n [1] 6 6 6 6 6 6 6 6 6 6 6 6 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 180.1186 167.1835 179.2292 164.4086 169.6835 182.2788 187.9086 193.7292 [2,] 236.8814 227.8165 212.7708 218.5914 230.3165 228.7212 242.0914 227.2708 [,9] [,10] [,11] [,12] [1,] 178.7788 183.9086 178.2788 176.9888 [2,] 225.2212 238.0914 224.7212 226.0112 $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(177, 196, 208.5, 240, 252, 177, 192, 197.5, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/56kgq1258124564.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,] -15 -11 -13 -14.0 -3.0 -2 -7.0 -32.0 -21.0 -5.0 -8.0 -4 [2,] -8 -11 -9 -9.0 -3.0 2 -6.0 -16.0 -9.0 -5.0 -3.0 -3 [3,] -4 -3 -4 -2.5 1.5 6 -3.5 -8.5 -6.5 -4.5 -1.5 0 [4,] -1 0 -1 6.0 7.0 10 0.0 1.0 -1.0 -2.0 1.0 6 [5,] 0 0 8 6.0 13.0 13 0.0 1.0 -1.0 1.0 1.0 7 $n [1] 6 6 6 6 6 6 6 6 6 6 6 5 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] -8.5152261 -10.095355 -9.160258 -12.175484 -4.950323 0.8397416 -7.3701938 [2,] 0.5152261 4.095355 1.160258 7.175484 7.950323 11.1602584 0.3701938 [,8] [,9] [,10] [,11] [,12] [1,] -19.465549 -11.660258 -6.435097 -4.080129 -6.359377 [2,] 2.465549 -1.339742 -2.564903 1.080129 6.359377 $out [1] -29 76 -22 28 66 -19 9 $group [1] 2 4 5 7 9 10 11 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(-15, -8, -4, -1, 0, -11, -11, -3, 0, 0, -13, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/60hn21258124564.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] [,7] [1,] 202.0 195.0 168.0 153.0 200.0 173.0 NA [2,] 215.0 202.5 174.5 164.5 210.5 181.5 NA [3,] 221.0 216.5 190.5 177.0 224.0 185.5 NA [4,] 226.5 251.5 196.0 217.5 235.5 190.5 NA [5,] 227.0 271.0 205.0 245.0 240.0 196.0 NA $n [1] 12 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 215.7548 194.1508 180.6937 152.8263 212.5973 181.3950 NA [2,] 226.2452 238.8492 200.3063 201.1737 235.4027 189.6050 NA $out [1] 252 247 $group [1] 1 1 $names [1] "1" "2" "3" "4" "5" "6" NA Warning message: In bxp(list(stats = c(202, 215, 221, 226.5, 227, 195, 202.5, 216.5, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/73lzw1258124564.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,] 196.8333 191.50 194.3750 [2,] 200.4167 198.75 201.7500 [3,] 205.6667 201.75 203.1250 [4,] 209.8333 209.50 208.4375 [5,] 213.6667 215.00 215.6250 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 201.3717 196.8469 200.0748 [2,] 209.9617 206.6531 206.1752 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(196.833333333333, 200.416666666667, 205.666666666667, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/17j4a1258124564.ps tmp/17j4a1258124564.png") > system("convert tmp/2yf8x1258124564.ps tmp/2yf8x1258124564.png") > system("convert tmp/3fuov1258124564.ps tmp/3fuov1258124564.png") > system("convert tmp/41o5i1258124564.ps tmp/41o5i1258124564.png") > system("convert tmp/56kgq1258124564.ps tmp/56kgq1258124564.png") > system("convert tmp/60hn21258124564.ps tmp/60hn21258124564.png") > system("convert tmp/73lzw1258124564.ps tmp/73lzw1258124564.png") > > > proc.time() user system elapsed 1.214 0.953 1.459