Home » date » 2008 » Dec » 19 »

werkloosheid/invoer

*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: Fri, 19 Dec 2008 13:20:41 -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/Dec/19/t12297183593l8hridc1uld4z4.htm/, Retrieved Fri, 19 Dec 2008 21:26:09 +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/2008/Dec/19/t12297183593l8hridc1uld4z4.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},
}
 
Original text written by user:
 
IsPrivate?
No (this computation is public)
 
User-defined keywords:
 
Dataseries X:
» Textbox « » Textfile « » CSV «
180144 11554.5 173666 13182.1 165688 14800.1 161570 12150.7 156145 14478.2 153730 13253.9 182698 12036.8 200765 12653.2 176512 14035.4 166618 14571.4 158644 15400.9 159585 14283.2 163095 14485.3 159044 14196.3 155511 15559.1 153745 13767.4 150569 14634 150605 14381.1 179612 12509.9 194690 12122.3 189917 13122.3 184128 13908.7 175335 13456.5 179566 12441.6 181140 12953 177876 13057.2 175041 14350.1 169292 13830.2 166070 13755.5 166972 13574.4 206348 12802.6 215706 11737.3 202108 13850.2 195411 15081.8 193111 13653.3 195198 14019.1 198770 13962 194163 13768.7 190420 14747.1 189733 13858.1 186029 13188 191531 13693.1 232571 12970 243477 11392.8 227247 13985.2 217859 14994.7 208679 13584.7 213188 14257.8 216234 13553.4 213586 14007.3 209465 16535.8 204045 14721.4 200237 13664.6 203666 16405.9 241476 13829.4 260307 13735.6 243324 15870.5 244460 15962.4 233575 15744.1 237217 16083.7 235243 14863.9 230354 15533.1 227184 17473.1 221678 15925.5 217142 15573.7 219452 17495 256446 14155.8 265845 14913.9 248624 17250.4 241114 15879.8 229245 17647.8 231805 17749.9 219277 17111.8 219313 16934.8 212610 20280 214771 16238.2 211142 17896.1 211457 18089.3 240048 15660 240636 16162.4 230580 17850.1 208795 18520.4 197922 18524.7 194596 16843.7
 
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'George Udny Yule' @ 72.249.76.132


Multiple Linear Regression - Estimated Regression Equation
werkloosheid[t] = + 54343.5099974573 + 9.75359749825224invoer[t] + 7560.87276566773M1[t] + 801.444384644583M2[t] -21987.3490714503M3[t] -6532.03042540236M4[t] -14220.7530266572M5[t] -17939.9916119470M6[t] + 34614.6454133251M7[t] + 48098.8934247995M8[t] + 14910.8927647497M9[t] + 2232.34191230902M10[t] -5342.73470906037M11[t] + e[t]


Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STAT
H0: parameter = 0
2-tail p-value1-tail p-value
(Intercept)54343.509997457324161.8496512.24910.0276060.013803
invoer9.753597498252241.5024856.491600
M17560.8727656677311871.6455980.63690.5262480.263124
M2801.44438464458311819.5791760.06780.946130.473065
M3-21987.349071450311897.416206-1.84810.0687560.034378
M4-6532.0304254023611823.311059-0.55250.5823610.291181
M5-14220.753026657211782.881907-1.20690.2314770.115738
M6-17939.991611947011773.647729-1.52370.1320150.066008
M734614.645413325112036.3271072.87580.0053160.002658
M848098.893424799512095.0737623.97670.0001668.3e-05
M914910.892764749711770.9243631.26680.2093820.104691
M102232.3419123090211791.2936840.18930.8503810.425191
M11-5342.7347090603711781.412188-0.45350.651580.32579


