Home » date » 2008 » Dec » 19 »

werkloosheid - Europa

*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 15:27:01 -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/t1229725970bzj6agxxlv15jyp.htm/, Retrieved Fri, 19 Dec 2008 23:32:50 +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/t1229725970bzj6agxxlv15jyp.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 8955,5 173666 10423,9 165688 11617,2 161570 9391,1 156145 10872 153730 10230,4 182698 9221 200765 9428,6 176512 10934,5 166618 10986 158644 11724,6 159585 11180,9 163095 11163,2 159044 11240,9 155511 12107,1 153745 10762,3 150569 11340,4 150605 11266,8 179612 9542,7 194690 9227,7 189917 10571,9 184128 10774,4 175335 10392,8 179566 9920,2 181140 9884,9 177876 10174,5 175041 11395,4 169292 10760,2 166070 10570,1 166972 10536 206348 9902,6 215706 8889 202108 10837,3 195411 11624,1 193111 10509 195198 10984,9 198770 10649,1 194163 10855,7 190420 11677,4 189733 10760,2 186029 10046,2 191531 10772,8 232571 9987,7 243477 8638,7 227247 11063,7 217859 11855,7 208679 10684,5 213188 11337,4 216234 10478 213586 11123,9 209465 12909,3 204045 11339,9 200237 10462,2 203666 12733,5 241476 10519,2 260307 10414,9 243324 12476,8 244460 12384,6 233575 12266,7 237217 12919,9 235243 11497,3 230354 12142 227184 13919,4 221678 12656,8 217142 12034,1 219452 13199,7 256446 10881,3 265845 11301,2 248624 13643,9 241114 12517 229245 13981,1 231805 14275,7 219277 13435 219313 13565,7 212610 16216,3 214771 12970 211142 14079,9 211457 14235 240048 12213,4 240636 12581 230580 14130,4 208795 14210,8 197922 14378,5 194596 13142,8
 
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 time8 seconds
R Server'Herman Ole Andreas Wold' @ 193.190.124.10:1001


Multiple Linear Regression - Estimated Regression Equation
werkloosheid[t] = + 217808.739352694 -6.19368899531241Europa[t] + 3991.80149233433M1[t] + 2150.08058275451M2[t] + 5487.86504845769M3[t] -8641.81126884436M4[t] -13100.2472264452M5[t] -9708.44343219584M6[t] + 14153.1279875561M7[t] + 23112.6435492637M8[t] + 18835.3878057790M9[t] + 9682.32094298233M10[t] -730.588482714191M11[t] + 1206.21536731755t + e[t]


Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STAT
H0: parameter = 0
2-tail p-value1-tail p-value
(Intercept)217808.73935269420018.01556510.880600
Europa-6.193688995312411.960306-3.15960.0023340.001167
M13991.801492334337028.9345750.56790.5719130.285957
M22150.080582754516930.0680880.31030.757290.378645
M35487.865048457697356.3443560.7460.4581630.229081
M4-8641.811268844366952.600968-1.2430.218030.109015
M5-13100.24722644526936.887136-1.88850.0631040.031552
M6-9708.443432195846914.565218-1.40410.1647230.082362
M714153.12798755617442.1059961.90180.0613180.030659
M823112.64354926377679.2289083.00980.0036330.001817
M918835.38780577906904.9161672.72780.0080530.004027
M109682.320942982336908.1082941.40160.1654570.082728
M11-730.5884827141916900.239494-0.10590.9159810.457991
t1206.21536731755106.17906211.360200


