Home » date » 2008 » Nov » 23 »

Q3: aangepast consumentenvertrouwen

*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, 23 Nov 2008 06:07:02 -0700
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2008/Nov/23/t1227445789sebr1kqg304kg13.htm/, Retrieved Sun, 23 Nov 2008 13:09:49 +0000
 
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/2008/Nov/23/t1227445789sebr1kqg304kg13.htm/},
    year = {2008},
}
@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 = {2008},
    note = {{ISBN} 3-900051-07-0},
    url = {http://www.R-project.org},
}
 
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
 
Feedback Forum:

Post a new message
 
Original text written by user:
 
IsPrivate?
No (this computation is public)
 
User-defined keywords:
 
Dataseries X:
» Textbox « » Textfile « » CSV «
28 30 32 31 32 34 32 35 29 33 33 34 32 27 26 22 22 23 23 19 15 5 1 11 18 20 21 19 20 19 18 16 16 16 15 11 10 6 1 8 10 9 6 8 14 4 13 13 16 18 16 15 13 19 15 17 17 13 12 13 13 16 17 14 8 8 8 9 5 11 10 14 18 17 14 15 13 17 17 17 17 21 20 11 18 20 18 21 21 20 18 17 17 18 11 15 13 16 16 12 10 8 6 8 10
 
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'Sir Ronald Aylmer Fisher' @ 193.190.124.24


Multiple Linear Regression - Estimated Regression Equation
X[t] = + 21.9121621621622 + 2.57757757757759M1[t] + 3.1453953953954M2[t] + 2.26876876876877M3[t] + 1.94769769769770M4[t] + 1.18218218218219M5[t] + 2.19444444444445M6[t] + 0.762262262262266M7[t] + 1.21896896896897M8[t] + 0.67567567567568M9[t] -0.371746746746742M10[t] -0.99837337337337M11[t] -0.123373373373373t + e[t]


Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STAT
H0: parameter = 0
2-tail p-value1-tail p-value
(Intercept)21.91216216216222.7299118.026700
M12.577577577577593.3667690.76560.4458780.222939
M23.14539539539543.36610.93440.3525270.176263
M32.268768768768773.365580.67410.5019320.250966
M41.947697697697703.3652090.57880.5641560.282078
M51.182182182182193.3649860.35130.7261530.363076
M62.194444444444453.3649120.65220.5159270.257964
M70.7622622622622663.3649860.22650.8212940.410647
M81.218968968968973.3652090.36220.7180130.359007
M90.675675675675683.365580.20080.8413290.420664
M10-0.3717467467467423.462754-0.10740.914740.45737
M11-0.998373373373373.462538-0.28830.7737380.386869
t-0.1233733733733730.022361-5.517300


