Home » date » 2010 » Dec » 27 »

Aantal openstaande VDAB-vacatures: Regressie Analyse

*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: Mon, 27 Dec 2010 18:00:51 +0000
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2010/Dec/27/t12934727937ffnh5oyjup3nwj.htm/, Retrieved Mon, 27 Dec 2010 18:59:56 +0100
 
BibTeX entries for LaTeX users:
@Manual{KEY,
    author = {{YOUR NAME}},
    publisher = {Office for Research Development and Education},
    title = {Statistical Computations at FreeStatistics.org, URL http://www.freestatistics.org/blog/date/2010/Dec/27/t12934727937ffnh5oyjup3nwj.htm/},
    year = {2010},
}
@Manual{R,
    title = {R: A Language and Environment for Statistical Computing},
    author = {{R Development Core Team}},
    organization = {R Foundation for Statistical Computing},
    address = {Vienna, Austria},
    year = {2010},
    note = {{ISBN} 3-900051-07-0},
    url = {http://www.R-project.org},
}
 
Original text written by user:
 
IsPrivate?
No (this computation is public)
 
User-defined keywords:
 
Dataseries X:
» Textbox « » Textfile « » CSV «
27.951 29.781 32.914 33.488 35.652 36.488 35.387 35.676 34.844 32.447 31.068 29.010 29.812 30.951 32.974 32.936 34.012 32.946 31.948 30.599 27.691 25.073 23.406 22.248 22.896 25.317 26.558 26.471 27.543 26.198 24.725 25.005 23.462 20.780 19.815 19.761 21.454 23.899 24.939 23.580 24.562 24.696 23.785 23.812 21.917 19.713 19.282 18.788 21.453 24.482 27.474 27.264 27.349 30.632 29.429 30.084 26.290 24.379 23.335 21.346 21.106 24.514 28.353 30.805 31.348 34.556 33.855 34.787 32.529 29.998 29.257 28.155 30.466 35.704 39.327 39.351 42.234 43.630 43.722 43.121 37.985 37.135 34.646 33.026 35.087 38.846 42.013 43.908 42.868 44.423 44.167 43.636 44.382 42.142 43.452 36.912 42.413 45.344 44.873 47.510 49.554 47.369 45.998 48.140 48.441 44.928 40.454 38.661 37.246 36.843 36.424 37.594 38.144 38.737 34.560 36.080 33.508 35.462 33.374 32.110 35.533 35.532 37.903 36.763 40.399 44.164 44.496 43.110 etc...
 
Output produced by software:

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


Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time7 seconds
R Server'RServer@AstonUniversity' @ vre.aston.ac.uk


Multiple Linear Regression - Estimated Regression Equation
VDAB-vacatures[t] = + 19.0922638297872 + 2.25662092198582M1[t] + 4.46672037395229M2[t] + 6.38072891682785M3[t] + 6.78373745970341M4[t] + 7.92101872985171M5[t] + 8.71093636363636M6[t] + 7.50621763378466M7[t] + 7.5510443584784M8[t] + 5.67778017408124M9[t] + 3.8207887169568M10[t] + 2.45206998710509M11[t] + 0.134991457124436t + e[t]


Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STAT
H0: parameter = 0
2-tail p-value1-tail p-value
(Intercept)19.09226382978722.0534919.297500
M12.256620921985822.5550170.88320.3789180.189459
M24.466720373952292.5546941.74840.0829890.041495
M36.380728916827852.5544422.49790.0138710.006935
M46.783737459703412.5542622.65580.0090040.004502
M57.921018729851712.5541543.10120.0024110.001206
M68.710936363636362.5541193.41050.0008880.000444
M77.506217633784662.5541542.93880.0039640.001982
M87.55104435847842.5542622.95630.0037620.001881
M95.677780174081242.5544422.22270.0281410.01407
M103.82078871695682.5546941.49560.1374290.068714
M112.452069987105092.5550170.95970.3391650.169582
t0.1349914571244360.013559.962700


Multiple Linear Regression - Regression Statistics
Multiple R0.716794881754803
R-squared0.513794902509882
Adjusted R-squared0.464350316324447
F-TEST (value)10.3913277903259
F-TEST (DF numerator)12
F-TEST (DF denominator)118
p-value9.84767822842514e-14
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation5.84558181029365
Sum Squared Residuals4032.15755069865


Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolation
Forecast
Residuals
Prediction Error
127.95121.48387620889756.46712379110254
229.78123.82896711798845.95203288201161
332.91425.87796711798847.03603288201161
433.48826.41596711798847.0720328820116
535.65227.68823984526117.96376015473888
636.48828.61314893617027.87485106382979
735.38727.54342166344297.84357833655706
835.67627.72323984526117.95276015473888
934.84425.98496711798848.8590328820116
1032.44724.26296711798848.1840328820116
1131.06823.02923984526118.03876015473888
1229.0120.71216131528058.29783868471954
1329.81223.10377369439076.70822630560929
1430.95125.44886460348165.50213539651837
1532.97427.49786460348165.47613539651837
1632.93628.03586460348164.90013539651838
1734.01229.30813733075444.70386266924565
1832.94630.23304642166342.71295357833655
1931.94829.16331914893622.78468085106383
2030.59929.34313733075441.25586266924565
2127.69127.60486460348160.0861353965183724
2225.07325.8828646034816-0.809864603481627
2323.40624.6491373307544-1.24313733075436
2422.24822.3320588007737-0.0840588007736956
2522.89624.7236711798839-1.82767117988395
2625.31727.0687620889749-1.75176208897486
2726.55829.1177620889749-2.55976208897485
2826.47129.6557620889749-3.18476208897486
2927.54330.9280348162476-3.38503481624758
3026.19831.8529439071567-5.65494390715667
3124.72530.7832166344294-6.0582166344294
3225.00530.9630348162476-5.95803481624759
3323.46229.2247620889749-5.76276208897485
3420.7827.5027620889749-6.72276208897486
3519.81526.2690348162476-6.45403481624758
3619.76123.9519562862669-4.19095628626692
3721.45426.3435686653772-4.88956866537718
3823.89928.6886595744681-4.78965957446808
3924.93930.7376595744681-5.79865957446809
4023.5831.2756595744681-7.69565957446808
4124.56232.5479323017408-7.98593230174081
4224.69633.4728413926499-8.7768413926499
4323.78532.4031141199226-8.61811411992263
4423.81232.5829323017408-8.77093230174082
4521.91730.8446595744681-8.92765957446809
4619.71329.1226595744681-9.4096595744681
4719.28227.8889323017408-8.60693230174082
4818.78825.5718537717602-6.78385377176016
4921.45327.9634661508704-6.51046615087041
5024.48230.3085570599613-5.82655705996132
5127.47432.3575570599613-4.88355705996131
5227.26432.8955570599613-5.63155705996132
5327.34934.167829787234-6.81882978723405
5430.63235.0927388781431-4.46073887814313
5529.42934.0230116054159-4.59401160541586
5630.08434.202829787234-4.11882978723404
5726.2932.4645570599613-6.17455705996132
5824.37930.7425570599613-6.36355705996132
5923.33529.508829787234-6.17382978723404
6021.34627.1917512572534-5.84575125725338
6121.10629.5833636363636-8.47736363636364
6224.51431.9284545454545-7.41445454545455
6328.35333.9774545454545-5.62445454545454
6430.80534.5154545454545-3.71045454545454
6531.34835.7877272727273-4.43972727272727
6634.55636.7126363636364-2.15663636363637
6733.85535.6429090909091-1.7879090909091
6834.78735.8227272727273-1.03572727272727
6932.52934.0844545454545-1.55545454545454
7029.99832.3624545454545-2.36445454545455
7129.25731.1287272727273-1.87172727272727
7228.15528.8116487427466-0.656648742746615
7330.46631.2032611218569-0.73726112185687
7435.70433.54835203094782.15564796905222
7539.32735.59735203094783.72964796905222
7639.35136.13535203094783.21564796905222
7742.23437.40762475822054.8263752417795
7843.6338.33253384912965.29746615087041
7943.72237.26280657640236.45919342359768
8043.12137.44262475822055.6783752417795
8137.98535.70435203094782.28064796905222
8237.13533.98235203094783.15264796905222
8334.64632.74862475822051.8973752417795
8433.02630.43154622823982.59445377176016
8535.08732.82315860735012.2638413926499
8638.84635.1682495164413.67775048355899
8742.01337.2172495164414.79575048355899
8843.90837.7552495164416.152750483559
8942.86839.02752224371373.84047775628627
9044.42339.95243133462284.47056866537718
9144.16738.88270406189565.28429593810445
9243.63639.06252224371374.57347775628627
9344.38237.3242495164417.057750483559
9442.14235.6022495164416.539750483559
9543.45234.36852224371379.08347775628627
9636.91232.05144371373314.86055628626692
9742.41334.44305609284337.96994390715667
9845.34436.78814700193428.55585299806577
9944.87338.83714700193426.03585299806576
10047.5139.37514700193428.13485299806577
10149.55440.6474197292078.90658027079304
10247.36941.57232882011615.79667117988395
10345.99840.50260154738885.49539845261121
10448.1440.6824197292077.45758027079304
10548.44138.94414700193429.49685299806577
10644.92837.22214700193427.70585299806576
10740.45435.9884197292074.46558027079303
10838.66133.67134119922634.9896588007737
10937.24636.06295357833661.18304642166344
11036.84338.4080444874275-1.56504448742746
11136.42440.4570444874275-4.03304448742746
11237.59440.9950444874275-3.40104448742746
11338.14442.2673172147002-4.12331721470019
11438.73743.1922263056093-4.45522630560928
11534.5642.122499032882-7.56249903288201
11636.0842.3023172147002-6.2223172147002
11733.50840.5640444874275-7.05604448742747
11835.46238.8420444874275-3.38004448742746
11933.37437.6083172147002-4.23431721470019
12032.1135.2912386847195-3.18123868471954
12135.53337.6828510638298-2.14985106382979
12235.53240.0279419729207-4.4959419729207
12337.90342.0769419729207-4.17394197292069
12436.76342.6149419729207-5.8519419729207
12540.39943.8872147001934-3.48821470019342
12644.16444.8121237911025-0.648123791102515
12744.49643.74239651837520.753603481624759
12843.1143.9222147001934-0.812214700193427
12943.8842.18394197292071.69605802707931
13043.9340.46194197292073.4680580270793
13144.32739.22821470019345.09878529980657


Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
160.004695315252513850.00939063050502770.995304684747486
170.002803259498913580.005606518997827160.997196740501086
180.004425102151527710.008850204303055420.995574897848472
190.002938429774519710.005876859549039430.99706157022548
200.003555270743160240.007110541486320470.99644472925684
210.007455394734969150.01491078946993830.99254460526503
220.009342118232419270.01868423646483850.99065788176758
230.009779270814961180.01955854162992240.990220729185039
240.007151943973523840.01430388794704770.992848056026476
250.003483266273364760.006966532546729530.996516733726635
260.00158832407356870.00317664814713740.998411675926431
270.0007423097657456960.001484619531491390.999257690234254
280.000344816784254910.000689633568509820.999655183215745
290.0001679164130594830.0003358328261189660.99983208358694
300.000103594138622040.000207188277244080.999896405861378
316.69557557392967e-050.0001339115114785930.99993304424426
323.23421093144452e-056.46842186288904e-050.999967657890686
331.4080559200877e-052.8161118401754e-050.9999859194408
346.16445084039201e-061.2328901680784e-050.99999383554916
352.40847501663382e-064.81695003326764e-060.999997591524983
369.1703094812339e-071.83406189624678e-060.999999082969052
377.76748682885126e-071.55349736577025e-060.999999223251317
387.37546973762461e-071.47509394752492e-060.999999262453026
393.84767832148696e-077.69535664297392e-070.999999615232168
401.49890267202105e-072.9978053440421e-070.999999850109733
415.69099199198933e-081.13819839839787e-070.99999994309008
422.36774710957823e-084.73549421915646e-080.999999976322529
431.01060159686703e-082.02120319373407e-080.999999989893984
444.62217639580791e-099.24435279161583e-090.999999995377824
452.10113403164327e-094.20226806328654e-090.999999997898866
461.12157557881827e-092.24315115763654e-090.999999998878424
477.422095125092e-101.4844190250184e-090.99999999925779
485.21957580190219e-101.04391516038044e-090.999999999478042
491.83818552444284e-093.67637104888568e-090.999999998161815
508.50716871561119e-091.70143374312224e-080.999999991492831
514.73569876256369e-089.47139752512737e-080.999999952643012
521.56694745934738e-073.13389491869475e-070.999999843305254
532.23862112344181e-074.47724224688362e-070.999999776137888
541.50585961547965e-063.01171923095929e-060.999998494140385
555.4507034690268e-061.09014069380536e-050.99999454929653
561.91872657578322e-053.83745315156645e-050.999980812734242
573.09771607813497e-056.19543215626995e-050.999969022839219
585.96530114247191e-050.0001193060228494380.999940346988575
590.0001084457438051560.0002168914876103120.999891554256195
600.0001367149250199970.0002734298500399940.99986328507498
610.0002039945829579870.0004079891659159740.999796005417042
620.0003334558994992540.0006669117989985080.9996665441005
630.0005761970033648540.001152394006729710.999423802996635
640.001465070776359920.002930141552719830.99853492922364
650.003227139168200420.006454278336400840.9967728608318
660.009118742489622960.01823748497924590.990881257510377
670.02132698358766530.04265396717533060.978673016412335
680.0453090369046410.09061807380928190.95469096309536
690.08733985873028930.1746797174605790.91266014126971
700.1698976910848430.3397953821696870.830102308915157
710.2909581028499590.5819162056999180.709041897150041
720.3787866622826950.7575733245653910.621213337717305
730.490650142708190.981300285416380.50934985729181
740.5920593864099390.8158812271801220.407940613590061
750.6716651772259440.6566696455481130.328334822774056
760.7299700042478630.5400599915042750.270029995752137
770.7868031127080750.426393774583850.213196887291925
780.8278051218081760.3443897563836480.172194878191824
790.8618179165016310.2763641669967370.138182083498369
800.8779484198976030.2441031602047950.122051580102397
810.8966391354312960.2067217291374080.103360864568704
820.9201377694025610.1597244611948780.079862230597439
830.9467007618304030.1065984763391930.0532992381695965
840.9496161812807320.1007676374385370.0503838187192684
850.9550857101280380.08982857974392380.0449142898719619
860.9517720178932770.09645596421344620.0482279821067231
870.9433620851824010.1132758296351970.0566379148175987
880.9360164599019160.1279670801961680.0639835400980841
890.9271038548090470.1457922903819050.0728961451909527
900.9154837365315090.1690325269369830.0845162634684913
910.8992554682387880.2014890635224230.100744531761212
920.8827817418422660.2344365163154680.117218258157734
930.8701084890338670.2597830219322660.129891510966133
940.8635489138699660.2729021722600690.136451086130034
950.8517510903445240.2964978193109520.148248909655476
960.820257741643530.3594845167129390.179742258356469
970.7937108754633880.4125782490732240.206289124536612
980.7881313980272510.4237372039454980.211868601972749
990.759732685618370.4805346287632590.240267314381629
1000.7758531037749310.4482937924501380.224146896225069
1010.8062626756423260.3874746487153490.193737324357674
1020.77681489643330.44637020713340.2231851035667
1030.7570927766120150.4858144467759690.242907223387985
1040.7953442237523460.4093115524953080.204655776247654
1050.896678407280650.20664318543870.10332159271935
1060.9289295282493220.1421409435013570.0710704717506783
1070.9319495065736890.1361009868526220.068050493426311
1080.9703080565234850.05938388695303080.0296919434765154
1090.9722134987172030.05557300256559340.0277865012827967
1100.9780705121100990.0438589757798030.0219294878899015
1110.9728415857745070.0543168284509870.0271584142254935
1120.9913733114198470.01725337716030580.0086266885801529
1130.997193130152310.005613739695379260.00280686984768963
1140.9976064917354480.004787016529103670.00239350826455184
1150.987542722765390.02491455446921850.0124572772346093


Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level480.48NOK
5% type I error level570.57NOK
10% type I error level630.63NOK
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Dec/27/t12934727937ffnh5oyjup3nwj/102zra1293472840.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/27/t12934727937ffnh5oyjup3nwj/102zra1293472840.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/27/t12934727937ffnh5oyjup3nwj/1vyuh1293472840.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/27/t12934727937ffnh5oyjup3nwj/1vyuh1293472840.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/27/t12934727937ffnh5oyjup3nwj/2o7tk1293472840.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/27/t12934727937ffnh5oyjup3nwj/2o7tk1293472840.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/27/t12934727937ffnh5oyjup3nwj/3o7tk1293472840.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/27/t12934727937ffnh5oyjup3nwj/3o7tk1293472840.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/27/t12934727937ffnh5oyjup3nwj/4o7tk1293472840.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/27/t12934727937ffnh5oyjup3nwj/4o7tk1293472840.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/27/t12934727937ffnh5oyjup3nwj/5gyam1293472840.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/27/t12934727937ffnh5oyjup3nwj/5gyam1293472840.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/27/t12934727937ffnh5oyjup3nwj/6gyam1293472840.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/27/t12934727937ffnh5oyjup3nwj/6gyam1293472840.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/27/t12934727937ffnh5oyjup3nwj/7rq971293472840.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/27/t12934727937ffnh5oyjup3nwj/7rq971293472840.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/27/t12934727937ffnh5oyjup3nwj/8rq971293472840.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/27/t12934727937ffnh5oyjup3nwj/8rq971293472840.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/27/t12934727937ffnh5oyjup3nwj/92zra1293472840.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/27/t12934727937ffnh5oyjup3nwj/92zra1293472840.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