::Free Statistics and Forecasting Software::

v1.1.22-r6
 
  Black&White | Blue Theme | Normal Fontsize | Increase Fontsize | Decrease Fontsize | Toggle underline | Secure website (SSL)
 
 
This software module is powered by R

:: Mean Plot - Free Statistics Software (Calculator) ::

All rights reserved. The non-commercial (academic) use of this software is free of charge. The only thing that is asked in return is to cite this software when results are used in publications.

This free online software (calculator) computes the Mean Plot for the (time) series. First the series is segmented into a number of blocks (preferably years). Then the mean, median, and midrange are computed for the set of all i-th observations of each block (eg, all values of the same month). The resulting central tendency statistics for each periodic subseries is plotted. In addition the following notched box plots are generated: the periodic subseries, the sequential blocks, and the overall statistics.

Click here to edit the underlying code of this R Module.

Enter (or paste) your data delimited by hard returns.

Send output to:
Data:
 
Sample Range:
(leave blank to include all observations)
From:
To:
# blockwidth 
Chart options
Width:
Height:

Click here to edit the underlying code of this R Module.






Cite this software as:
Wessa P., (2008), Mean Plot (v1.0.3) in Free Statistics Software (v1.1.22-r6), Office for Research Development and Education, URL http://www.wessa.net/rwasp_meanplot.wasp/
The R code is based on :
NIST/SEMATECH e-Handbook of Statistical Methods, http://www.itl.nist.gov/div898/handbook/, 2006-10-03.

Source code of R module
1par1 <- as.numeric(par1)
2(n <- length(x))
3(np <- floor(n / par1))
4arr <- array(NA,dim=c(par1,np+1))
5darr <- array(NA,dim=c(par1,np+1))
6ari <- array(0,dim=par1)
7dx <- diff(x)
8j <- 0
9for (i in 1:n)
10{
11j = j + 1
12ari[j] = ari[j] + 1
13arr[j,ari[j]] <- x[i]
14darr[j,ari[j]] <- dx[i]
15if (j == par1) j = 0
16}
17ari
18arr
19darr
20arr.mean <- array(NA,dim=par1)
21arr.median <- array(NA,dim=par1)
22arr.midrange <- array(NA,dim=par1)
23for (j in 1:par1)
24{
25arr.mean[j] <- mean(arr[j,],na.rm=TRUE)
26arr.median[j] <- median(arr[j,],na.rm=TRUE)
27arr.midrange[j] <- (quantile(arr[j,],0.75,na.rm=TRUE) + quantile(arr[j,],0.25,na.rm=TRUE)) / 2
28}
29overall.mean <- mean(x)
30overall.median <- median(x)
31overall.midrange <- (quantile(x,0.75) + quantile(x,0.25)) / 2
32bitmap(file="plot1.png")
33plot(arr.mean,type="b",ylab="mean",main="Mean Plot",xlab="Periodic Index")
34mtext(paste("#blocks = ",np))
35abline(overall.mean,0)
36dev.off()
37bitmap(file="plot2.png")
38plot(arr.median,type="b",ylab="median",main="Median Plot",xlab="Periodic Index")
39mtext(paste("#blocks = ",np))
40abline(overall.median,0)
41dev.off()
42bitmap(file="plot3.png")
43plot(arr.midrange,type="b",ylab="midrange",main="Midrange Plot",xlab="Periodic Index")
44mtext(paste("#blocks = ",np))
45abline(overall.midrange,0)
46dev.off()
47bitmap(file="plot4.png")
48z <- data.frame(t(arr))
49names(z) <- c(1:par1)
50(boxplot(z,notch=TRUE,col="grey",xlab="Periodic Index",ylab="Value",main="Notched Box Plots - Periodic Subseries"))
51dev.off()
52bitmap(file="plot4b.png")
53z <- data.frame(t(darr))
54names(z) <- c(1:par1)
55(boxplot(z,notch=TRUE,col="grey",xlab="Periodic Index",ylab="Value",main="Notched Box Plots - Differenced Periodic Subseries"))
56dev.off()
57bitmap(file="plot5.png")
58z <- data.frame(arr)
59names(z) <- c(1:np)
60(boxplot(z,notch=TRUE,col="grey",xlab="Block Index",ylab="Value",main="Notched Box Plots - Sequential Blocks"))
61dev.off()
62bitmap(file="plot6.png")
63z <- data.frame(cbind(arr.mean,arr.median,arr.midrange))
64names(z) <- list("mean","median","midrange")
65(boxplot(z,notch=TRUE,col="grey",ylab="Overall Central Tendency",main="Notched Box Plots"))
66dev.off()
Delete history
Server DateModuleCommand
Sat, 17 May 2008 14:31:06 -0600Start of session-

Please, send us your feedback!
Overall rating
What do you think about the response time?
Rate the facility with which you interact with our software.
Is the output presented in an understandable (clear) form?
How did you find this website/module?
Do you have any comments about our site?
Do you have any suggestions for our site?
Please enter the code that is displayed in this picture: captcha

To cite Wessa.net in publications use:
Wessa, P. (2008), Free Statistics Software, Office for Research Development and Education,
version 1.1.22-r6, URL http://www.wessa.net/

© Resa R&D, and the 'Office for Research, Development, and Education' - All rights reserved. Academic license for non-commercial use only.
This website is an intellectual and physical property of Resa R&D. This includes: html content, graphical illustrations (gif files), computer software, online or electronic documentation, associated media, and printed materials. The free use of the scientific content, services, and applications in this website is granted for non commercial use only. In any case, the source (url) should always be clearly displayed. Under no circumstances are you allowed to reproduce, copy or redistribute the design, layout, or any content of this website (for commercial use) including any materials contained herein without the express written permission of Resa R&D or the Office for Research, Development, and Education.

Information provided on this web site is provided "AS IS" without warranty of any kind, either express or implied, including, without limitation, warranties of merchantability, fitness for a particular purpose, and noninfringement. We use reasonable efforts to include accurate and timely information and periodically update the information, and software without notice. However, Resa R&D makes no warranties or representations as to the accuracy or completeness of such information (or software), and it assumes no liability or responsibility for errors or omissions in the content of this web site, or any software bugs in online applications. Your use of this web site is AT YOUR OWN RISK. Under no circumstances and under no legal theory shall Resa R&D be liable to you or any other person for any direct, indirect, special, incidental, exemplary, or consequential damages arising from your access to, or use of, this web site.

Software Version : 1.1.22-r6
Algorithms & Software : Prof. dr. P. Wessa
Facilities : Resa R&D - Office for Research, Development, and Education
Server : www.wessa.net

Comments, Feedback & Errors | Privacy Policy | Statistics Resources | Wessa.net Home

 © Wessa.Net 2002-2008  
 
 

Home Page
Equation Plotter
Time Series Analysis (new)
Time Series Analysis (old)
Multiple Regression (new)
Multiple Regression (old)
Descriptive Statistics
Statistical Distributions
Hypothesis Testing

Academic citations
Computations Archive
Search Computations
FAQ
About Wessa.net
Powered by Linux

Server status page
History list
Edit R Code
Google
Web wessa.net