Home » date » 2008 » Dec » 14 »

Met seizonaliteit en zonder lineaire trend

*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, 14 Dec 2008 06:44:09 -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/14/t1229262360pr7ynwspmuj1nq6.htm/, Retrieved Sun, 14 Dec 2008 14:46:10 +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/14/t1229262360pr7ynwspmuj1nq6.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 «
11554.5 180144 13182.1 173666 14800.1 165688 12150.7 161570 14478.2 156145 13253.9 153730 12036.8 182698 12653.2 200765 14035.4 176512 14571.4 166618 15400.9 158644 14283.2 159585 14485.3 163095 14196.3 159044 15559.1 155511 13767.4 153745 14634 150569 14381.1 150605 12509.9 179612 12122.3 194690 13122.3 189917 13908.7 184128 13456.5 175335 12441.6 179566 12953 181140 13057.2 177876 14350.1 175041 13830.2 169292 13755.5 166070 13574.4 166972 12802.6 206348 11737.3 215706 13850.2 202108 15081.8 195411 13653.3 193111 14019.1 195198 13962 198770 13768.7 194163 14747.1 190420 13858.1 189733 13188 186029 13693.1 191531 12970 232571 11392.8 243477 13985.2 227247 14994.7 217859 13584.7 208679 14257.8 213188 13553.4 216234 14007.3 213586 16535.8 209465 14721.4 204045 13664.6 200237 16805.9 203666 13829.4 241476 13735.6 260307 15870.5 243324 15962.4 244460 15744.1 233575 16083.7 237217 14863.9 235243 15533.1 230354 17473.1 227184 15925.5 221678 15573.7 217142 17495 219452 14155.8 256446 14913.9 265845 17250.4 248624 15879.8 241114 17647.8 229245 17749.9 231805 17111.8 219277 16934.8 219313 20280 212610 16238.2 214771 17896.1 211142 18089.3 211457 15660 240048 16162.4 240636 17850.1 230580 18520.4 208795 18524.7 197922 16843.7 194596
 
Output produced by software:

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


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


Multiple Linear Regression - Estimated Regression Equation
invoer[t] = + 7371.69243819927 + 0.0383211999621623werkloosheid[t] -933.426094036105M1[t] -477.97503686183M2[t] + 1564.20482862189M3[t] -213.766242634938M4[t] + 322.29561435927M5[t] + 853.204275156608M6[t] -2374.47138970787M7[t] -3002.76243389198M8[t] -545.897832049348M9[t] + 204.327103683867M10[t] + 413.453664606557M11[t] + e[t]


Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STAT
H0: parameter = 0
2-tail p-value1-tail p-value
(Intercept)7371.692438199271297.5366235.681300
werkloosheid0.03832119996216230.0058936.502700
M1-933.426094036105737.984756-1.26480.2100680.105034
M2-477.97503686183738.735671-0.6470.5197070.259853
M31564.20482862189740.5555062.11220.0381880.019094
M4-213.766242634938742.284475-0.2880.7741980.387099
M5322.29561435927745.1691150.43250.6666790.33334
M6853.204275156608744.029541.14670.2553410.127671
M7-2374.47138970787745.674773-3.18430.0021550.001078
M8-3002.76243389198758.780343-3.95740.0001788.9e-05
M9-545.897832049348743.336384-0.73440.465130.232565
M10204.327103683867738.912420.27650.7829490.391474
M11413.453664606557737.944810.56030.5770540.288527


