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(7.24,7.52,7.57,7.59,7.58,7.55,7.52,7.55,7.62,7.64,7.68,7.69,7.7,7.6,7.51,7.66,7.69,7.66,7.7,7.72,7.74,7.76,7.72,7.73,7.75,8.1,8.22,8.32,8.07,8.18,8.33,8.34,8.25,8.36,8.36,8.34,8.41,8.39,8.43,8.44,8.49,8.47,8.53,8.52,8.51,8.53,8.54,8.53,8.47,8.63,8.67,8.73,8.57,8.55,8.63,8.65,8.44,8.62,8.37,8.59,8.84,8.72,8.8,8.69,8.68,8.57,8.85,8.85,8.85,8.93,8.75,8.78,8.77,9.03,9.01,9.07,8.99,9.02,8.99,8.98,8.94,8.94,8.75,8.86) > 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] 84 > (np <- floor(n / par1)) [1] 7 > 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 7 7 7 7 7 > arr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 7.24 7.70 7.75 8.41 8.47 8.84 8.77 NA [2,] 7.52 7.60 8.10 8.39 8.63 8.72 9.03 NA [3,] 7.57 7.51 8.22 8.43 8.67 8.80 9.01 NA [4,] 7.59 7.66 8.32 8.44 8.73 8.69 9.07 NA [5,] 7.58 7.69 8.07 8.49 8.57 8.68 8.99 NA [6,] 7.55 7.66 8.18 8.47 8.55 8.57 9.02 NA [7,] 7.52 7.70 8.33 8.53 8.63 8.85 8.99 NA [8,] 7.55 7.72 8.34 8.52 8.65 8.85 8.98 NA [9,] 7.62 7.74 8.25 8.51 8.44 8.85 8.94 NA [10,] 7.64 7.76 8.36 8.53 8.62 8.93 8.94 NA [11,] 7.68 7.72 8.36 8.54 8.37 8.75 8.75 NA [12,] 7.69 7.73 8.34 8.53 8.59 8.78 8.86 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 0.28 -0.10 0.35 -0.02 0.16 -0.12 0.26 NA [2,] 0.05 -0.09 0.12 0.04 0.04 0.08 -0.02 NA [3,] 0.02 0.15 0.10 0.01 0.06 -0.11 0.06 NA [4,] -0.01 0.03 -0.25 0.05 -0.16 -0.01 -0.08 NA [5,] -0.03 -0.03 0.11 -0.02 -0.02 -0.11 0.03 NA [6,] -0.03 0.04 0.15 0.06 0.08 0.28 -0.03 NA [7,] 0.03 0.02 0.01 -0.01 0.02 0.00 -0.01 NA [8,] 0.07 0.02 -0.09 -0.01 -0.21 0.00 -0.04 NA [9,] 0.02 0.02 0.11 0.02 0.18 0.08 0.00 NA [10,] 0.04 -0.04 0.00 0.01 -0.25 -0.18 -0.19 NA [11,] 0.01 0.01 -0.02 -0.01 0.22 0.03 0.11 NA [12,] 0.01 0.02 0.07 -0.06 0.25 -0.01 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/1k93k1289662000.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/2k93k1289662000.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/3cik41289662000.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/4cik41289662000.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,] 7.240 7.520 7.510 7.59 7.580 7.55 7.520 7.55 7.620 7.640 7.680 7.690 [2,] 7.725 7.850 7.895 7.99 7.880 7.92 8.015 8.03 7.995 8.060 8.040 8.035 [3,] 8.410 8.390 8.430 8.44 8.490 8.47 8.530 8.52 8.440 8.530 8.370 8.530 [4,] 8.620 8.675 8.735 8.71 8.625 8.56 8.740 8.75 8.680 8.775 8.645 8.685 [5,] 8.840 9.030 9.010 9.07 8.990 9.02 8.990 8.98 8.940 8.940 8.750 8.860 $n [1] 7 7 7 7 7 7 7 7 7 7 7 7 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 7.87552 7.897323 7.928366 8.010028 8.045098 8.087802 8.097042 8.090028 [2,] 8.94448 8.882677 8.931634 8.869972 8.934902 8.852198 8.962958 8.949972 [,9] [,10] [,11] [,12] [1,] 8.030929 8.103014 8.008704 8.14183 [2,] 8.849071 8.956986 8.731296 8.91817 $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(7.24, 7.725, 8.41, 8.62, 8.84, 7.52, 7.85, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/5cik41289662000.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] [1,] -0.12 -0.020 0.010 -0.25 -0.030 -0.030 -0.010 -0.090 0.000 -0.250 [2,] -0.06 0.010 0.015 -0.12 -0.030 0.005 -0.005 -0.065 0.020 -0.185 [3,] 0.16 0.040 0.060 -0.01 -0.020 0.060 0.010 -0.010 0.020 -0.040 [4,] 0.27 0.065 0.080 0.01 0.005 0.115 0.020 0.010 0.095 0.005 [5,] 0.35 0.120 0.150 0.05 0.030 0.280 0.030 0.070 0.180 0.040 [,11] [,12] [1,] -2.000000e-02 -0.060 [2,] 4.440892e-16 -0.010 [3,] 1.000000e-02 0.015 [4,] 7.000000e-02 0.070 [5,] 1.100000e-01 0.070 $n [1] 7 7 7 7 7 7 7 7 7 7 7 6 $conf [,1] [,2] [,3] [,4] [,5] [,6] [1,] -0.03707068 0.007154887 0.02118305 -0.0876339 -0.0409014354 -0.005690225 [2,] 0.35707068 0.072845113 0.09881695 0.0676339 0.0009014354 0.125690225 [,7] [,8] [,9] [,10] [,11] [,12] [1,] -0.004929597 -0.05478879 -0.02478879 -0.15346493 -0.03180287 -0.03660258 [2,] 0.024929597 0.03478879 0.06478879 0.07346493 0.05180287 0.06660258 $out [1] -0.09 -0.11 0.11 -0.11 -0.21 0.22 0.25 $group [1] 2 3 5 5 8 11 12 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(-0.119999999999999, -0.06, 0.16, 0.270000000000000, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/65rk71289662000.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] [,8] [1,] 7.520 7.600 8.070 8.390 8.370 8.570 8.750 NA [2,] 7.535 7.660 8.140 8.435 8.510 8.705 8.900 NA [3,] 7.575 7.700 8.285 8.500 8.605 8.790 8.985 NA [4,] 7.630 7.725 8.340 8.530 8.640 8.850 9.015 NA [5,] 7.690 7.760 8.360 8.540 8.730 8.930 9.070 NA $n [1] 12 12 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 7.53167 7.670353 8.193779 8.45667 8.545706 8.723865 8.932548 NA [2,] 7.61833 7.729647 8.376221 8.54333 8.664294 8.856135 9.037452 NA $out [1] 7.24 7.51 7.75 $group [1] 1 2 3 $names [1] "1" "2" "3" "4" "5" "6" "7" NA Warning message: In bxp(list(stats = c(7.52, 7.535, 7.575, 7.63, 7.69, 7.6, 7.66, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/75rk71289662000.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,] 8.284286 8.370 8.17250 [2,] 8.290714 8.420 8.25750 [3,] 8.325714 8.455 8.34000 [4,] 8.362143 8.525 8.36875 [5,] 8.397143 8.530 8.41750 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 8.293135 8.407109 8.289258 [2,] 8.358293 8.502891 8.390742 $out [1] 8.168571 $group [1] 1 $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(8.28428571428571, 8.29071428571429, 8.32571428571429, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > try(system("convert tmp/1k93k1289662000.ps tmp/1k93k1289662000.png",intern=TRUE)) character(0) > try(system("convert tmp/2k93k1289662000.ps tmp/2k93k1289662000.png",intern=TRUE)) character(0) > try(system("convert tmp/3cik41289662000.ps tmp/3cik41289662000.png",intern=TRUE)) character(0) > try(system("convert tmp/4cik41289662000.ps tmp/4cik41289662000.png",intern=TRUE)) character(0) > try(system("convert tmp/5cik41289662000.ps tmp/5cik41289662000.png",intern=TRUE)) character(0) > try(system("convert tmp/65rk71289662000.ps tmp/65rk71289662000.png",intern=TRUE)) character(0) > try(system("convert tmp/75rk71289662000.ps tmp/75rk71289662000.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 1.189 0.979 4.215