Home » date » 2009 » Nov » 19 »

*The author of this computation has been verified*
R Software Module: /rwasp_multipleregression.wasp (opens new window with default values)
Title produced by software: Multiple Regression
Date of computation: Thu, 19 Nov 2009 10:47:58 -0700
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2009/Nov/19/t1258652934tzxstiz0uybq3gy.htm/, Retrieved Thu, 19 Nov 2009 18:49:06 +0100
 
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/2009/Nov/19/t1258652934tzxstiz0uybq3gy.htm/},
    year = {2009},
}
@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 = {2009},
    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:
ws7l5
 
Dataseries X:
» Textbox « » Textfile « » CSV «
6,1 110,4 6,1 6,3 6,3 96,4 6,1 6,1 6,3 101,9 6,3 6,1 6 106,2 6,3 6,3 6,2 81 6 6,3 6,4 94,7 6,2 6 6,8 101 6,4 6,2 7,5 109,4 6,8 6,4 7,5 102,3 7,5 6,8 7,6 90,7 7,5 7,5 7,6 96,2 7,6 7,5 7,4 96,1 7,6 7,6 7,3 106 7,4 7,6 7,1 103,1 7,3 7,4 6,9 102 7,1 7,3 6,8 104,7 6,9 7,1 7,5 86 6,8 6,9 7,6 92,1 7,5 6,8 7,8 106,9 7,6 7,5 8 112,6 7,8 7,6 8,1 101,7 8 7,8 8,2 92 8,1 8 8,3 97,4 8,2 8,1 8,2 97 8,3 8,2 8 105,4 8,2 8,3 7,9 102,7 8 8,2 7,6 98,1 7,9 8 7,6 104,5 7,6 7,9 8,3 87,4 7,6 7,6 8,4 89,9 8,3 7,6 8,4 109,8 8,4 8,3 8,4 111,7 8,4 8,4 8,4 98,6 8,4 8,4 8,6 96,9 8,4 8,4 8,9 95,1 8,6 8,4 8,8 97 8,9 8,6 8,3 112,7 8,8 8,9 7,5 102,9 8,3 8,8 7,2 97,4 7,5 8,3 7,4 111,4 7,2 7,5 8,8 87,4 7,4 7,2 9,3 96,8 8,8 7,4 9,3 114,1 9,3 8,8 8,7 110,3 9,3 9,3 8,2 103,9 8,7 9,3 8,3 101,6 8,2 8,7 8,5 94,6 8,3 8,2 8,6 95,9 8,5 8,3 8,5 104,7 8,6 8,5 8,2 102,8 8,5 8,6 8,1 98,1 8,2 8,5 7,9 113,9 8,1 8,2 8,6 80,9 7,9 8,1 8,7 95,7 8,6 7,9 8,7 113,2 8,7 8,6 8,5 105,9 8,7 8,7 8,4 108,8 8,5 8,7 8 etc...
 
Output produced by software:

Enter (or paste) a matrix (table) containing all data (time) series. Every column represents a different variable and must be delimited by a space or Tab. Every row represents a period in time (or category) and must be delimited by hard returns. The easiest way to enter data is to copy and paste a block of spreadsheet cells. Please, do not use commas or spaces to seperate groups of digits!


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


Multiple Linear Regression - Estimated Regression Equation
Y[t] = + 1.67058536444880 -0.00940480827711062X[t] + 1.4664080020596Y1[t] -0.578726593157617Y2[t] + 0.0892563503721176M1[t] + 0.0340631621848652M2[t] + 0.00541120381002455M3[t] + 0.174002531815138M4[t] + 0.646315973961958M5[t] -0.199110925542800M6[t] + 0.148855305434789M7[t] + 0.174528724554786M8[t] + 0.0891393379223372M9[t] + 0.27550884188137M10[t] + 0.244894451851841M11[t] + 0.000867678569418552t + e[t]


Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STAT
H0: parameter = 0
2-tail p-value1-tail p-value
(Intercept)1.670585364448800.6021832.77420.0069030.003451
X-0.009404808277110620.005569-1.68870.095230.047615
Y11.46640800205960.09448615.519800
Y2-0.5787265931576170.093488-6.190400
M10.08925635037211760.12610.70780.4811390.24057
M20.03406316218486520.11590.29390.7696050.384802
M30.005411203810024550.1162260.04660.9629830.481492
M40.1740025318151380.1309261.3290.1876680.093834
M50.6463159739619580.137044.71631e-055e-06
M6-0.1991109255428000.12375-1.6090.1116120.055806
M70.1488553054347890.1232931.20730.2309070.115453
M80.1745287245547860.1295591.34710.1818010.090901
M90.08913933792233720.1134980.78540.4345790.217289
M100.275508841881370.1134712.4280.0174550.008728
M110.2448944518518410.1103752.21870.0293740.014687
t0.0008676785694185520.0010640.81560.4171810.20859


