Home » date » 2010 » Dec » 12 »

*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: Sun, 12 Dec 2010 18:41:38 +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/Dec/12/t129217917874iy2gx2d6b5uzn.htm/, Retrieved Sun, 12 Dec 2010 19:39:47 +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/2010/Dec/12/t129217917874iy2gx2d6b5uzn.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:
 
Dataseries X:
» Textbox « » Textfile « » CSV «
31514 -9 8.3 1.2 27071 -13 8.2 1.7 29462 -18 8 1.8 26105 -11 7.9 1.5 22397 -9 7.6 1 23843 -10 7.6 1.6 21705 -13 8.3 1.5 18089 -11 8.4 1.8 20764 -5 8.4 1.8 25316 -15 8.4 1.6 17704 -6 8.4 1.9 15548 -6 8.6 1.7 28029 -3 8.9 1.6 29383 -1 8.8 1.3 36438 -3 8.3 1.1 32034 -4 7.5 1.9 22679 -6 7.2 2.6 24319 0 7.4 2.3 18004 -4 8.8 2.4 17537 -2 9.3 2.2 20366 -2 9.3 2 22782 -6 8.7 2.9 19169 -7 8.2 2.6 13807 -6 8.3 2.3 29743 -6 8.5 2.3 25591 -3 8.6 2.6 29096 -2 8.5 3.1 26482 -5 8.2 2.8 22405 -11 8.1 2.5 27044 -11 7.9 2.9 17970 -11 8.6 3.1 18730 -10 8.7 3.1 19684 -14 8.7 3.2 19785 -8 8.5 2.5 18479 -9 8.4 2.6 10698 -5 8.5 2.9 31956 -1 8.7 2.6 29506 -2 8.7 2.4 34506 -5 8.6 1.7 27165 -4 8.5 2 26736 -6 8.3 2.2 23691 -2 8 1.9 18157 -2 8.2 1.6 17328 -2 8.1 1.6 18205 -2 8.1 1.2 20995 2 8 1.2 17382 1 7.9 1.5 9367 -8 7.9 1.6 31124 -1 8 1.7 26551 1 8 1.8 30651 -1 7.9 1.8 25859 2 8 1.8 25100 2 7.7 1.3 25778 1 7.2 1.3 20418 -1 7.5 1.4 18688 -2 7.3 1.1 20424 -2 7 1.5 24776 -1 7 2.2 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 time6 seconds
R Server'RServer@AstonUniversity' @ vre.aston.ac.uk
R Framework
error message
The field 'Names of X columns' contains a hard return which cannot be interpreted.
Please, resubmit your request without hard returns in the 'Names of X columns'.


Multiple Linear Regression - Estimated Regression Equation
Inschrijvingen[t] = + 26741.6979848119 + 107.4534255309Consumentenvertrouwen[t] -324.908031393456Totaal_Werkloosheid[t] + 96.7043019426652`Algemene_index `[t] -3.42800599544188t + e[t]


Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STAT
H0: parameter = 0
2-tail p-value1-tail p-value
(Intercept)26741.69798481198862.9008843.01730.0033260.001663
Consumentenvertrouwen107.453425530997.9421981.09710.2755530.137776
Totaal_Werkloosheid-324.9080313934561006.381801-0.32280.7475680.373784
`Algemene_index `96.7043019426652450.2464620.21480.830430.415215
t-3.4280059954418823.614732-0.14520.884910.442455