Multiple Linear Regression - Regression Statistics
Multiple R0.915447709162076
R-squared0.838044508210093
Adjusted R-squared0.807967059734824
F-TEST (value)27.8628856732706
F-TEST (DF numerator)13
F-TEST (DF denominator)70
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation12906.1317316674
Sum Squared Residuals11659776539.2606


Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolation
Forecast
Residuals
Prediction Error
1180144167539.17441482612604.8255851738
2173666157808.85595184715857.1440481530
3165688154961.92670676210726.0732932385
4161570155826.2368292425743.76317075806
5156145143401.78220580012743.2177941995
6153730151973.672226761756.32777324013
7182698183293.368685698-595.368685697753
8200765192173.2897792968591.71022070399
9176512179775.173145088-3263.17314508788
10166618171509.346666350-4891.34666635019
11158644157727.993916033916.006083966527
12159585163032.306472817-3447.30647281658
13163095168339.951627685-5244.95162768549
14159044167223.196450487-8179.19645048744
15155511166402.222875769-10891.2228757686
16153745161808.034886680-8063.0348866802
17150569154975.242688207-4406.2426882068
18150605160029.117359829-9424.11735982873
19179612195775.443343716-16163.4433437164
20194690207892.186306265-13202.1863062649
21189917196495.589182599-6578.58918259878
22184128187294.515665569-3166.51566556893
23175335180451.333327801-5116.33332780119
24179566185315.274597018-5749.27459701758
25181140190731.928678204-9591.92867820398
26177876188302.730802899-10426.7308028992
27175041185284.855741543-10243.8557415431
28169292176295.626041381-7003.626041381
29166070174220.825729107-8150.82572910657
30166972179030.049685414-12058.0496854137
31206348208020.919082114-1672.91908211409
32215706224464.573176788-8758.57317678787
33202108209326.368531054-7218.36853105351
34195411196506.322534063-1095.32253406261
35193111194206.211074357-1095.21107435652
36195198193195.4383315192002.56166848091
37198770200473.295955797-1703.29595579686
38194163198558.174267103-4395.17426710306
39190420198012.819852676-7592.8198526756
40189733190770.210449192-1037.21044919163
41186029191940.283801561-5911.28380156138
42191531192037.968539134-506.968539134335
43232571221968.42055642410602.5794435764
44243477240489.4379401252987.56205987483
45227247222398.7017503254848.29824967458
46217859209546.4485705598312.55142944111
47208679207593.803063491085.19693651018
48213188205486.7473684827701.25263151791
49216234216007.620550705226.379449294546
50213586211371.6112863712214.38871362909
51209465204857.3987871614607.60121283913
52204045201654.3133464202390.68665358033
53200237203838.293587322-3601.29358732206
54203666194368.5869338369297.41306616409
55241476233151.0592632268324.94073677428
56260307243962.79195446216344.2080455381
57243324228120.9842388615203.0157611399
58244460220745.19086874923714.8091312512
59233575212268.73274291721306.2672570829
60237217210159.81894121127057.1810587892
61235243224168.97776559411074.0222344059
62230354219540.40092805410813.5990719460
63227184213075.73794080614108.2620591936
64221678207972.42871630313705.5712836966
65217142208577.0182634018564.9817365989
66219452205955.67353203213496.3264679681
67256446245382.90888583411063.0911141663
68265845252947.90980572712897.0901942729
69248624235366.91422024213257.0857797584
70241114234399.730853586714.26914641994
71229245216124.85673716413120.1432628358
72231805216236.99980917715568.0001908231
73219277226642.051007188-7365.0510071879
74219313225197.030313238-5884.03031323832
75212610213324.038095284-714.038095283981
76214771220507.149730782-5736.14973078217
77211142210380.553724602761.446275398394
78211457214017.931722996-2560.93172299559
79240048251606.880182989-11558.8801829887
80240636259495.811037337-18859.8110373369
81230580246828.268931833-16248.2689318327
82208795238383.444841131-29588.4448411305
83197922228138.069138238-30216.0691382377
84194596237728.414479777-43132.414479777


Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
170.01338670861082780.02677341722165560.986613291389172
180.00827368827554990.01654737655109980.99172631172445
190.002283840098101790.004567680196203580.997716159901898
200.0005713794297872210.001142758859574440.999428620570213
210.002671136791041450.00534227358208290.997328863208959
220.005212029081473880.01042405816294780.994787970918526
230.001911604996099470.003823209992198940.9980883950039
240.000754931816914440.001509863633828880.999245068183086
250.0002862731208283720.0005725462416567430.999713726879172
269.91767784550026e-050.0001983535569100050.999900823221545
274.16207633223468e-058.32415266446935e-050.999958379236678
289.26057176410641e-050.0001852114352821280.999907394282359
293.55971231213934e-057.11942462427869e-050.999964402876879
302.11154329517782e-054.22308659035563e-050.999978884567048
310.0004352951484673720.0008705902969347440.999564704851533
320.0002738750563054730.0005477501126109450.999726124943695
330.0002781643677905170.0005563287355810340.99972183563221
340.0006740741677803530.001348148335560710.99932592583222
350.0005386489518407460.001077297903681490.99946135104816
360.001063908659397700.002127817318795390.998936091340602
370.001282678994091660.002565357988183320.998717321005908
380.001314140178466450.002628280356932900.998685859821534
390.001023437636584250.00204687527316850.998976562363416
400.001545762970249740.003091525940499480.99845423702975
410.001350519528966340.002701039057932680.998649480471034
420.002020497706420830.004040995412841660.99797950229358
430.009503169558415360.01900633911683070.990496830441585
440.00871173510050590.01742347020101180.991288264899494
450.01151806549983840.02303613099967680.988481934500162
460.02315877371140280.04631754742280570.976841226288597
470.01869741345373370.03739482690746740.981302586546266
480.02212697838387670.04425395676775350.977873021616123
490.01913821788410630.03827643576821260.980861782115894
500.02019622496948180.04039244993896370.979803775030518
510.02316709891996170.04633419783992340.976832901080038
520.04170161921544140.08340323843088270.958298380784559
530.06932658618768770.1386531723753750.930673413812312
540.2235917761867160.4471835523734310.776408223813284
550.5281849803596480.9436300392807040.471815019640352
560.625518534432420.7489629311351610.374481465567581
570.8367498610273960.3265002779452080.163250138972604
580.8571205156306420.2857589687387160.142879484369358
590.8298728189366870.3402543621266250.170127181063313
600.8151056056355420.3697887887289160.184894394364458
610.7365478737759270.5269042524481470.263452126224073
620.6603495163949760.6793009672100490.339650483605024
630.5509328025995280.8981343948009450.449067197400472
640.6698012664632350.660397467073530.330198733536765
650.6232879170458110.7534241659083780.376712082954189
660.7649515946761940.4700968106476130.235048405323806
670.7287244477044770.5425511045910460.271275552295523


Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level230.450980392156863NOK
5% type I error level350.686274509803922NOK
10% type I error level360.705882352941177NOK
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/19/t1229725970bzj6agxxlv15jyp/10j9i21229725606.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/19/t1229725970bzj6agxxlv15jyp/10j9i21229725606.ps (open in new window)


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


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/19/t1229725970bzj6agxxlv15jyp/2qegv1229725606.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/19/t1229725970bzj6agxxlv15jyp/2qegv1229725606.ps (open in new window)


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


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/19/t1229725970bzj6agxxlv15jyp/4c8hs1229725606.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/19/t1229725970bzj6agxxlv15jyp/4c8hs1229725606.ps (open in new window)


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


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


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/19/t1229725970bzj6agxxlv15jyp/79dhm1229725606.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/19/t1229725970bzj6agxxlv15jyp/79dhm1229725606.ps (open in new window)


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


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/19/t1229725970bzj6agxxlv15jyp/98n1p1229725606.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/19/t1229725970bzj6agxxlv15jyp/98n1p1229725606.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