Multiple Linear Regression - Regression Statistics
Multiple R0.96797577325124
R-squared0.936977097601335
Adjusted R-squared0.925010723728171
F-TEST (value)78.3008376248883
F-TEST (DF numerator)15
F-TEST (DF denominator)79
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation0.210508612002221
Sum Squared Residuals3.50079618244103


Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolation
Forecast
Residuals
Prediction Error
16.16.02152983526790.0784701647320955
26.36.214616960161140.0853830398388554
36.36.42838783524353-0.128387835243527
466.44166084759497-0.441660847594966
56.26.71192073627651-0.511920736276512
66.46.205415220303960.194584779696037
76.86.672535119485570.127464880514429
87.57.090893709839570.409106290160427
97.57.8681411047227-0.368141104722704
107.67.7593654480553-0.159365448055307
117.67.82453309127705-0.224533091277046
127.47.52357413950658-0.123574139506574
137.37.22730896609280.0726910339072044
147.17.16936191890414-0.0693619189041445
156.96.91651398710739-0.0165139871073851
166.86.88304372955332-0.0830437295533228
177.57.5011992834771-0.00119928347709286
187.67.68362899280886-0.0836289928088626
197.87.634803924850260.165196075149740
2087.84314655645630.156853443543697
218.18.038673540394180.0613264596058233
228.28.34803284478504-0.148032844785038
238.38.35626830951873-0.056268309518726
248.28.20477160043735-0.00477160043735051
2588.01138178032943-0.0113817803294315
267.97.747040311963640.152959688036361
277.67.73162266865849-0.13162266865849
287.67.45884116095740.141158839042606
298.38.266462481159510.0335375188404909
308.48.42487684097312-0.0248768409731164
318.48.328087250801250.0719127491987509
328.48.278886553448390.121113446551607
338.48.317567833815510.082432166184488
348.68.520793190415050.0792068095849475
358.98.801256734265660.0987432657343409
368.88.86353790724309-0.0635379072430851
378.38.48574766808074-0.185747668080739
387.57.84825793786455-0.348257937864551
397.26.988436998514360.211563001485637
407.47.049287563117560.350712436882440
418.88.215083660843660.584916339156341
429.39.21934512635540.0806548736446009
439.39.32846262331753-0.0284626233175294
448.79.10137869588116-0.401378695881158
458.28.197202959555870.00279704044412738
468.38.020103155986450.279896844013552
478.58.492194199250880.0078058007491174
488.68.471350116304370.128649883695627
498.58.50960731398177-0.0096073139817724
508.28.26863748056873-0.0686374805687286
518.17.90300605836360.196993941636394
527.97.95084627190112-0.0508462719011148
538.68.498977124665850.101022875334152
548.78.657457661302510.0425423386974851
558.78.583239610995710.116760389004286
568.58.62056314979227-0.120563149792274
578.48.21548589731370.184514102686296
588.58.432958852068940.0670411479310616
598.78.638761467445010.0612385325549858
608.78.614155461187660.085844538812338
618.68.449343008996440.150656991003563
628.58.387567861673880.112432138326119
638.38.184491204828840.115508795171158
6488.0743386714048-0.0743386714047969
658.28.49796311182631-0.297963111826309
668.17.97829086426580.121709135734197
678.17.930249896612650.169750103387354
6887.998675479546730.0013245204532663
697.97.801370281075340.0986297189246578
707.98.0023517329341-0.102351732934102
7187.992858447681310.00714155231869007
7287.902055840398830.097944159601175
737.97.80734229828360.0926577017163944
7487.725817053579120.274182946420882
757.77.87245084680866-0.172450846808662
767.27.46981680806038-0.269816808060378
777.57.61571067013873-0.115710670138734
787.37.39040088955789-0.0904008895578896
7977.19427531204567-0.194275312045673
8076.803531725805340.196468274194664
8176.97821175101130.0217882489887020
827.27.29053288362532-0.0905328836253206
837.37.45343632401205-0.153436324012047
847.17.22055493492213-0.120554934922129
856.86.98773912896731-0.187739128967314
866.46.5387004752848-0.138700475284793
876.16.17509040047512-0.0750904004751244
886.56.072164947410470.427835052589532
897.77.492682931612340.207317068387664
907.98.14058440443245-0.240584404432451
917.57.92834626189136-0.428346261891358
926.97.26292412923023-0.362924129230230
936.66.68334663211139-0.0833466321113905
946.96.82586189212980.0741381078702057
957.77.440691426549320.259308573450685


Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
190.3761528699361090.7523057398722180.623847130063891
200.4550515950335380.9101031900670770.544948404966462
210.314132011877330.628264023754660.68586798812267
220.4423996209218970.8847992418437940.557600379078103
230.3509294985325260.7018589970650520.649070501467474
240.2599057372824120.5198114745648250.740094262717588
250.1968049328924120.3936098657848250.803195067107587
260.129676275111420.259352550222840.87032372488858
270.1334734531484020.2669469062968040.866526546851598
280.1080572117642150.2161144235284310.891942788235785
290.08323575939773870.1664715187954770.916764240602261
300.05747711245770650.1149542249154130.942522887542294
310.05192364014736440.1038472802947290.948076359852636
320.1106729251218070.2213458502436150.889327074878193
330.08867059555941590.1773411911188320.911329404440584
340.08646869045515330.1729373809103070.913531309544847
350.05991407640975850.1198281528195170.940085923590241
360.05710927614392480.1142185522878500.942890723856075
370.1166489749013920.2332979498027840.883351025098608
380.5855835390699060.8288329218601880.414416460930094
390.5230946285955480.9538107428089040.476905371404452
400.4573961645815990.9147923291631980.542603835418401
410.5213732694864540.9572534610270920.478626730513546
420.481380394353030.962760788706060.51861960564697
430.4209542234760290.8419084469520580.579045776523971
440.714520236096840.5709595278063210.285479763903160
450.668812145694040.662375708611920.33118785430596
460.6264807126015960.7470385747968070.373519287398404
470.7211113278575740.5577773442848510.278888672142426
480.6917258262052210.6165483475895580.308274173794779
490.70123205232590.5975358953481990.298767947674099
500.7587090801760430.4825818396479130.241290919823957
510.6998473936416770.6003052127166470.300152606358323
520.7570289224311360.4859421551377280.242971077568864
530.7104168116129650.579166376774070.289583188387035
540.6947498197209980.6105003605580040.305250180279002
550.6510863055721360.6978273888557280.348913694427864
560.768993015567450.4620139688650990.231006984432549
570.7117799370167610.5764401259664780.288220062983239
580.6724176149115720.6551647701768550.327582385088428
590.6281129361311210.7437741277377590.371887063868879
600.5676378774000480.8647242451999030.432362122599952
610.5250130606736140.9499738786527710.474986939326386
620.4570709320807490.9141418641614980.542929067919251
630.4841035014861850.968207002972370.515896498513815
640.4284242816568450.856848563313690.571575718343155
650.6700758011187750.659848397762450.329924198881225
660.6391864105161070.7216271789677860.360813589483893
670.6585538229220880.6828923541558230.341446177077912
680.6629523235355410.6740953529289190.337047676464459
690.6052401698035330.7895196603929350.394759830196467
700.5342420214753990.9315159570492010.465757978524601
710.4368706089622280.8737412179244550.563129391037772
720.3311859479476500.6623718958952990.66881405205235
730.5659970770327930.8680058459344140.434002922967207
740.6070152141848240.7859695716303510.392984785815176
750.7763258940378770.4473482119242460.223674105962123
760.6437760357804440.7124479284391130.356223964219556


Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level00OK
5% type I error level00OK
10% type I error level00OK
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2009/Nov/19/t1258652934tzxstiz0uybq3gy/10mt981258652872.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/19/t1258652934tzxstiz0uybq3gy/10mt981258652872.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Nov/19/t1258652934tzxstiz0uybq3gy/1rbsb1258652872.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/19/t1258652934tzxstiz0uybq3gy/1rbsb1258652872.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Nov/19/t1258652934tzxstiz0uybq3gy/2jroj1258652872.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/19/t1258652934tzxstiz0uybq3gy/2jroj1258652872.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Nov/19/t1258652934tzxstiz0uybq3gy/30d7o1258652872.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/19/t1258652934tzxstiz0uybq3gy/30d7o1258652872.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Nov/19/t1258652934tzxstiz0uybq3gy/4kmg71258652872.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/19/t1258652934tzxstiz0uybq3gy/4kmg71258652872.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Nov/19/t1258652934tzxstiz0uybq3gy/59pc41258652872.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/19/t1258652934tzxstiz0uybq3gy/59pc41258652872.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Nov/19/t1258652934tzxstiz0uybq3gy/6x92q1258652872.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/19/t1258652934tzxstiz0uybq3gy/6x92q1258652872.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Nov/19/t1258652934tzxstiz0uybq3gy/7sgkj1258652872.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/19/t1258652934tzxstiz0uybq3gy/7sgkj1258652872.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Nov/19/t1258652934tzxstiz0uybq3gy/83v081258652872.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/19/t1258652934tzxstiz0uybq3gy/83v081258652872.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Nov/19/t1258652934tzxstiz0uybq3gy/9qfyh1258652872.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/19/t1258652934tzxstiz0uybq3gy/9qfyh1258652872.ps (open in new window)


 
Parameters (Session):
par1 = 1 ; par2 = Include Monthly Dummies ; par3 = Linear Trend ;
 