Multiple Linear Regression - Regression Statistics
Multiple R0.132556392237079
R-squared0.0175711971229105
Adjusted R-squared-0.0265829063771836
F-TEST (value)0.397951622387104
F-TEST (DF numerator)4
F-TEST (DF denominator)89
p-value0.809629151055746
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation5774.00203014016
Sum Squared Residuals2967179850.52158


Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolation
Forecast
Residuals
Prediction Error
13151423190.49765080398323.5023491961
22707122838.09889679554232.90110320447
32946222372.05579961857089.94420038145
42610523124.2812848962980.71871510405
52239723384.880388409-987.880388409016
62384323332.0215380483510.978461951727
72170522769.1272032904-1064.12720329044
81808922977.1265358003-4888.12653580026
92076423618.4190829902-2854.41908299022
102531622521.11596129722794.88403870276
111770423513.7800756627-5809.7800756627
121554823426.029603-7878.02960300003
132802923637.8190339854391.18096601501
142938323852.77739160795530.22260839211
153643823777.555689858812660.4443101412
163203424003.96412500148030.0358749986
172267923950.7946887221-1271.79468872206
182431924498.0943390505-179.094339050527
191800423619.6518171749-5615.65181717491
201753723649.335786156-6112.33578615601
212036623626.566919772-3260.56691977203
222278223475.3039022375-693.303902237466
231916923497.8651958251-4328.86519582505
241380723540.3885216384-9733.38852163837
252974323471.97890936426271.02109063577
262559123787.43166740491803.56833259506
272909623972.30004105115123.69995894892
282648223714.97287729822767.02712270182
292240523070.3038306739-665.30383067388
302704423170.53915173423873.4608482658
311797022959.0163841519-4989.01638415187
321873023030.551000548-4300.55100054798
331968422606.9797226232-2922.9797226232
341978523245.560864732-3460.56086473199
351847923176.8406665393-4697.84066653926
361069823599.7468501109-12901.7468501109
373195623932.13964937758023.86035062246
382950623801.91735746275704.08264253734
393450623440.92686665411065.073133346
402716523606.45437991163558.5456200884
412673623472.44198952163263.55801047841
422369123967.288804485-276.288804484982
431815723869.8679016281-5712.86790162805
441732823898.930698772-6570.93069877195
451820523856.8209719994-5651.82097199945
462099524315.6974712669-3320.69747126695
471738224266.3181334628-6884.31813346275
48936723305.4797278835-13938.4797278835
493112424031.40532765937092.59467234075
502655124252.55460291992298.44539708012
513065124066.7105490026584.28945099802
522585924353.15201645991505.8479835401
532510024398.8442689112701.155731088841
542577824450.41685308151327.58314691845
552041824144.2800168005-3726.28001680053
561868824069.3689009701-5381.36890097008
572042424202.0950251697-3778.09502516974
582477624373.8134560651402.186543934932
591981423685.9044827132-3871.90448271319
601273824066.6494329512-11328.6494329512
613156623854.50549353177711.49450646833
623011124248.08980060195862.91019939811
633001924419.49764557865599.50235442139
643193424096.87828962847837.12171037158
652582624072.72014393191753.27985606812
662683523782.44465548293052.55534451714
672020523183.8905909477-2978.89059094773
681778923282.0356787641-5493.03567876407
692052023633.1481665821-3113.14816658207
702251822887.6741336214-369.674133621375
711557222289.7245262812-6717.7245262812
721150921818.1116833037-10309.1116833037
732544722063.01308926523383.98691073481
742409021493.6172509512596.38274904896
752778621364.47365243016421.52634756986
762619521673.42490691454521.57509308547
772051622025.6160881265-1509.61608812651
782275922029.4576931628729.542306837247
791902821848.0249095572-2820.02490955719
801697122511.3697222169-5540.36972221686
812003622534.241601723-2498.24160172304
822248522507.6826368639-22.6826368639232
831873022806.1953536787-4076.19535367868
841453822174.2187282484-7636.21872824842
852756122102.32960341775458.67039658226
862598522076.08122447723908.91877552278
873467022449.245977764912220.7540222351
883206623057.7371358979008.26286410305
892718622662.86656263644523.13343736362
902958623076.10231601376509.89768398627
912135923037.3251661596-1678.32516615958
922155323327.246146174-1774.24614617404
931957323446.8223276229-3873.82232762289
942425623797.9348154409458.065184559101


Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
80.05551679725756830.1110335945151370.944483202742432
90.03437042603177170.06874085206354340.965629573968228
100.08212569281395730.1642513856279150.917874307186043
110.03803477123095340.07606954246190680.961965228769047
120.01925463601273870.03850927202547750.980745363987261
130.1460993970812570.2921987941625140.853900602918743
140.1833192618762570.3666385237525140.816680738123743
150.442194965743010.884389931486020.55780503425699
160.6484004092653180.7031991814693650.351599590734682
170.5632621814192920.8734756371614160.436737818580708
180.4768414929919330.9536829859838660.523158507008067
190.4004538020765050.800907604153010.599546197923495
200.3347294720254950.669458944050990.665270527974505
210.2651119674903190.5302239349806370.734888032509681
220.2716113548824690.5432227097649370.728388645117531
230.2227937509582370.4455875019164750.777206249041763
240.3025280832683570.6050561665367150.697471916731643
250.3800027385394440.7600054770788870.619997261460556
260.3559007749381060.7118015498762120.644099225061894
270.4610851359613130.9221702719226270.538914864038687
280.417703935534480.835407871068960.58229606446552
290.3612922482305550.7225844964611090.638707751769445
300.3335459717762590.6670919435525170.666454028223741
310.2908458544490150.581691708898030.709154145550985
320.2427281771652180.4854563543304360.757271822834782
330.1941717117580940.3883434235161890.805828288241906
340.1691304901699770.3382609803399540.830869509830023
350.1517850762219390.3035701524438790.84821492377806
360.3109433536256020.6218867072512040.689056646374398
370.395728060296770.791456120593540.60427193970323
380.384855844402510.7697116888050210.61514415559749
390.4668362254730120.9336724509460240.533163774526988
400.4363282335338680.8726564670677360.563671766466132
410.4118113389647440.8236226779294880.588188661035256
420.4110937604626970.8221875209253950.588906239537303
430.4878793135961590.9757586271923180.512120686403841
440.5317553083237970.9364893833524060.468244691676203
450.5347693735931590.9304612528136810.465230626406841
460.4910594243073890.9821188486147770.508940575692611
470.4951986785853790.9903973571707570.504801321414621
480.7141319961812270.5717360076375460.285868003818773
490.7581670991200490.4836658017599020.241832900879951
500.720925444765510.558149110468980.27907455523449
510.7575422744070590.4849154511858810.242457725592941
520.7181034045993580.5637931908012840.281896595400642
530.672017425046670.6559651499066590.32798257495333
540.6297669856789720.7404660286420560.370233014321028
550.5768897062805170.8462205874389650.423110293719483
560.5396988590957580.9206022818084840.460301140904242
570.4874288849278530.9748577698557060.512571115072147
580.4285734984875850.857146996975170.571426501512415
590.3788479489994150.7576958979988290.621152051000585
600.5590653441878820.8818693116242360.440934655812118
610.6247467668195490.7505064663609020.375253233180451
620.6248700922087220.7502598155825560.375129907791278
630.6256838190298360.7486323619403270.374316180970164
640.7387242866366560.5225514267266880.261275713363344
650.7412959335480220.5174081329039560.258704066451978
660.8089784027466930.3820431945066140.191021597253307
670.7580516906832820.4838966186334360.241948309316718
680.7104084970154040.5791830059691930.289591502984596
690.6578443013405080.6843113973189850.342155698659492
700.6604897991562410.6790204016875190.339510200843759
710.5963705997271260.8072588005457480.403629400272874
720.8618842311944010.2762315376111970.138115768805599
730.845743781568240.308512436863520.15425621843176
740.8314174170763370.3371651658473260.168582582923663
750.8001110128186970.3997779743626060.199888987181303
760.7411228173242840.5177543653514330.258877182675716
770.7275842795962470.5448314408075060.272415720403753
780.6584230827619630.6831538344760740.341576917238037
790.5689559817697310.8620880364605370.431044018230269
800.5268151026342920.9463697947314160.473184897365708
810.4246875275041170.8493750550082340.575312472495883
820.4213559651862670.8427119303725330.578644034813733
830.3282962059167240.6565924118334470.671703794083276
840.9455636079088180.1088727841823640.0544363920911822
850.9141754898535060.1716490202929880.085824510146494
860.854709718592950.2905805628140980.145290281407049


Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level00OK
5% type I error level10.0126582278481013OK
10% type I error level30.0379746835443038OK
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Dec/12/t129217917874iy2gx2d6b5uzn/106a5o1292179287.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/12/t129217917874iy2gx2d6b5uzn/106a5o1292179287.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/12/t129217917874iy2gx2d6b5uzn/1h9qc1292179287.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/12/t129217917874iy2gx2d6b5uzn/1h9qc1292179287.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/12/t129217917874iy2gx2d6b5uzn/2h9qc1292179287.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/12/t129217917874iy2gx2d6b5uzn/2h9qc1292179287.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/12/t129217917874iy2gx2d6b5uzn/3907f1292179287.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/12/t129217917874iy2gx2d6b5uzn/3907f1292179287.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/12/t129217917874iy2gx2d6b5uzn/4907f1292179287.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/12/t129217917874iy2gx2d6b5uzn/4907f1292179287.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/12/t129217917874iy2gx2d6b5uzn/5907f1292179287.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/12/t129217917874iy2gx2d6b5uzn/5907f1292179287.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/12/t129217917874iy2gx2d6b5uzn/6kspi1292179287.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/12/t129217917874iy2gx2d6b5uzn/6kspi1292179287.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/12/t129217917874iy2gx2d6b5uzn/7vjol1292179287.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/12/t129217917874iy2gx2d6b5uzn/7vjol1292179287.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/12/t129217917874iy2gx2d6b5uzn/8vjol1292179287.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/12/t129217917874iy2gx2d6b5uzn/8vjol1292179287.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/12/t129217917874iy2gx2d6b5uzn/9vjol1292179287.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/12/t129217917874iy2gx2d6b5uzn/9vjol1292179287.ps (open in new window)


 
Parameters (Session):
par1 = 1 ; par2 = Do not include Seasonal Dummies ; par3 = Linear Trend ;
 
Parameters (R input):
par1 = 1 ; par2 = Do not include Seasonal 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