Multiple Linear Regression - Regression Statistics
Multiple R0.71538090110062
R-squared0.511769833659534
Adjusted R-squared0.42925205906678
F-TEST (value)6.20193450665924
F-TEST (DF numerator)12
F-TEST (DF denominator)71
p-value2.49468904311989e-07
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation1380.37564794128
Sum Squared Residuals135286021.989481


Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolation
Forecast
Residuals
Prediction Error
111554.513341.6005901469-1787.10059014687
213182.113548.8069139663-366.706913966309
314800.115285.2602461519-485.160246151902
412150.713349.4824734509-1198.78247345089
514478.213677.6518206504800.548179349631
613253.914116.0147835391-862.114783539086
712036.811998.427639178538.3723608214787
812653.212062.4857147108590.714285289198
914035.413589.9462538711445.453746128889
1014571.413961.0212371787610.378762821309
1115400.913864.57454960311536.3254503969
1214283.213487.1811341609796.018865839063
1314485.312688.26245199201797.03754800798
1414196.312988.47432811961207.82567188042
1515559.114895.2653941370663.834605863022
1613767.413049.6190837470717.780916253029
171463413463.97280966141170.02719033865
1814381.113996.2610336573384.838966342672
1912509.911880.1684160953629.731583904712
2012122.311829.6844249407292.615575059331
2113122.314103.6419393639-981.341939363897
2213908.714632.0254485162-723.325448516153
2313456.514504.1936981715-1047.69369817155
2412441.614252.8770306049-1811.27703060490
251295313379.7685053092-426.768505309241
2613057.213710.139165807-652.939165807017
2714350.115643.678429398-1293.57842939801
2813830.213645.3987795587184.801220441293
2913755.514057.9897302748-302.48973027483
3013574.414623.4641134380-1049.06411343804
3112802.612904.7240182837-102.124018283659
3211737.312635.0427633455-897.742763345471
3313850.214570.8156881026-720.615688102616
3415081.815064.403547689217.3964523107681
3513653.315185.3913486989-1532.09134869895
3614019.114851.9140284134-832.814028413423
371396214055.3712606422-93.3712606421627
3813768.714334.2765495908-565.576549590754
3914747.116233.0201636161-1485.92016361610
4013858.114428.7224279853-570.622427985267
411318814822.8425603196-1634.84256031963
4213693.115564.5944633088-1871.49446330878
431297013909.6208448914-939.62084489144
4411392.813699.2608074947-2306.46080749468
4513985.215534.1723339514-1548.97233395141
4614994.715924.6378444399-929.93784443985
4713584.715781.9757897099-2197.27578970989
4814257.815541.3124157327-1283.51241573272
4913553.414724.6126967814-1171.21269678137
5014007.315078.5892164558-1071.28921645583
5116535.816962.8474168955-427.047416895485
5214721.414977.1754418437-255.775441843735
5313664.615367.3101693820-1702.71016938203
5416805.916029.6222248496776.27777515038
5513829.414250.8711305545-421.471130554497
5613735.614344.2066028579-608.606602857872
5715870.516150.2622657431-279.762265743099
5815962.416944.0200846333-981.62008463333
5915744.116736.0203839679-991.920383967882
6016083.716462.1325296235-378.432529623520
6114863.915453.0603868621-589.160386862108
6215533.115721.1590974214-188.059097421370
6317473.117641.8607590250-168.760759025038
6415925.515652.8931607765272.606839223458
6515573.716015.1300547424-441.430054742382
661749516634.5606874523860.439312547684
6714155.814824.5394939881-668.739493988066
6814913.914556.4294082483357.470591751673
6917250.416353.3646255426897.035374457443
7015879.816815.7973495599-935.997349559935
7117647.816570.08958813171077.71041186828
7217749.916254.73819542831495.16180457170
7317111.814841.22410826622270.57589173377
7416934.815298.05472863911636.74527136086
752028017083.36759077653196.63240922352
7616238.215388.2086326379849.991367362113
7717896.115785.20285496942110.89714503059
7818089.316328.18269375481761.11730624517
791566014196.14845700851463.85154299147
8016162.413590.39027840222572.00972159782
8117850.115661.89689342532188.20310657470
8218520.415577.29448798282943.10551201719
8318524.715369.75464171693154.94535828309
8416843.714828.84466603622014.8553339638


Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
160.07417361311683150.1483472262336630.925826386883168
170.03133533821820230.06267067643640460.968664661781798
180.01575004931591970.03150009863183950.98424995068408
190.005137454702366070.01027490940473210.994862545297634
200.006379659028027050.01275931805605410.993620340971973
210.002804850847141070.005609701694282150.99719514915286
220.002102031305645840.004204062611291690.997897968694354
230.000818445694908360.001636891389816720.999181554305092
240.0002960302926371910.0005920605852743830.999703969707363
250.0001905264053237520.0003810528106475050.999809473594676
267.18662392613262e-050.0001437324785226520.999928133760739
272.86129131400833e-055.72258262801665e-050.99997138708686
280.0001663205019128350.0003326410038256690.999833679498087
296.23463179348832e-050.0001246926358697660.999937653682065
303.7650310426389e-057.5300620852778e-050.999962349689574
310.0001706452155084170.0003412904310168350.999829354784492
327.1249335935969e-050.0001424986718719380.999928750664064
335.75289329440695e-050.0001150578658881390.999942471067056
348.3479845603591e-050.0001669596912071820.999916520154396
354.08804985937089e-058.17609971874178e-050.999959119501406
364.71599670497653e-059.43199340995307e-050.99995284003295
375.86602239743347e-050.0001173204479486690.999941339776026
383.21720331839964e-056.43440663679929e-050.999967827966816
392.14625255823343e-054.29250511646686e-050.999978537474418
401.53486788233930e-053.06973576467860e-050.999984651321177
411.14429923981878e-052.28859847963756e-050.999988557007602
421.49623585264583e-052.99247170529166e-050.999985037641474
431.18562195488710e-052.37124390977420e-050.99998814378045
441.97025779468890e-053.94051558937779e-050.999980297422053
453.07672464943769e-056.15344929887539e-050.999969232753506
462.74269670281574e-055.48539340563148e-050.999972573032972
470.0001122499714409550.000224499942881910.99988775002856
480.0002592676082181240.0005185352164362470.999740732391782
490.0004444766385430890.0008889532770861790.999555523361457
500.0007966529749852320.001593305949970460.999203347025015
510.004359701154043950.00871940230808790.995640298845956
520.007739142474432730.01547828494886550.992260857525567
530.0688818990570650.137763798114130.931118100942935
540.2322399838275880.4644799676551750.767760016172413
550.2603459704778850.520691940955770.739654029522115
560.3057920220735680.6115840441471350.694207977926432
570.3837075291072440.7674150582144880.616292470892756
580.3112102984674660.6224205969349320.688789701532534
590.333432277693060.666864555386120.66656772230694
600.2912309624741150.582461924948230.708769037525885
610.3018203384876950.603640676975390.698179661512305
620.2659989378153470.5319978756306950.734001062184653
630.4320238970669410.8640477941338830.567976102933059
640.347082383380080.694164766760160.65291761661992
650.5165545282485810.9668909435028380.483445471751419
660.4412689990491670.8825379980983340.558731000950833
670.3736256651293750.7472513302587490.626374334870625
680.2700493741886580.5400987483773160.729950625811342


Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level310.584905660377358NOK
5% type I error level350.660377358490566NOK
10% type I error level360.679245283018868NOK
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/14/t1229262360pr7ynwspmuj1nq6/10z3311229262244.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/14/t1229262360pr7ynwspmuj1nq6/10z3311229262244.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/14/t1229262360pr7ynwspmuj1nq6/189su1229262244.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/14/t1229262360pr7ynwspmuj1nq6/189su1229262244.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/14/t1229262360pr7ynwspmuj1nq6/2v9yy1229262244.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/14/t1229262360pr7ynwspmuj1nq6/2v9yy1229262244.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/14/t1229262360pr7ynwspmuj1nq6/3j1je1229262244.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/14/t1229262360pr7ynwspmuj1nq6/3j1je1229262244.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/14/t1229262360pr7ynwspmuj1nq6/44fte1229262244.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/14/t1229262360pr7ynwspmuj1nq6/44fte1229262244.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/14/t1229262360pr7ynwspmuj1nq6/5qurt1229262244.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/14/t1229262360pr7ynwspmuj1nq6/5qurt1229262244.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/14/t1229262360pr7ynwspmuj1nq6/6ef5n1229262244.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/14/t1229262360pr7ynwspmuj1nq6/6ef5n1229262244.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/14/t1229262360pr7ynwspmuj1nq6/7f00f1229262244.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/14/t1229262360pr7ynwspmuj1nq6/7f00f1229262244.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/14/t1229262360pr7ynwspmuj1nq6/8a1vm1229262244.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/14/t1229262360pr7ynwspmuj1nq6/8a1vm1229262244.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/14/t1229262360pr7ynwspmuj1nq6/9fjfq1229262244.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/14/t1229262360pr7ynwspmuj1nq6/9fjfq1229262244.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