Home » date » 2007 » Nov » 18 » attachments

Seatbelt law

R Software Module: rwasp_meanplot.wasp (opens new window with default values)
Title produced by software: Mean Plot
Date of computation: Sun, 18 Nov 2007 07:03:41 -0700
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2007/Nov/18/t1195394300o5fz94zwfnsi409.htm/, Retrieved Sun, 18 Nov 2007 14:58:27 +0100
 
User-defined keywords:
paper, wim, dhondt
 
Dataseries X:
» Textbox « » Textfile « » CSV «
-183.9235445 -177.0726091 -228.6351091 -237.4476091 -127.7601091 -193.0101091 -220.6351091 -164.5101091 -268.3226091 -333.6976091 -34.26010911 -154.8851091 -97.74528053 101.1056549 2.543154874 -43.26934513 -163.5818451 -162.8318451 46.54315487 26.66815487 -107.1443451 42.48065487 76.91815487 196.2931549 201.4329835 12.28391886 -0.278581137 42.90891886 87.59641886 84.34641886 57.72141886 173.8464189 -185.9660811 47.65891886 89.09641886 -68.52858114 272.6112475 146.4621829 162.8996829 10.08718285 279.7746829 212.5246829 248.8996829 -41.97531715 -5.787817149 52.83718285 274.2746829 414.6496829 310.7895114 362.6404468 26.07794684 403.2654468 327.9529468 193.7029468 317.0779468 202.2029468 321.3904468 178.0154468 16.45294684 -68.17205316 -157.0322246 -76.18128917 -81.74378917 -134.5562892 77.13121083 199.8812108 105.2562108 198.3812108 262.5687108 196.1937108 11.63121083 -145.9937892 -166.8539606 -202.0030252 43.43447482 -113.3780252 -113.6905252 -155.9405252 -210.5655252 -124.4405252 -64.25302518 -298.6280252 -154.1905252 23.18447482 -249.6756966 118.1752388 -180.3872612 -79.19976119 -81.51226119 -246.7622612 -105.3872612 -319.2622612 -72.07476119 -90.44976119 -80.01226119 119.3627388 -53.49743261 -114.6464972 -155.2089972 -50.02149721 -196.3339972 -14.58399721 -82.20899721 17.91600279 -162.8964972 -132.2714972 -16.83399721 81.54100279 275.6808314 -32.46823322 17.96926678 27.15676678 -123.1557332 108.5942668 67.96926678 34.09426678 -13.71823322 -113.0932332 54.34426678 149.7192668 153.8590954 -28.28996923 238.1475308 50.33503077 8.022530771 -61.22746923 -140.8524692 -28.72746923 9.460030771 -121.9149692 41.52253077 115.8975308 27.03735936 -91.11170524 3.325794759 -29.48670524 -73.79920524 50.95079476 -86.67420524 -9.54920524 -66.36170524 73.26329476 -216.2992052 -128.9242052 -142.7843767 27.06655875 60.50405875 35.69155875 16.37905875 -64.87094125 115.5040587 -30.37094125 87.81655875 205.4415587 -64.12094125 -322.7459413 -139.6061127 35.24482274 -4.317677263 17.86982274 2.557322737 129.3073227 -16.31767726 164.8073227 21.99482274 138.6198227 87.05732274 51.43232274 -80.42784867 -105.1918797 5.245620328 68.43312033 -0.879379672 -105.1293797 -82.75437967 -132.6293797 102.5581203 23.18312033 -180.3793797 -267.0043797 30.13544892 23.98638432 90.42388432 31.61138432 81.29888432 25.04888432 -13.57611568 33.54888432 140.7363843 132.3613843 94.79888432 4.173884316
 
Text written by user:
 
Output produced by software:


Summary of compuational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time2 seconds
R Server'Gwilym Jenkins' @ 72.249.127.135
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Nov/18/t1195394300o5fz94zwfnsi409/1eylq1195394618.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Nov/18/t1195394300o5fz94zwfnsi409/1eylq1195394618.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Nov/18/t1195394300o5fz94zwfnsi409/2p07m1195394618.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Nov/18/t1195394300o5fz94zwfnsi409/2p07m1195394618.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Nov/18/t1195394300o5fz94zwfnsi409/3so5t1195394618.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Nov/18/t1195394300o5fz94zwfnsi409/3so5t1195394618.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Nov/18/t1195394300o5fz94zwfnsi409/4r8vc1195394618.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Nov/18/t1195394300o5fz94zwfnsi409/4r8vc1195394618.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Nov/18/t1195394300o5fz94zwfnsi409/5s9jm1195394619.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Nov/18/t1195394300o5fz94zwfnsi409/5s9jm1195394619.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Nov/18/t1195394300o5fz94zwfnsi409/6jqw41195394619.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Nov/18/t1195394300o5fz94zwfnsi409/6jqw41195394619.ps (open in new window)


 
Parameters:
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))
ari <- array(0,dim=par1)
j <- 0
for (i in 1:n)
{
j = j + 1
ari[j] = ari[j] + 1
arr[j,ari[j]] <- x[i]
if (j == par1) j = 0
}
ari
arr
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='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()
 





Copyright

Creative Commons License

This work is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 License.

Software written by Ed van Stee & Patrick Wessa


Disclaimer

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, we make no warranties or representations as to the accuracy or completeness of such information (or software), and we assume 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 we 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.


Privacy Policy

We may request personal information to be submitted to our servers in order to be able to:

We NEVER allow other companies to directly offer registered users information about their products and services. Banner references and hyperlinks of third parties NEVER contain any personal data of the visitor.

We do NOT sell, nor transmit by any means, personal information, nor statistical data series uploaded by you to third parties.

We carefully protect your data from loss, misuse, alteration, and destruction. However, at any time, and under any circumstance you are solely responsible for managing your passwords, and keeping them secret.

We store a unique ANONYMOUS USER ID in the form of a small 'Cookie' on your computer. This allows us to track your progress when using this website which is necessary to create state-dependent features. The cookie is used for NO OTHER PURPOSE. At any time you may opt to disallow cookies from this website - this will not affect other features of this website.

We examine cookies that are used by third-parties (banner and online ads) very closely: abuse from third-parties automatically results in termination of the advertising contract without refund. We have very good reason to believe that the cookies that are produced by third parties (banner ads) do NOT cause any privacy or security risk.

FreeStatistics.org is safe. There is no need to download any software to use the applications and services contained in this website. Hence, your system's security is not compromised by their use, and your personal data - other than data you submit in the account application form, and the user-agent information that is transmitted by your browser - is never transmitted to our servers.

As a general rule, we do not log on-line behavior of individuals (other than normal logging of webserver 'hits'). However, in cases of abuse, hacking, unauthorized access, Denial of Service attacks, illegal copying, hotlinking, non-compliance with international webstandards (such as robots.txt), or any other harmful behavior, our system engineers are empowered to log, track, identify, publish, and ban misbehaving individuals - even if this leads to ban entire blocks of IP addresses, or disclosing user's identity.


FreeStatistics.org is powered by