Home
»
date
»
2011
»
Nov
»
15
»
W6 T5
*The author of this computation has been verified*
R Software Module:
/rwasp_meanplot.wasp
(opens new window with default values)
Title produced by software: Mean Plot
Date of computation: Tue, 15 Nov 2011 16:08:03 -0500
Cite this page as follows:
Statistical Computations at FreeStatistics.org
, Office for Research Development and Education, URL
http://www.freestatistics.org/blog/date/2011/Nov/15/t13213913039as8rttwyimcaxj.htm/
, Retrieved Fri, 24 May 2013 09:23:59 +0000
Original text written by user:
IsPrivate?
No (this computation is public)
User-defined keywords:
System-generated keywords (parent):
t1321197634j0kryoz1g4142m0 (pk = 141739)
Estimated Impact
14
Dataseries X:
»
Textfile
« »
CSV
« »
Stem and Leaf
« »
Histogram
« »
Kernel Density
« »
Harrell-Davis Quantiles
« »
Central Tendency
« »
Variability
«
330123 334728 338414 338582 339904 341396 343496 344591 346099 347258 348503 348628 349913 352797 354539 353032 355576 355603 357889 359310 361253 364253 364872 364201 368830 368755 370117 372895 374215 375539 380550 382839 386678 389265 393978 397923 394691 394410 398981 399827 403635 402425 406939 404544 406309 407884 407151 414154 408459 407609 408503 409068 412860 415113 418053 415780 413562 414521 413948 413106
Output produced by software:
Summary of computational transaction
Raw Input
view raw input (R code)
Raw Output
view raw output of R engine
Computing time
2 seconds
R Server
'Gwilym Jenkins' @ jenkins.wessa.net
Charts produced by software:
http://www.freestatistics.org/blog/date/2011/Nov/15/t13213913039as8rttwyimcaxj/1gkk11321391281.png (
opens in new window
)
http://www.freestatistics.org/blog/date/2011/Nov/15/t13213913039as8rttwyimcaxj/1gkk11321391281.ps (
opens in new window
)
Click here to open pdf file.
http://www.freestatistics.org/blog/date/2011/Nov/15/t13213913039as8rttwyimcaxj/2em2i1321391281.png (
opens in new window
)
http://www.freestatistics.org/blog/date/2011/Nov/15/t13213913039as8rttwyimcaxj/2em2i1321391281.ps (
opens in new window
)
Click here to open pdf file.
http://www.freestatistics.org/blog/date/2011/Nov/15/t13213913039as8rttwyimcaxj/3nk0o1321391281.png (
opens in new window
)
http://www.freestatistics.org/blog/date/2011/Nov/15/t13213913039as8rttwyimcaxj/3nk0o1321391281.ps (
opens in new window
)
Click here to open pdf file.
http://www.freestatistics.org/blog/date/2011/Nov/15/t13213913039as8rttwyimcaxj/42wy01321391281.png (
opens in new window
)
http://www.freestatistics.org/blog/date/2011/Nov/15/t13213913039as8rttwyimcaxj/42wy01321391281.ps (
opens in new window
)
Click here to open pdf file.
http://www.freestatistics.org/blog/date/2011/Nov/15/t13213913039as8rttwyimcaxj/51pma1321391281.png (
opens in new window
)
http://www.freestatistics.org/blog/date/2011/Nov/15/t13213913039as8rttwyimcaxj/51pma1321391281.ps (
opens in new window
)
Click here to open pdf file.
http://www.freestatistics.org/blog/date/2011/Nov/15/t13213913039as8rttwyimcaxj/6tiif1321391281.png (
opens in new window
)
http://www.freestatistics.org/blog/date/2011/Nov/15/t13213913039as8rttwyimcaxj/6tiif1321391281.ps (
opens in new window
)
Click here to open pdf file.
http://www.freestatistics.org/blog/date/2011/Nov/15/t13213913039as8rttwyimcaxj/74g8j1321391281.png (
opens in new window
)
http://www.freestatistics.org/blog/date/2011/Nov/15/t13213913039as8rttwyimcaxj/74g8j1321391281.ps (
opens in new window
)
Click here to open pdf file.
Parameters (Session):
par1 = 12 ;
Parameters (R input):
par1 = 12 ;
R code (references can be found in the
software module
):
par1 <- as.numeric(par1) (n <- length(x)) (np <- floor(n / par1)) 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 arr darr 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 bitmap(file='plot1.png') plot(arr.mean,type='b',ylab='mean',main='Mean Plot',xlab='Periodic Index') mtext(paste('#blocks = ',np)) abline(overall.mean,0) dev.off() bitmap(file='plot2.png') plot(arr.median,type='b',ylab='median',main='Median Plot',xlab='Periodic Index') mtext(paste('#blocks = ',np)) abline(overall.median,0) dev.off() bitmap(file='plot3.png') plot(arr.midrange,type='b',ylab='midrange',main='Midrange Plot',xlab='Periodic Index') mtext(paste('#blocks = ',np)) abline(overall.midrange,0) dev.off() bitmap(file='plot4.png') 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')) dev.off() bitmap(file='plot4b.png') 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')) dev.off() bitmap(file='plot5.png') 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')) dev.off() bitmap(file='plot6.png') 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')) dev.off()