Multiple Linear Regression - Regression Statistics
Multiple R0.722333110912724
R-squared0.521765123120854
Adjusted R-squared0.440936693225787
F-TEST (value)6.45521784597598
F-TEST (DF numerator)12
F-TEST (DF denominator)71
p-value1.31136665526554e-07
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation22021.0854580189
Sum Squared Residuals34429902537.2053


Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolation
Forecast
Residuals
Prediction Error
1180144174602.3250566815541.67494331886
2173666183717.851963813-10051.8519638128
3165688176710.37925989-11022.3792598900
4161570166324.516694069-4754.51669406849
5156145181337.292269996-25192.2922699958
6153730165676.724267596-11946.7242675957
7182698206360.257777745-23662.2577777450
8200765225856.623287142-25091.6232871421
9176512206150.045089177-29638.0450891766
10166618198699.422495799-32081.422495799
11158644199214.95499923-40570.9549992299
12159585193656.093784494-34071.0937844938
13163095203188.168604558-40093.1686045583
14159044193609.95054654-34565.9505465402
15155511184113.359761064-28602.3597610635
16153745182093.157769493-28348.1577694929
17150569182856.902760223-32287.9027602235
18150605176670.979367626-26065.9793676257
19179612210974.684754168-31362.6847541682
20194690220678.43837532-25988.4383753200
21189917197244.035213522-7327.03521352245
22184128192235.713433707-8107.71343370731
23175335180250.060023628-4915.06002362825
24179566175693.8686317123872.13136828757
25181140188242.731157986-7102.73115798636
26177876182499.627636281-4623.62763628108
27175041172321.2603856772719.73961432347
28169292182705.683692383-13413.6836923831
29166070174288.367358009-8218.3673580089
30166972168802.752265786-1830.75226578559
31206348213829.562741907-7481.56274190661
32215706216923.303338493-1217.30333849286
33202108204343.678832500-2235.67883250028
34195411203677.658658907-8266.658658907
35193111182169.56801128410941.4319887157
36195198191080.1686852054117.83131479466
37198770198084.111033723685.888966277126
38194163189439.3122562884723.68774371244
39190420176193.43859248314226.5614075173
40189733182977.8090625846755.19093741563
41186029168753.20077775117275.7992222493
42191531169960.50428882821570.4957111719
43232571215462.31496311417108.6850368859
44243477213563.18900034529913.8109996551
45227247205660.41449476421586.5855052357
46217859202828.12031680915030.8796831908
47208679181500.47122290427178.5287770958
48213188193408.35240803819779.6475919619
49216234194098.79109593722135.208904063
50213586191766.52061937121819.4793806295
51209465193639.69843760615825.3015623935
52204045191398.08978282612646.9102171745
53200237173401.76534541826835.2346545822
54203666196420.0635820877245.93641791316
55241476223844.55665311217631.443346888
56260307236413.91721925023893.0827807497
57243324224048.87185821919275.1281417807
58244460212266.67661586832193.3233841321
59233575202562.3896606331012.6103393699
60237217211217.44608009725999.5539199031
61235243206880.88061739728362.1193826034
62230354206648.55968220423705.4403177962
63227184202781.74537271824402.2546272817
64221678203142.39653047118535.6034695289
65217142192022.35832933125119.6416706689
66219452207042.70661743312409.2933825667
67256446227028.13087654229417.8691234585
68265845247906.58115144117938.4188485591
69248624237507.86104605811116.1389539424
70241114211461.02946251229652.9705374877
71229245221130.3132180538114.68678194712
72231805227468.8902316854336.10976831517
73219277228805.992433718-9528.99243371779
74219313220320.177295504-1007.17729550398
75212610230159.118190563-17549.1181905625
76214771206192.3464681758578.65353182545
77211142214674.113159272-3532.11315927213
78211457212839.269610645-1382.26961064466
79240048241699.492233413-1651.49223341258
80240636260083.947628009-19447.9476280089
81230580243357.093465759-12777.0934657594
82208795237216.379016397-28421.3790163972
83197922229683.242864270-31761.2428642703
84194596218630.180178769-24034.1801787687


Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
160.01349044179906470.02698088359812940.986509558200935
170.003901116961819640.007802233923639270.99609888303818
180.001110161635629290.002220323271258580.99888983836437
190.0002661518156162890.0005323036312325780.999733848184384
200.0003119415394071650.000623883078814330.999688058460593
210.0001770124685113220.0003540249370226440.999822987531489
220.0003187236140012640.0006374472280025270.999681276385999
230.0001068717304484280.0002137434608968550.999893128269552
244.36302625700658e-058.72605251401316e-050.99995636973743
254.08131139786237e-058.16262279572474e-050.999959186886021
262.40982649024485e-054.8196529804897e-050.999975901735098
271.57011176918853e-053.14022353837705e-050.999984298882308
280.0001642253489831080.0003284506979662150.999835774651017
290.0001301552768727290.0002603105537454580.999869844723127
300.0002126771040819780.0004253542081639550.999787322895918
310.005914208601334830.01182841720266970.994085791398665
320.007785142201306030.01557028440261210.992214857798694
330.01898882930099990.03797765860199990.981011170699
340.06006612601841220.1201322520368240.939933873981588
350.0830805170305310.1661610340610620.916919482969469
360.1713783556947700.3427567113895390.82862164430523
370.3027043028586520.6054086057173040.697295697141348
380.4111918254571680.8223836509143350.588808174542832
390.4910363635745970.9820727271491930.508963636425403
400.6274387657114250.7451224685771510.372561234288575
410.6894390209028220.6211219581943560.310560979097178
420.7881775806069880.4236448387860250.211822419393012
430.8905403705189770.2189192589620460.109459629481023
440.9176981940406070.1646036119187860.0823018059593931
450.944188062275640.1116238754487210.0558119377243605
460.9591036857618360.08179262847632790.0408963142381639
470.9644196781752130.07116064364957370.0355803218247868
480.9704954797817890.05900904043642180.0295045202182109
490.9765926785660080.04681464286798470.0234073214339924
500.9823713738767080.03525725224658340.0176286261232917
510.9871440511718150.02571189765637050.0128559488281853
520.9897589854413430.02048202911731450.0102410145586573
530.9966378094080390.006724381183921780.00336219059196089
540.997640387980560.004719224038880990.00235961201944050
550.9976228885047160.004754222990567520.00237711149528376
560.9965937442010070.006812511597985250.00340625579899263
570.995036117276370.009927765447258680.00496388272362934
580.993362398664840.01327520267032080.00663760133516038
590.9884196621310880.02316067573782350.0115803378689117
600.9843481203832120.03130375923357620.0156518796167881
610.9721469588173780.05570608236524350.0278530411826217
620.9499725451155820.1000549097688370.0500274548844184
630.9174688798968850.1650622402062290.0825311201031147
640.8609932697088830.2780134605822330.139006730291117
650.8160474393258980.3679051213482040.183952560674102
660.7048554850706680.5902890298586640.295144514929332
670.5702877824100760.8594244351798480.429712217589924
680.4201476920620890.8402953841241780.579852307937911


Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level190.358490566037736NOK
5% type I error level300.566037735849057NOK
10% type I error level340.641509433962264NOK
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/19/t12297183593l8hridc1uld4z4/10xxf71229718036.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/19/t12297183593l8hridc1uld4z4/10xxf71229718036.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/19/t12297183593l8hridc1uld4z4/1g30c1229718036.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/19/t12297183593l8hridc1uld4z4/1g30c1229718036.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/19/t12297183593l8hridc1uld4z4/20gwp1229718036.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/19/t12297183593l8hridc1uld4z4/20gwp1229718036.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/19/t12297183593l8hridc1uld4z4/3dmrg1229718036.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/19/t12297183593l8hridc1uld4z4/3dmrg1229718036.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/19/t12297183593l8hridc1uld4z4/43zbp1229718036.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/19/t12297183593l8hridc1uld4z4/43zbp1229718036.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/19/t12297183593l8hridc1uld4z4/5y3ut1229718036.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/19/t12297183593l8hridc1uld4z4/5y3ut1229718036.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/19/t12297183593l8hridc1uld4z4/6vikm1229718036.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/19/t12297183593l8hridc1uld4z4/6vikm1229718036.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/19/t12297183593l8hridc1uld4z4/72ihi1229718036.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/19/t12297183593l8hridc1uld4z4/72ihi1229718036.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/19/t12297183593l8hridc1uld4z4/8jud81229718036.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/19/t12297183593l8hridc1uld4z4/8jud81229718036.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/19/t12297183593l8hridc1uld4z4/9b8dr1229718036.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/19/t12297183593l8hridc1uld4z4/9b8dr1229718036.ps (open in new window)


 
Parameters (Session):
par1 = 1 ; par2 = Include Monthly Dummies ; par3 = No Linear Trend ;
 
Parameters (R input):
par1 = 1 ; par2 = Include Monthly Dummies ; par3 = No 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