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(98.1,98.0,98.3,98.5,98.7,99.3,99.5,99.8,100.3,99.3,99.6,99.3,99.4,99.7,100.0,99.3,100.3,100.8,101.4,101.1,100.6,99.5,99.1,98.8,99.1,98.8,98.5,99.0,99.0,100.6,101.0,101.8,101.8,101.8,101.8,102.4,103.0,103.3,103.6,104.1,104.5,105.6,105.9,106.0,106.3,107.3,107.1,107.3,107.7,108.0,108.9,108.5,109.0,108.9,109.0,108.9,110.3,109.4,108.6,108.0,108.4,108.0,108.0,107.6,107.5,107.9,108.0,107.5,106.8,106.7,107.2,107.8,106.6,106.3,105.7,105.9,106.5,107.2,108.3) > 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] 79 > (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] 7 7 7 7 7 7 7 6 6 6 6 6 > arr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 98.1 99.4 99.1 103.0 107.7 108.4 106.6 [2,] 98.0 99.7 98.8 103.3 108.0 108.0 106.3 [3,] 98.3 100.0 98.5 103.6 108.9 108.0 105.7 [4,] 98.5 99.3 99.0 104.1 108.5 107.6 105.9 [5,] 98.7 100.3 99.0 104.5 109.0 107.5 106.5 [6,] 99.3 100.8 100.6 105.6 108.9 107.9 107.2 [7,] 99.5 101.4 101.0 105.9 109.0 108.0 108.3 [8,] 99.8 101.1 101.8 106.0 108.9 107.5 NA [9,] 100.3 100.6 101.8 106.3 110.3 106.8 NA [10,] 99.3 99.5 101.8 107.3 109.4 106.7 NA [11,] 99.6 99.1 101.8 107.1 108.6 107.2 NA [12,] 99.3 98.8 102.4 107.3 108.0 107.8 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] -0.1 0.3 -0.3 0.3 0.3 -0.4 -0.3 [2,] 0.3 0.3 -0.3 0.3 0.9 0.0 -0.6 [3,] 0.2 -0.7 0.5 0.5 -0.4 -0.4 0.2 [4,] 0.2 1.0 0.0 0.4 0.5 -0.1 0.6 [5,] 0.6 0.5 1.6 1.1 -0.1 0.4 0.7 [6,] 0.2 0.6 0.4 0.3 0.1 0.1 1.1 [7,] 0.3 -0.3 0.8 0.1 -0.1 -0.5 NA [8,] 0.5 -0.5 0.0 0.3 1.4 -0.7 NA [9,] -1.0 -1.1 0.0 1.0 -0.9 -0.1 NA [10,] 0.3 -0.4 0.0 -0.2 -0.8 0.5 NA [11,] -0.3 -0.3 0.6 0.2 -0.6 0.6 NA [12,] 0.1 0.3 0.6 0.4 0.4 -1.2 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/1r5pg1289984137.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/2kf711289984137.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/3kf711289984137.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/4vo6l1289984137.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,] 98.10 98.00 98.30 98.50 98.70 99.30 99.50 99.8 100.30 99.30 [2,] 99.25 99.25 99.25 99.15 99.65 100.70 101.20 101.1 100.60 99.50 [3,] 103.00 103.30 103.60 104.10 104.50 105.60 105.90 103.9 104.05 104.25 [4,] 107.15 107.15 106.85 106.75 107.00 107.55 108.15 107.5 106.80 107.30 [5,] 108.40 108.00 108.90 108.50 109.00 108.90 109.00 108.9 110.30 109.40 [,11] [,12] [1,] 99.10 98.80 [2,] 99.60 99.30 [3,] 104.45 104.85 [4,] 107.20 107.80 [5,] 108.60 108.00 $n [1] 7 7 7 7 7 7 7 6 6 6 6 6 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 98.28225 98.58225 99.0614 99.5614 100.1107 101.5093 101.7496 99.7718 [2,] 107.71775 108.01775 108.1386 108.6386 108.8893 109.6907 110.0504 108.0282 [,9] [,10] [,11] [,12] [1,] 100.0508 99.21875 99.54775 99.36723 [2,] 108.0492 109.28125 109.35225 110.33277 $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(98.1, 99.25, 103, 107.15, 108.4, 98, 99.25, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/5vo6l1289984137.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,] -0.4 -0.60 -0.70 -0.10 -0.10 0.10 -0.5 -0.70 -1.1 -0.8 -0.60 0.10 [2,] -0.3 -0.15 -0.40 0.10 0.45 0.15 -0.3 -0.50 -1.0 -0.4 -0.30 0.10 [3,] -0.1 0.30 0.20 0.40 0.60 0.30 0.0 0.15 -0.5 -0.1 -0.05 0.35 [4,] 0.3 0.30 0.35 0.55 0.90 0.50 0.3 0.50 0.0 0.3 0.60 0.40 [5,] 0.3 0.90 0.50 1.00 1.10 0.60 0.8 1.40 1.0 0.5 0.60 0.60 $n [1] 7 7 7 7 7 7 6 6 6 6 6 6 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] -0.4583103 0.03126726 -0.2478879 0.1312673 0.3312673 0.09098565 -0.3870194 [2,] 0.2583103 0.56873274 0.6478879 0.6687327 0.8687327 0.50901435 0.3870194 [,8] [,9] [,10] [,11] [,12] [1,] -0.4950323 -1.1450323 -0.5515226 -0.6305291 0.1564903 [2,] 0.7950323 0.1450323 0.3515226 0.5305291 0.5435097 $out [1] 1.6 1.1 -1.2 $group [1] 5 6 12 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(-0.400000000000006, -0.299999999999997, -0.0999999999999943, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/6vo6l1289984137.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,] 98.00 98.80 98.5 103.00 107.70 106.70 105.7 [2,] 98.40 99.35 99.0 103.85 108.25 107.35 106.1 [3,] 99.30 99.85 100.8 105.75 108.90 107.70 106.5 [4,] 99.55 100.70 101.8 106.70 109.00 108.00 106.9 [5,] 100.30 101.40 102.4 107.30 109.40 108.40 107.2 $n [1] 12 12 12 12 12 12 7 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 98.77548 99.23426 99.5229 104.4501 108.5579 107.4035 106.0223 [2,] 99.82452 100.46574 102.0771 107.0499 109.2421 107.9965 106.9777 $out [1] 110.3 108.3 $group [1] 5 7 $names [1] "1" "2" "3" "4" "5" "6" NA Warning message: In bxp(list(stats = c(98, 98.4, 99.3, 99.55, 100.3, 98.8, 99.35, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/75f561289984137.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,] 103.1571 103.000 102.9500 [2,] 103.2786 103.750 103.2000 [3,] 103.9167 104.175 103.6375 [4,] 104.2560 104.675 104.0000 [5,] 104.7286 105.900 104.6750 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 103.4709 103.7531 103.2726 [2,] 104.3625 104.5969 104.0024 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(103.157142857143, 103.278571428571, 103.916666666667, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > try(system("convert tmp/1r5pg1289984137.ps tmp/1r5pg1289984137.png",intern=TRUE)) character(0) > try(system("convert tmp/2kf711289984137.ps tmp/2kf711289984137.png",intern=TRUE)) character(0) > try(system("convert tmp/3kf711289984137.ps tmp/3kf711289984137.png",intern=TRUE)) character(0) > try(system("convert tmp/4vo6l1289984137.ps tmp/4vo6l1289984137.png",intern=TRUE)) character(0) > try(system("convert tmp/5vo6l1289984137.ps tmp/5vo6l1289984137.png",intern=TRUE)) character(0) > try(system("convert tmp/6vo6l1289984137.ps tmp/6vo6l1289984137.png",intern=TRUE)) character(0) > try(system("convert tmp/75f561289984137.ps tmp/75f561289984137.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 1.225 0.964 2.832