Send output to:
Browser Blue - Charts White
Browser Black/White
CSV
Data X:
-705.0084872 -202.9003768 -759.5994856 -453.6981186 -596.9524877 -303.9108648 509.5501548 273.2294983 1125.974397 955.525251 -718.4957424 41.88905895 290.9786539 -85.65812042 -270.4611865 962.3077913 978.9971442 303.8052559 1414.485331 242.9932982 714.7695571 922.9782038 -256.9610079 -174.539615 133.3852059 574.4007144 -474.9035694 44.22325619 139.5762583 -321.877373 656.5372456 -227.1966048 -240.6808641 799.9645768 -271.7164591 -37.44939178 -697.7733622 1088.349218 -109.0324021 -546.9392933 4.43696275 480.7953962 134.5859782 305.8592089 -58.16950155 590.8646403 -529.8536656 -675.5467323 10.58933136 -316.6321065 -218.2180341 402.1378426 -1280.109699 -879.0355445 -578.4927039 -304.5020347 -558.1934767 -293.9809305 -541.6000177 -413.1001712
Data Y:
-546.2822267 1826.31645 -2364.368971 -7683.034989 8098.450913 3896.416493 7234.713659 4239.293805 -27.74271189 4664.187374 -2668.810117 -1634.428903 -702.3820934 -1143.982814 -3012.718515 -10735.23279 10397.07509 7834.750176 12488.85274 4959.499749 4482.35088 1442.97386 -2521.137305 -3139.965807 -2461.386288 -758.6416306 -5108.454014 -13408.57613 8459.603987 3491.91794 7013.424426 2027.684151 767.6328743 1028.926296 -2421.954199 -3841.208803 -2877.408922 983.4389398 -4558.502407 -11485.94799 7431.75032 5661.560414 5066.556246 6901.454036 90.21117925 1376.084013 -3543.486326 -5784.029152 -3579.80472 -1978.140623 -9069.1933 -12651.54637 1693.2274 484.9164955 4304.958758 2721.130582 -3393.498839 -725.6776606 -2761.164048 -4480.650575
Sample Range:
(leave blank to include all observations)
From:
To:
bandwidth of density plot
(?)
# lags (autocorrelation function)
(?)
36
0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
Chart options
Label y-axis:
Label x-axis:
R Code
par1 <- as.numeric(par1) par2 <- as.numeric(par2) x <- as.ts(x) y <- as.ts(y) mylm <- lm(y~x) cbind(mylm$resid) library(lattice) bitmap(file='pic1.png') plot(y,type='l',main='Run Sequence Plot of Y[t]',xlab='time or index',ylab='value') grid() dev.off() bitmap(file='pic1a.png') plot(x,type='l',main='Run Sequence Plot of X[t]',xlab='time or index',ylab='value') grid() dev.off() bitmap(file='pic1b.png') plot(x,y,main='Scatter Plot',xlab='X[t]',ylab='Y[t]') grid() dev.off() bitmap(file='pic1c.png') plot(mylm$resid,type='l',main='Run Sequence Plot of e[t]',xlab='time or index',ylab='value') grid() dev.off() bitmap(file='pic2.png') hist(mylm$resid,main='Histogram of e[t]') dev.off() bitmap(file='pic3.png') if (par1 > 0) { densityplot(~mylm$resid,col='black',main=paste('Density Plot of e[t] bw = ',par1),bw=par1) } else { densityplot(~mylm$resid,col='black',main='Density Plot of e[t]') } dev.off() bitmap(file='pic4.png') qqnorm(mylm$resid,main='QQ plot of e[t]') qqline(mylm$resid) grid() dev.off() if (par2 > 0) { bitmap(file='pic5.png') acf(mylm$resid,lag.max=par2,main='Residual Autocorrelation Function') grid() dev.off() } summary(x) load(file='createtable') a<-table.start() a<-table.row.start(a) a<-table.element(a,'Model: Y[t] = c + b X[t] + e[t]',2,TRUE) a<-table.row.end(a) a<-table.row.start(a) a<-table.element(a,'c',1,TRUE) a<-table.element(a,mylm$coeff[[1]]) a<-table.row.end(a) a<-table.row.start(a) a<-table.element(a,'b',1,TRUE) a<-table.element(a,mylm$coeff[[2]]) 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,'Descriptive Statistics about e[t]',2,TRUE) a<-table.row.end(a) a<-table.row.start(a) a<-table.element(a,'# observations',header=TRUE) a<-table.element(a,length(mylm$resid)) a<-table.row.end(a) a<-table.row.start(a) a<-table.element(a,'minimum',header=TRUE) a<-table.element(a,min(mylm$resid)) a<-table.row.end(a) a<-table.row.start(a) a<-table.element(a,'Q1',header=TRUE) a<-table.element(a,quantile(mylm$resid,0.25)) a<-table.row.end(a) a<-table.row.start(a) a<-table.element(a,'median',header=TRUE) a<-table.element(a,median(mylm$resid)) a<-table.row.end(a) a<-table.row.start(a) a<-table.element(a,'mean',header=TRUE) a<-table.element(a,mean(mylm$resid)) a<-table.row.end(a) a<-table.row.start(a) a<-table.element(a,'Q3',header=TRUE) a<-table.element(a,quantile(mylm$resid,0.75)) a<-table.row.end(a) a<-table.row.start(a) a<-table.element(a,'maximum',header=TRUE) a<-table.element(a,max(mylm$resid)) a<-table.row.end(a) a<-table.end(a) table.save(a,file='mytable.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