Home » date » 2010 » May » 24 »

*Unverified author*
R Software Module: /rwasp_smp.wasp (opens new window with default values)
Title produced by software: Standard Deviation-Mean Plot
Date of computation: Mon, 24 May 2010 09:31:39 +0000
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2010/May/24/t1274693521nem7qbyj7uefjfi.htm/, Retrieved Mon, 24 May 2010 11:32:03 +0200
 
BibTeX entries for LaTeX users:
@Manual{KEY,
    author = {{YOUR NAME}},
    publisher = {Office for Research Development and Education},
    title = {Statistical Computations at FreeStatistics.org, URL http://www.freestatistics.org/blog/date/2010/May/24/t1274693521nem7qbyj7uefjfi.htm/},
    year = {2010},
}
@Manual{R,
    title = {R: A Language and Environment for Statistical Computing},
    author = {{R Development Core Team}},
    organization = {R Foundation for Statistical Computing},
    address = {Vienna, Austria},
    year = {2010},
    note = {{ISBN} 3-900051-07-0},
    url = {http://www.R-project.org},
}
 
Original text written by user:
 
IsPrivate?
No (this computation is public)
 
User-defined keywords:
KDGP2W83
 
Dataseries X:
» Textbox « » Textfile « » CSV «
1772.2 1769.5 1768 1794.8 1823.4 1856.9 1866.9 1869.8 1843.8 1837.1 1857.7 1840.3 1914.6 1972.9 2050.1 2086.2 2112.5 2147.6 2190.4 2194.1 2216.2 2218.6 2233.5 2307.2 2350.4 2368.2 2353.8 2316.5 2305.5 2308.4 2334.4 2381.2 2449.7 2490.3 2523.5 2537.6 2526.1 2545.9 2542.7 2584.3 2600.2 2593.9 2618.9 2591.3 2521.2 2536.6 2596.1 2656.6 2710.3 2778.8 2775.5 2785.2 2847.7 2834.4 2839 2802.6 2819.3 2872 2918.4 2977.8 3031.2 3064.7 3093 3100.6 3141.1 3180.4 3240.3 3265 3338.2 3376.6 3422.5 3432 3516.3 3564 3636.3 3724 3815.4 3828.1 3853.3 3884.5 3918.7 3919.6 3950.8 3981 4063 4132 4160.3 4178.3 4244.1 4256.5 4283.4 4263.3 4256.6 4264.3 4302.3 4256.6 4374 4398.8 4433.9 4446.3 4525.8 4633.1 4677.5 4754.5 4876.2 4932.6 4906.3 4953.1 4909.6 4922.2 4873.5 4854.3 4795.3 4831.9 4913.3 4977.5 5090.7 5128.9 5154.1 5191.5 5251.8 5356.1 5451.9 5450.8 5469.4 5684.6 5740.3 5816.2 5825.9 5831.4 5873.3 etc...
 
Output produced by software:


Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time1 seconds
R Server'Gwilym Jenkins' @ 72.249.127.135


Standard Deviation-Mean Plot
SectionMeanStandard DeviationRange
11776.12512.570700060060326.8000000000000
21854.2521.296087277557246.3999999999999
31844.7259.0724399511194220.6000000000001
42005.9577.0852558318817171.6
52161.1538.694056391130781.5999999999999
62243.87542.904652039920691
72347.22521.888257887126051.6999999999998
82332.37535.047812580340375.6999999999998
92500.27539.114735075160687.900
102549.7524.614020394888958.2000000000003
112601.07512.456959233028527.5999999999999
122577.62561.7662461759388135.4
132762.4534.999095226400674.8999999999996
142830.92519.67220967083645.0999999999999
152896.87567.4507907045327158.5
163072.37531.497764470937869.4000000000001
173206.756.3409265099537123.9
183392.32543.441253434955293.8000000000002
193610.1590.523090976833207.7
203845.32530.498565540038169.0999999999999
213942.52529.675958282758262.3000000000002
224133.450.6548451121247115.300000000000
234261.82516.433578429544539.2999999999993
244269.9521.869994665446645.6999999999998
254413.2533.005504591406172.3000000000002
264647.72595.510989769066228.7
274917.0533.295094733809576.9000000000005
284889.931.452079952418667.8999999999996
294879.581.857274162614182.2
305141.342.4185494015690100.800000000000
315377.6595.1605835767448200.099999999999
325677.625148.926701769696346.8
335855.02531.245839723073863.6000000000004
34583966.7503308356345131.900000000000
355987.236.905374495683575.0999999999995
365870.9513.372234916672331.8000000000002
376136.175163.304263569571381.6
386577.12598.4380812152153229
396849.2598.1260923506075215.599999999999
407086.5560.1381465183842130.599999999999
417313.275112.102791371729265
427613.998.2438123581666237.400000000000
437885.92562.9946757009402138.099999999999
448033.92533.562317659343670.7000000000007
458015.12550.8155734002875118.800000000000
468287.075111.453110469530259.400000000000
478523.4589.7909609407685211.299999999999
488870.675114.926944186296275.300000000001
499093.7573.0682557613084159
509433.925145.778470632669345.299999999999
519854.35149.919322748381342.699999999999
5210283.525175.751289706032404.200000000001
5310779.85180.438216572875413.099999999999
5411225.975126.587397345339291.5
5511347.17537.477226418185982.8999999999996
5611552.97557.2213465413039120.900000000000
5711840.7180.943324460082397
5812263.8121.228132048629282.699999999999
5912638.37595.9903250333077214.600000000000
6012976.2560.7456719994661144.800000000001
6113254.05128.547073089978291.300000000001
6213312.175119.411818929283273.400000000000
6312988.725114.764842903507253.5


Regression: S.E.(k) = alpha + beta * Mean(k)
alpha16.7274750327130
beta0.00859255772638258
S.D.0.00129880772879621
T-STAT6.61572728270296
p-value1.05559017905406e-08


Regression: ln S.E.(k) = alpha + beta * ln Mean(k)
alpha-3.08817977900728
beta0.827810061573284
S.D.0.118443962699814
T-STAT6.98904395550572
p-value2.41986803882557e-09
Lambda0.172189938426716
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/May/24/t1274693521nem7qbyj7uefjfi/1w9d81274693497.png (open in new window)
http://www.freestatistics.org/blog/date/2010/May/24/t1274693521nem7qbyj7uefjfi/1w9d81274693497.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/May/24/t1274693521nem7qbyj7uefjfi/2w9d81274693497.png (open in new window)
http://www.freestatistics.org/blog/date/2010/May/24/t1274693521nem7qbyj7uefjfi/2w9d81274693497.ps (open in new window)


 
Parameters (Session):
par1 = 4 ;
 
Parameters (R input):
par1 = 4 ;
 
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))
j <- 0
k <- 1
for (i in 1:(np*par1))
{
j = j + 1
arr[j,k] <- x[i]
if (j == par1) {
j = 0
k=k+1
}
}
arr
arr.mean <- array(NA,dim=np)
arr.sd <- array(NA,dim=np)
arr.range <- array(NA,dim=np)
for (j in 1:np)
{
arr.mean[j] <- mean(arr[,j],na.rm=TRUE)
arr.sd[j] <- sd(arr[,j],na.rm=TRUE)
arr.range[j] <- max(arr[,j],na.rm=TRUE) - min(arr[,j],na.rm=TRUE)
}
arr.mean
arr.sd
arr.range
(lm1 <- lm(arr.sd~arr.mean))
(lnlm1 <- lm(log(arr.sd)~log(arr.mean)))
(lm2 <- lm(arr.range~arr.mean))
bitmap(file='test1.png')
plot(arr.mean,arr.sd,main='Standard Deviation-Mean Plot',xlab='mean',ylab='standard deviation')
dev.off()
bitmap(file='test2.png')
plot(arr.mean,arr.range,main='Range-Mean Plot',xlab='mean',ylab='range')
dev.off()
load(file='createtable')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a,'Standard Deviation-Mean Plot',4,TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'Section',header=TRUE)
a<-table.element(a,'Mean',header=TRUE)
a<-table.element(a,'Standard Deviation',header=TRUE)
a<-table.element(a,'Range',header=TRUE)
a<-table.row.end(a)
for (j in 1:np) {
a<-table.row.start(a)
a<-table.element(a,j,header=TRUE)
a<-table.element(a,arr.mean[j])
a<-table.element(a,arr.sd[j] )
a<-table.element(a,arr.range[j] )
a<-table.row.end(a)
}
a<-table.end(a)
table.save(a,file='mytable.tab')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a,'Regression: S.E.(k) = alpha + beta * Mean(k)',2,TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'alpha',header=TRUE)
a<-table.element(a,lm1$coefficients[[1]])
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'beta',header=TRUE)
a<-table.element(a,lm1$coefficients[[2]])
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'S.D.',header=TRUE)
a<-table.element(a,summary(lm1)$coefficients[2,2])
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'T-STAT',header=TRUE)
a<-table.element(a,summary(lm1)$coefficients[2,3])
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'p-value',header=TRUE)
a<-table.element(a,summary(lm1)$coefficients[2,4])
a<-table.row.end(a)
a<-table.end(a)
table.save(a,file='mytable1.tab')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a,'Regression: ln S.E.(k) = alpha + beta * ln Mean(k)',2,TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'alpha',header=TRUE)
a<-table.element(a,lnlm1$coefficients[[1]])
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'beta',header=TRUE)
a<-table.element(a,lnlm1$coefficients[[2]])
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'S.D.',header=TRUE)
a<-table.element(a,summary(lnlm1)$coefficients[2,2])
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'T-STAT',header=TRUE)
a<-table.element(a,summary(lnlm1)$coefficients[2,3])
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'p-value',header=TRUE)
a<-table.element(a,summary(lnlm1)$coefficients[2,4])
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'Lambda',header=TRUE)
a<-table.element(a,1-lnlm1$coefficients[[2]])
a<-table.row.end(a)
a<-table.end(a)
table.save(a,file='mytable2.tab')
 





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:

  • personalize online software applications according to your needs
  • enforce strict security rules with respect to the data that you upload (e.g. statistical data)
  • manage user sessions of online applications
  • alert you about important changes or upgrades in resources or applications

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