Send output to:
Browser Blue - Charts White
Browser Black/White
CSV
Data:
3904.45 4137.2 4334.5 4188.6 4304.1 4570.45 4178.85 4515.15 4740.55 4582.2 4493.6 4437 4294 4581.35 4780.15 4632 4648.2 4834.85 4465.25 4671.65 4871.3 4707.8 4580.45 4562.25 4329.7 4646.1 4844.1 4623 4707.2 4844.9 4436.75 4680.85 4873.8 4735.15 4681.9 4607 4436.4 4614.1 4619.25 4507.1 4515.85 4725.4 4250.85 4591.6 4898.15 4675.45 4568.95 4531.05 4387.35 4826.1 4954.35 4814.85 4821.55 5148.05 4810.75 4988.05 5322.65 5157 5006.65 4910.2 4764.05 5093.7 5312.2 5157.6 5192.4 5546.6 5092.05 5423.25 5647.2 5450.05 5360.3 5309.25 5181 5488.6 5668.15 5560.8 5590.45 5850.7 5252.2 5626.1 5819.8 5676.35 5525.5 5359.55 5296.85 5623.75 5899.3 5672.6 5724.75 5995.1 5475.2 6143.95 6366.95 6306.1 6077 5672.4 5458.6 5716.9 5828.1 5706.85 5888.3 6007.7 5581.85 5970.95 6190.4 6079.15 5902.2 5554.4 5320.45 5683.1 5987.9 5843.7 5917.5 6299.45 5846.75 5998.1
Sample Range:
(leave blank to include all observations)
From:
To:
Seasonal Period
12
12
4
6
12
Chart options
R Code
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')
Compute
Summary of computational transaction
Raw Input
view raw input (R code)
Raw Output
view raw output of R engine
Computing time
0 seconds
R Server
Big Analytics Cloud Computing Center
Click here to blog (archive) this computation