Multiple Linear Regression - Regression Statistics
Multiple R0.522001199043027
R-squared0.272485251802358
Adjusted R-squared0.177592023776579
F-TEST (value)2.87149312412823
F-TEST (DF numerator)12
F-TEST (DF denominator)92
p-value0.00211574077367216
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation6.92493099916933
Sum Squared Residuals4411.82957957958


Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolation
Forecast
Residuals
Prediction Error
12824.36636636636633.63363363363368
23024.81081081081085.18918918918919
33223.81081081081088.18918918918919
43123.36636636636647.63363363363363
53222.47747747747759.52252252252252
63423.366366366366410.6336336336336
73221.810810810810810.1891891891892
83522.144144144144112.8558558558559
92921.47747747747757.52252252252252
103320.306681681681712.6933183183183
113319.556681681681713.4433183183183
123420.431681681681713.5683183183183
133222.88588588588599.1141141141141
142723.33033033033033.66966966966967
152622.33033033033033.66966966966967
162221.88588588588590.114114114114112
172220.9969969969971.003003003003
182321.88588588588591.11411411411411
192320.33033033033032.66966966966967
201920.6636636636637-1.66366366366367
211519.996996996997-4.996996996997
22518.8262012012012-13.8262012012012
23118.0762012012012-17.0762012012012
241118.9512012012012-7.9512012012012
251821.4054054054054-3.40540540540541
262021.8498498498498-1.84984984984985
272120.84984984984980.150150150150148
281920.4054054054054-1.40540540540541
292019.51651651651650.483483483483482
301920.4054054054054-1.40540540540541
311818.8498498498498-0.849849849849851
321619.1831831831832-3.18318318318318
331618.5165165165165-2.51651651651652
341617.3457207207207-1.34572072072072
351516.5957207207207-1.59572072072072
361117.4707207207207-6.47072072072072
371019.9249249249249-9.92492492492493
38620.3693693693694-14.3693693693694
39119.3693693693694-18.3693693693694
40818.9249249249249-10.9249249249249
411018.0360360360360-8.03603603603604
42918.9249249249249-9.92492492492493
43617.3693693693694-11.3693693693694
44817.7027027027027-9.7027027027027
451417.0360360360360-3.03603603603603
46415.8652402402402-11.8652402402402
471315.1152402402402-2.11524024024024
481315.9902402402402-2.99024024024023
491618.4444444444444-2.44444444444445
501818.8888888888889-0.888888888888889
511617.8888888888889-1.88888888888889
521517.4444444444444-2.44444444444444
531316.5555555555556-3.55555555555556
541917.44444444444441.55555555555556
551515.8888888888889-0.888888888888888
561716.22222222222220.777777777777778
571715.55555555555561.44444444444444
581314.3847597597598-1.38475975975976
591213.6347597597598-1.63475975975976
601314.5097597597598-1.50975975975975
611316.9639639639640-3.96396396396397
621617.4084084084084-1.40840840840841
631716.40840840840840.591591591591589
641415.9639639639640-1.96396396396396
65815.0750750750751-7.07507507507508
66815.9639639639640-7.96396396396397
67814.4084084084084-6.40840840840841
68914.7417417417417-5.74174174174174
69514.0750750750751-9.07507507507508
701112.9042792792793-1.90427927927928
711012.1542792792793-2.15427927927928
721413.02927927927930.970720720720727
731815.48348348348352.51651651651651
741715.92792792792791.07207207207207
751414.9279279279279-0.927927927927928
761514.48348348348350.516516516516517
771313.5945945945946-0.594594594594594
781714.48348348348352.51651651651652
791712.92792792792794.07207207207207
801713.26126126126133.73873873873874
811712.59459459459464.40540540540541
822111.42379879879889.5762012012012
832010.67379879879889.3262012012012
841111.5487987987988-0.548798798798796
851814.0030030030033.99699699699699
862014.44744744744745.55255255255255
871813.44744744744744.55255255255255
882113.0030030030037.996996996997
892112.11411411411418.88588588588589
902013.0030030030036.996996996997
911811.44744744744746.55255255255255
921711.78078078078085.21921921921922
931711.11411411411415.88588588588589
94189.943318318318328.05668168168168
95119.193318318318321.80668168168168
961510.06831831831834.93168168168169
971312.52252252252250.477477477477473
981612.96696696696703.03303303303304
991611.96696696696704.03303303303304
1001211.52252252252250.477477477477479
1011010.6336336336336-0.633633633633635
102811.5225225225225-3.52252252252252
10369.96696696696696-3.96696696696697
104810.3003003003003-2.3003003003003
105109.633633633633640.366366366366363


Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
160.3651497885256430.7302995770512870.634850211474356
170.3328528050143950.665705610028790.667147194985605
180.3074172919808950.614834583961790.692582708019105
190.2387471314916540.4774942629833070.761252868508346
200.3462365675899130.6924731351798270.653763432410087
210.3255085608150230.6510171216300450.674491439184977
220.8137118231497820.3725763537004360.186288176850218
230.9792193545209870.04156129095802570.0207806454790129
240.9805733791356080.03885324172878330.0194266208643917
250.9776660957572920.0446678084854150.0223339042427075
260.9798689339614020.04026213207719550.0201310660385978
270.9827831980370180.03443360392596470.0172168019629824
280.982600037582670.03479992483465990.0173999624173299
290.9849764534871570.03004709302568510.0150235465128425
300.9825525782695430.03489484346091410.0174474217304571
310.9814545775091930.03709084498161360.0185454224908068
320.975784825080630.04843034983874010.0242151749193701
330.9743307911907870.05133841761842550.0256692088092128
340.9774190239627620.04516195207447660.0225809760372383
350.9800341015853710.03993179682925740.0199658984146287
360.9702298380098050.05954032398038970.0297701619901949
370.9587937130580040.08241257388399110.0412062869419956
380.9638815021878720.0722369956242560.036118497812128
390.9885350076262620.02292998474747640.0114649923737382
400.9861470524422910.02770589511541760.0138529475577088
410.9797565789408520.04048684211829690.0202434210591485
420.9734464828266520.0531070343466950.0265535171733475
430.9699215655675720.0601568688648560.030078434432428
440.9633148988034270.07337020239314640.0366851011965732
450.9673990386912460.06520192261750780.0326009613087539
460.981351837343340.03729632531332130.0186481626566607
470.9861321332222970.02773573355540650.0138678667777033
480.9856856184579140.02862876308417250.0143143815420863
490.9884929755970480.02301404880590320.0115070244029516
500.9925142611184280.01497147776314390.00748573888157193
510.9934046856661430.01319062866771360.0065953143338568
520.9930212583105570.01395748337888690.00697874168944345
530.9906644483997470.01867110320050560.00933555160025281
540.9932850844781330.01342983104373310.00671491552186654
550.992454360245840.01509127950832010.00754563975416006
560.9932212460106020.01355750797879530.00677875398939763
570.9945185254685830.01096294906283310.00548147453141654
580.9940032861557560.01199342768848720.00599671384424361
590.9920200296050380.01595994078992410.00797997039496205
600.988931098107060.02213780378588160.0110689018929408
610.9847519809940530.03049603801189480.0152480190059474
620.9805226078922960.03895478421540900.0194773921077045
630.976960601997860.04607879600428030.0230393980021401
640.9689548124003680.06209037519926360.0310451875996318
650.964486369297950.07102726140409920.0355136307020496
660.9629458426824810.07410831463503740.0370541573175187
670.9588767347651360.08224653046972830.0411232652348642
680.9546961117167080.09060777656658310.0453038882832916
690.979734983824080.04053003235183820.0202650161759191
700.9916846889932520.01663062201349630.00831531100674813
710.9949472298950160.01010554020996840.00505277010498422
720.9929777328749550.01404453425008960.00702226712504479
730.9903582150669770.01928356986604660.0096417849330233
740.9896102292924040.02077954141519150.0103897707075958
750.9923193021557770.01536139568844660.00768069784422331
760.9938996143439680.01220077131206300.00610038565603151
770.9973871886726350.005225622654730290.00261281132736515
780.9966769759234520.006646048153096380.00332302407654819
790.9948328164927660.01033436701446790.00516718350723397
800.9927896533627660.01442069327446760.00721034663723381
810.9932765160227260.01344696795454850.00672348397727425
820.9911652945790670.0176694108418660.008834705420933
830.985121188739320.02975762252136030.0148788112606802
840.9977884646910850.00442307061782950.00221153530891475
850.9953733842656420.009253231468716480.00462661573435824
860.993429758581620.01314048283676050.00657024141838025
870.9991303237115620.001739352576875760.00086967628843788
880.9960809272454270.007838145509147070.00391907275457353
890.982174108557220.03565178288556020.0178258914427801


Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level60.0810810810810811NOK
5% type I error level540.72972972972973NOK
10% type I error level670.905405405405405NOK
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/23/t1227445789sebr1kqg304kg13/10ekwc1227445611.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/23/t1227445789sebr1kqg304kg13/10ekwc1227445611.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/23/t1227445789sebr1kqg304kg13/1ewrq1227445610.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/23/t1227445789sebr1kqg304kg13/1ewrq1227445610.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/23/t1227445789sebr1kqg304kg13/2pfzl1227445610.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/23/t1227445789sebr1kqg304kg13/2pfzl1227445610.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/23/t1227445789sebr1kqg304kg13/3kf4u1227445611.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/23/t1227445789sebr1kqg304kg13/3kf4u1227445611.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/23/t1227445789sebr1kqg304kg13/4j5xa1227445611.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/23/t1227445789sebr1kqg304kg13/4j5xa1227445611.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/23/t1227445789sebr1kqg304kg13/5vyao1227445611.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/23/t1227445789sebr1kqg304kg13/5vyao1227445611.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/23/t1227445789sebr1kqg304kg13/6hkrf1227445611.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/23/t1227445789sebr1kqg304kg13/6hkrf1227445611.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/23/t1227445789sebr1kqg304kg13/789kr1227445611.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/23/t1227445789sebr1kqg304kg13/789kr1227445611.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/23/t1227445789sebr1kqg304kg13/8mdp21227445611.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/23/t1227445789sebr1kqg304kg13/8mdp21227445611.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/23/t1227445789sebr1kqg304kg13/97iyy1227445611.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/23/t1227445789sebr1kqg304kg13/97iyy1227445611.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