Parameters (R input):
par1 = 1 ; par2 = Include Monthly Dummies ; par3 = Linear Trend ;
 
R code (references can be found in the software module):
library(lattice)
library(lmtest)
n25 <- 25 #minimum number of obs. for Goldfeld-Quandt test
par1 <- as.numeric(par1)
x <- t(y)
k <- length(x[1,])
n <- length(x[,1])
x1 <- cbind(x[,par1], x[,1:k!=par1])
mycolnames <- c(colnames(x)[par1], colnames(x)[1:k!=par1])
colnames(x1) <- mycolnames #colnames(x)[par1]
x <- x1
if (par3 == 'First Differences'){
x2 <- array(0, dim=c(n-1,k), dimnames=list(1:(n-1), paste('(1-B)',colnames(x),sep='')))
for (i in 1:n-1) {
for (j in 1:k) {
x2[i,j] <- x[i+1,j] - x[i,j]
}
}
x <- x2
}
if (par2 == 'Include Monthly Dummies'){
x2 <- array(0, dim=c(n,11), dimnames=list(1:n, paste('M', seq(1:11), sep ='')))
for (i in 1:11){
x2[seq(i,n,12),i] <- 1
}
x <- cbind(x, x2)
}
if (par2 == 'Include Quarterly Dummies'){
x2 <- array(0, dim=c(n,3), dimnames=list(1:n, paste('Q', seq(1:3), sep ='')))
for (i in 1:3){
x2[seq(i,n,4),i] <- 1
}
x <- cbind(x, x2)
}
k <- length(x[1,])
if (par3 == 'Linear Trend'){
x <- cbind(x, c(1:n))
colnames(x)[k+1] <- 't'
}
x
k <- length(x[1,])
df <- as.data.frame(x)
(mylm <- lm(df))
(mysum <- summary(mylm))
if (n > n25) {
kp3 <- k + 3
nmkm3 <- n - k - 3
gqarr <- array(NA, dim=c(nmkm3-kp3+1,3))
numgqtests <- 0
numsignificant1 <- 0
numsignificant5 <- 0
numsignificant10 <- 0
for (mypoint in kp3:nmkm3) {
j <- 0
numgqtests <- numgqtests + 1
for (myalt in c('greater', 'two.sided', 'less')) {
j <- j + 1
gqarr[mypoint-kp3+1,j] <- gqtest(mylm, point=mypoint, alternative=myalt)$p.value
}
if (gqarr[mypoint-kp3+1,2] < 0.01) numsignificant1 <- numsignificant1 + 1
if (gqarr[mypoint-kp3+1,2] < 0.05) numsignificant5 <- numsignificant5 + 1
if (gqarr[mypoint-kp3+1,2] < 0.10) numsignificant10 <- numsignificant10 + 1
}
gqarr
}
bitmap(file='test0.png')
plot(x[,1], type='l', main='Actuals and Interpolation', ylab='value of Actuals and Interpolation (dots)', xlab='time or index')
points(x[,1]-mysum$resid)
grid()
dev.off()
bitmap(file='test1.png')
plot(mysum$resid, type='b', pch=19, main='Residuals', ylab='value of Residuals', xlab='time or index')
grid()
dev.off()
bitmap(file='test2.png')
hist(mysum$resid, main='Residual Histogram', xlab='values of Residuals')
grid()
dev.off()
bitmap(file='test3.png')
densityplot(~mysum$resid,col='black',main='Residual Density Plot', xlab='values of Residuals')
dev.off()
bitmap(file='test4.png')
qqnorm(mysum$resid, main='Residual Normal Q-Q Plot')
qqline(mysum$resid)
grid()
dev.off()
(myerror <- as.ts(mysum$resid))
bitmap(file='test5.png')
dum <- cbind(lag(myerror,k=1),myerror)
dum
dum1 <- dum[2:length(myerror),]
dum1
z <- as.data.frame(dum1)
z
plot(z,main=paste('Residual Lag plot, lowess, and regression line'), ylab='values of Residuals', xlab='lagged values of Residuals')
lines(lowess(z))
abline(lm(z))
grid()
dev.off()
bitmap(file='test6.png')
acf(mysum$resid, lag.max=length(mysum$resid)/2, main='Residual Autocorrelation Function')
grid()
dev.off()
bitmap(file='test7.png')
pacf(mysum$resid, lag.max=length(mysum$resid)/2, main='Residual Partial Autocorrelation Function')
grid()
dev.off()
bitmap(file='test8.png')
opar <- par(mfrow = c(2,2), oma = c(0, 0, 1.1, 0))
plot(mylm, las = 1, sub='Residual Diagnostics')
par(opar)
dev.off()
if (n > n25) {
bitmap(file='test9.png')
plot(kp3:nmkm3,gqarr[,2], main='Goldfeld-Quandt test',ylab='2-sided p-value',xlab='breakpoint')
grid()
dev.off()
}
load(file='createtable')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a, 'Multiple Linear Regression - Estimated Regression Equation', 1, TRUE)
a<-table.row.end(a)
myeq <- colnames(x)[1]
myeq <- paste(myeq, '[t] = ', sep='')
for (i in 1:k){
if (mysum$coefficients[i,1] > 0) myeq <- paste(myeq, '+', '')
myeq <- paste(myeq, mysum$coefficients[i,1], sep=' ')
if (rownames(mysum$coefficients)[i] != '(Intercept)') {
myeq <- paste(myeq, rownames(mysum$coefficients)[i], sep='')
if (rownames(mysum$coefficients)[i] != 't') myeq <- paste(myeq, '[t]', sep='')
}
}
myeq <- paste(myeq, ' + e[t]')
a<-table.row.start(a)
a<-table.element(a, myeq)
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,hyperlink('http://www.xycoon.com/ols1.htm','Multiple Linear Regression - Ordinary Least Squares',''), 6, TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'Variable',header=TRUE)
a<-table.element(a,'Parameter',header=TRUE)
a<-table.element(a,'S.D.',header=TRUE)
a<-table.element(a,'T-STAT<br />H0: parameter = 0',header=TRUE)
a<-table.element(a,'2-tail p-value',header=TRUE)
a<-table.element(a,'1-tail p-value',header=TRUE)
a<-table.row.end(a)
for (i in 1:k){
a<-table.row.start(a)
a<-table.element(a,rownames(mysum$coefficients)[i],header=TRUE)
a<-table.element(a,mysum$coefficients[i,1])
a<-table.element(a, round(mysum$coefficients[i,2],6))
a<-table.element(a, round(mysum$coefficients[i,3],4))
a<-table.element(a, round(mysum$coefficients[i,4],6))
a<-table.element(a, round(mysum$coefficients[i,4]/2,6))
a<-table.row.end(a)
}
a<-table.end(a)
table.save(a,file='mytable2.tab')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a, 'Multiple Linear Regression - Regression Statistics', 2, TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'Multiple R',1,TRUE)
a<-table.element(a, sqrt(mysum$r.squared))
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'R-squared',1,TRUE)
a<-table.element(a, mysum$r.squared)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'Adjusted R-squared',1,TRUE)
a<-table.element(a, mysum$adj.r.squared)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'F-TEST (value)',1,TRUE)
a<-table.element(a, mysum$fstatistic[1])
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'F-TEST (DF numerator)',1,TRUE)
a<-table.element(a, mysum$fstatistic[2])
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'F-TEST (DF denominator)',1,TRUE)
a<-table.element(a, mysum$fstatistic[3])
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'p-value',1,TRUE)
a<-table.element(a, 1-pf(mysum$fstatistic[1],mysum$fstatistic[2],mysum$fstatistic[3]))
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'Multiple Linear Regression - Residual Statistics', 2, TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'Residual Standard Deviation',1,TRUE)
a<-table.element(a, mysum$sigma)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'Sum Squared Residuals',1,TRUE)
a<-table.element(a, sum(myerror*myerror))
a<-table.row.end(a)
a<-table.end(a)
table.save(a,file='mytable3.tab')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a, 'Multiple Linear Regression - Actuals, Interpolation, and Residuals', 4, TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'Time or Index', 1, TRUE)
a<-table.element(a, 'Actuals', 1, TRUE)
a<-table.element(a, 'Interpolation<br />Forecast', 1, TRUE)
a<-table.element(a, 'Residuals<br />Prediction Error', 1, TRUE)
a<-table.row.end(a)
for (i in 1:n) {
a<-table.row.start(a)
a<-table.element(a,i, 1, TRUE)
a<-table.element(a,x[i])
a<-table.element(a,x[i]-mysum$resid[i])
a<-table.element(a,mysum$resid[i])
a<-table.row.end(a)
}
a<-table.end(a)
table.save(a,file='mytable4.tab')
if (n > n25) {
a<-table.start()
a<-table.row.start(a)
a<-table.element(a,'Goldfeld-Quandt test for Heteroskedasticity',4,TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'p-values',header=TRUE)
a<-table.element(a,'Alternative Hypothesis',3,header=TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'breakpoint index',header=TRUE)
a<-table.element(a,'greater',header=TRUE)
a<-table.element(a,'2-sided',header=TRUE)
a<-table.element(a,'less',header=TRUE)
a<-table.row.end(a)
for (mypoint in kp3:nmkm3) {
a<-table.row.start(a)
a<-table.element(a,mypoint,header=TRUE)
a<-table.element(a,gqarr[mypoint-kp3+1,1])
a<-table.element(a,gqarr[mypoint-kp3+1,2])
a<-table.element(a,gqarr[mypoint-kp3+1,3])
a<-table.row.end(a)
}
a<-table.end(a)
table.save(a,file='mytable5.tab')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a,'Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity',4,TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'Description',header=TRUE)
a<-table.element(a,'# significant tests',header=TRUE)
a<-table.element(a,'% significant tests',header=TRUE)
a<-table.element(a,'OK/NOK',header=TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'1% type I error level',header=TRUE)
a<-table.element(a,numsignificant1)
a<-table.element(a,numsignificant1/numgqtests)
if (numsignificant1/numgqtests < 0.01) dum <- 'OK' else dum <- 'NOK'
a<-table.element(a,dum)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'5% type I error level',header=TRUE)
a<-table.element(a,numsignificant5)
a<-table.element(a,numsignificant5/numgqtests)
if (numsignificant5/numgqtests < 0.05) dum <- 'OK' else dum <- 'NOK'
a<-table.element(a,dum)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'10% type I error level',header=TRUE)
a<-table.element(a,numsignificant10)
a<-table.element(a,numsignificant10/numgqtests)
if (numsignificant10/numgqtests < 0.1) dum <- 'OK' else dum <- 'NOK'
a<-table.element(a,dum)
a<-table.row.end(a)
a<-table.end(a)
table.save(a,file='mytable6.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