Home » date » 2010 » Dec » 19 »

paper - multiple regression - carrièremogelijkheden

*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, 19 Dec 2010 10:14:20 +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/19/t1292753557ht9wq3s0dg5jacq.htm/, Retrieved Sun, 19 Dec 2010 11:12:48 +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/19/t1292753557ht9wq3s0dg5jacq.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 «
46 11 52 26 23 44 8 39 25 15 42 10 42 28 25 41 12 35 30 18 48 12 32 28 21 49 10 49 40 19 51 8 33 28 15 47 10 47 27 22 49 11 46 25 19 46 7 40 27 20 51 10 33 32 26 54 9 39 28 26 52 9 37 21 21 52 11 56 40 18 45 12 36 29 19 52 5 24 27 19 56 10 56 31 18 54 11 32 33 19 50 12 41 28 24 35 9 24 26 28 48 3 42 25 20 37 10 47 37 27 47 7 25 13 18 31 9 33 32 19 45 9 43 32 24 47 10 45 38 21 44 9 44 30 22 30 19 46 33 25 40 14 31 22 19 44 5 31 29 15 43 13 42 33 34 51 7 28 31 23 48 8 38 23 19 55 11 59 42 26 48 11 43 35 15 53 12 29 31 15 49 9 38 31 17 44 13 39 38 30 45 12 50 34 19 40 11 44 33 28 44 18 29 23 23 41 8 29 18 23 46 14 36 33 21 47 10 43 26 18 48 13 28 29 19 43 13 39 23 24 46 8 35 18 15 53 10 43 36 20 33 8 28 21 24 47 9 49 31 9 43 10 33 31 20 45 9 39 29 20 49 9 36 24 10 45 9 24 35 44 37 10 47 37 20 42 8 34 29 20 43 11 33 31 11 44 11 43 34 21 39 10 41 38 21 37 23 40 27 19 53 9 39 33 17 48 12 54 36 16 47 9 43 27 14 49 9 45 33 19 47 8 29 24 21 56 9 45 31 16 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 time27 seconds
R Server'George Udny Yule' @ 72.249.76.132


Multiple Linear Regression - Estimated Regression Equation
Carrièremogelijkheden[t] = + 40.7659808745792 -0.215882565886822Geen_Motivatie[t] + 0.177165440935508Leermogelijkheden[t] + 0.0943861603943652Persoonlijke_redenen[t] -0.136765672292484Ouders[t] + e[t]


Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STAT
H0: parameter = 0
2-tail p-value1-tail p-value
(Intercept)40.76598087457923.48757111.688900
Geen_Motivatie-0.2158825658868220.167317-1.29030.1990710.099535
Leermogelijkheden0.1771654409355080.0664232.66720.0085430.004271
Persoonlijke_redenen0.09438616039436520.0909281.0380.3010330.150516
Ouders-0.1367656722924840.083539-1.63720.1038280.051914


Multiple Linear Regression - Regression Statistics
Multiple R0.348733567865764
R-squared0.121615101356386
Adjusted R-squared0.0966963808274888
F-TEST (value)4.88047133942352
F-TEST (DF numerator)4
F-TEST (DF denominator)141
p-value0.00102534486890948
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation5.37718131977644
Sum Squared Residuals4076.88513135113


Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolation
Forecast
Residuals
Prediction Error
14646.9123052859971-0.91230528599714
24446.2565414694413-2.25654146944133
34245.2717744187325-3.27177441873248
44144.7459832272464-3.74598322724639
54843.61541756677374.38458243322631
64948.46516046376830.534839536231693
75145.47670730501145.52329269498862
84746.47351247989310.526487520106907
94946.30198916915952.69801083084051
104646.15453343559-0.154533435589972
115143.91806441959797.08193558040212
125444.81939498952039.18060501047972
135244.48818934635117.51181065364887
145249.62620165672252.37379834327748
154544.69199683549500.308003164504952
165243.8884171846888.11158281531203
175648.99260877906017.00739122093994
185444.57676227921739.4232377207827
195044.79960951831585.2003904816842
203541.699609710114-6.69960971011397
214847.18362226021950.816377739780457
223746.7335457223743-9.73354572237433
234742.44917692062124.55082307937879
243145.0913066915321-14.0913066915321
254546.1791327394247-1.17913273942474
264747.2941950346526-0.294195034652579
274446.4410572041565-2.44105720415649
283044.5094238914649-14.5094238914649
294042.7137013762833-2.71370137628331
304445.8644102811952-1.86441028119520
314343.8651664724115-0.865166472411477
325143.99579576906397.00420423093611
334845.34354101854722.65645898145284
345549.25234492197795.74765507802209
354847.26141713946650.738582860533452
365344.18767375890528.81232624109484
374946.15627908040022.84372091959978
384444.3526636407467-0.352663640746715
394547.644243810564-2.64424381056398
404045.471856519811-5.47185651981104
414441.04316370208942.95683629791056
424142.7300585589858-1.73005855898583
434644.36424500071391.63575499928610
444746.21752724492660.782472755073368
454843.05879074212424.94120925787584
464343.7574652685861-0.75746526858614
474644.88717658293871.11282341706126
485346.88785750428536.11214249571468
493342.6992859269409-9.69928592694093
504749.1992243090307-2.19922430903068
514344.6442722929584-1.64427229295841
524545.7343751836695-0.734375183669551
534946.0986047818162.90139521818396
544540.36083439698354.63916560301648
553747.6909054284217-10.6909054284217
564245.0644305448788-3.06443054487884
574345.6592807777039-2.65928077770395
584446.3464369453173-2.34643694531728
593946.5855332709105-7.58553327091055
603742.8371780536933-5.83717805369331
615346.52221684212456.47778315787554
624848.9519749119722-0.951974911972193
634747.0748586603778-0.0748586603777539
644947.31167814315251.68832185684746
654743.5699068659373.43009313406301
665647.53320283924138.46679716075874
675147.47723670423483.52276329576517
684345.1276584526603-2.12765845266034
695149.00229891677671.99770108322327
703643.748223752556-7.74822375255598
715548.67504079877136.3249592012287
723343.2000726188211-10.2000726188211
734246.9938505445329-4.99385054453290
744343.3559410421867-0.355941042186717
754446.2910650094376-2.29106500943761
764745.79996845527411.20003154472588
774344.67253398374-1.67253398373999
784748.9695465414767-1.96954654147674
794141.8597982493342-0.859798249334152
805342.113120492251710.8868795077483
814745.62392894013611.37607105986395
822344.078575049605-21.0785750496050
834348.3263265272161-5.32632652721615
844744.73265622246902.26734377753105
854747.1940782230517-0.194078223051731
864944.39929973871844.60070026128159
875046.69967938262343.30032061737664
884347.3580171415609-4.35801714156085
894445.2703888746041-1.27038887460414
904948.22942942555850.77057057444154
914744.35573129990432.6442687000957
923942.7547208639391-3.75472086393914
934946.13447638470812.86552361529186
944145.9500236511115-4.95002365111153
954044.447024281255-4.44702428125504
963842.8524723117169-4.85247231171693
974347.2093474898518-4.20934748985176
985544.405347064691410.5946529353086
994646.9166503930751-0.916650393075118
1005446.70930651922157.29069348077852
1014746.22355499569650.776445004303501
1023545.1183539355116-10.1183539355116
1034143.8677404147933-2.86774041479334
1045348.30716077502454.69283922497553
1054443.71423141056790.285768589432078
1064843.22437482309254.77562517690751
1074945.00394820546793.99605179453206
1083942.8431677945682-3.84316779456822
1094542.93584579138482.06415420861516
1103444.5427069361107-10.5427069361107
1114645.38287839117370.61712160882627
1124544.78529455132450.214705448675528
1135347.55222301399275.44777698600732
1145145.63771218045675.36228781954329
1154549.8480234523746-4.84802345237463
1165045.28793498422274.71206501577735
1174144.4246643390062-3.42466433900625
1184447.9567893796636-3.95678937966365
1194345.1237619672687-2.12376196726869
1204241.26385957194410.7361404280559
1214848.4535535839151-0.453553583915084
1224543.89446503932351.10553496067654
1234845.24983810694662.75016189305340
1244844.48801824902483.51198175097517
1255348.81382369555144.18617630444862
1264546.7600992495782-1.76009924957815
1274541.8786918931863.12130810681397
1285045.80897587285944.19102412714057
1294843.04780358128384.95219641871625
1304146.4873332014463-5.48733320144625
1315346.64022248665896.35977751334114
1324044.8389208423939-4.83892084239389
1334944.58006456548224.41993543451782
1344643.38188840891732.61811159108269
1354846.65133512107391.34866487892609
1364348.7154780486468-5.71547804864683
1375344.9655536999668.03444630003395
1385146.82790636288274.17209363711735
1394145.8304439877556-4.83044398775563
1404545.5029262514193-0.502926251419318
1414443.39448759847420.605512401525817
1424345.0426023293007-2.04260232930072
1433443.769925965897-9.76992596589701
1443846.1042094307854-8.10420943078543
1454042.3982842365759-2.39828423657595
1464842.49926735564345.50073264435664


Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
80.4683658667226100.9367317334452210.53163413327739
90.3704266644132450.7408533288264890.629573335586755
100.2357829688996630.4715659377993260.764217031100337
110.2306476524354560.4612953048709110.769352347564544
120.259904504032630.519809008065260.74009549596737
130.2442721757930620.4885443515861240.755727824206938
140.2410055268025870.4820110536051750.758994473197413
150.1694043339444100.3388086678888190.83059566605559
160.1217759044360080.2435518088720170.878224095563992
170.1943121135429970.3886242270859940.805687886457003
180.2460206373773110.4920412747546220.753979362622689
190.2017109236202290.4034218472404590.79828907637977
200.4732509292639860.9465018585279720.526749070736014
210.4140984137711740.8281968275423490.585901586228826
220.5943160635966180.8113678728067630.405683936403382
230.5340863061743470.9318273876513060.465913693825653
240.9011216404607480.1977567190785040.0988783595392519
250.8696322821266460.2607354357467070.130367717873354
260.831395726769010.3372085464619790.168604273230990
270.7995885091338970.4008229817322060.200411490866103
280.9219846339360280.1560307321279450.0780153660639723
290.9019869191083230.1960261617833540.0980130808916768
300.9003626600309550.199274679938090.099637339969045
310.8793901411564170.2412197176871650.120609858843583
320.8879541876614970.2240916246770050.112045812338503
330.8609120438056990.2781759123886030.139087956194301
340.8728647477361170.2542705045277660.127135252263883
350.840980761349660.318038477300680.15901923865034
360.8892073300779780.2215853398440440.110792669922022
370.8649372243793290.2701255512413430.135062775620671
380.8349391945432570.3301216109134850.165060805456743
390.807473568969730.385052862060540.19252643103027
400.8019319516806960.3961360966386090.198068048319304
410.7881109057731340.4237781884537330.211889094226866
420.7607523577007990.4784952845984020.239247642299201
430.7213727561018770.5572544877962450.278627243898123
440.6755652979662690.6488694040674620.324434702033731
450.6590716563628170.6818566872743650.340928343637183
460.6100071252981870.7799857494036260.389992874701813
470.5670379712745870.8659240574508270.432962028725413
480.5699027888422160.8601944223155680.430097211157784
490.687185497465230.625629005069540.31281450253477
500.6729589591193960.6540820817612080.327041040880604
510.635858213082780.7282835738344390.364141786917219
520.5901180259564240.8197639480871530.409881974043576
530.5541606939940650.891678612011870.445839306005935
540.5484522198752310.9030955602495380.451547780124769
550.6973787812323950.605242437535210.302621218767605
560.6738838204245350.6522323591509310.326116179575465
570.6451865942121090.7096268115757830.354813405787891
580.6064832294649910.7870335410700170.393516770535009
590.6515940873164460.6968118253671080.348405912683554
600.6691619427490910.6616761145018170.330838057250909
610.6925822715997640.6148354568004720.307417728400236
620.6522161210853720.6955677578292550.347783878914628
630.6064906377125250.787018724574950.393509362287475
640.5639150801364460.8721698397271070.436084919863554
650.5428508949466440.9142982101067120.457149105053356
660.6197156443472530.7605687113054940.380284355652747
670.5942923388993510.8114153222012980.405707661100649
680.5555527221776870.8888945556446260.444447277822313
690.5137370575412840.9725258849174320.486262942458716
700.5695547901766960.8608904196466080.430445209823304
710.589396572206470.821206855587060.41060342779353
720.7003481093109950.5993037813780110.299651890689005
730.6912601106496150.617479778700770.308739889350385
740.649421839833690.7011563203326210.350578160166310
750.6108077435789950.7783845128420090.389192256421005
760.5691568800822340.8616862398355320.430843119917766
770.5284483457414780.9431033085170430.471551654258522
780.4863076170540380.9726152341080760.513692382945962
790.4639830902783470.9279661805566950.536016909721653
800.6162579940682270.7674840118635460.383742005931773
810.5737097940580860.852580411883830.426290205941915
820.9772666056754190.04546678864916210.0227333943245810
830.9764963816429960.0470072367140070.0235036183570035
840.9697873601386280.06042527972274390.0302126398613719
850.9607678404666510.07846431906669770.0392321595333488
860.9564965260786840.08700694784263130.0435034739213156
870.951424530978890.09715093804221780.0485754690211089
880.944718596322980.1105628073540420.0552814036770208
890.9297039203317610.1405921593364770.0702960796682385
900.911286208442710.1774275831145800.0887137915572898
910.8955146263054540.2089707473890930.104485373694546
920.8855206632753930.2289586734492130.114479336724607
930.8648714931693220.2702570136613570.135128506830678
940.8641198709997540.2717602580004920.135880129000246
950.8722226717113980.2555546565772040.127777328288602
960.8850311235799910.2299377528400180.114968876420009
970.8726095801135640.2547808397728710.127390419886436
980.9712232770891450.05755344582171050.0287767229108552
990.9616275641811640.0767448716376720.038372435818836
1000.9743280356153480.05134392876930350.0256719643846517
1010.9650479199579080.0699041600841850.0349520800420925
1020.9823452674796280.03530946504074490.0176547325203724
1030.9803998630106240.03920027397875190.0196001369893760
1040.981327075842820.03734584831435950.0186729241571798
1050.9783235091357260.04335298172854810.0216764908642741
1060.9726031483149570.05479370337008570.0273968516850428
1070.967330498295080.06533900340984140.0326695017049207
1080.975149461907550.04970107618489790.0248505380924489
1090.9660914851173020.06781702976539680.0339085148826984
1100.9750089804282680.0499820391434640.024991019571732
1110.967254116674510.0654917666509780.032745883325489
1120.9540773292125790.09184534157484240.0459226707874212
1130.9463687941782180.1072624116435640.053631205821782
1140.951491968232930.09701606353414220.0485080317670711
1150.9429296226453740.1141407547092510.0570703773546254
1160.9574009317482180.08519813650356450.0425990682517823
1170.9472276410418650.1055447179162700.0527723589581349
1180.934073692702290.1318526145954210.0659263072977105
1190.9129488616773680.1741022766452630.0870511383226316
1200.881558184692160.2368836306156790.118441815307839
1210.8431417651706720.3137164696586560.156858234829328
1220.8249979462783180.3500041074433650.175002053721682
1230.7964340669202210.4071318661595570.203565933079779
1240.751496771199730.4970064576005390.248503228800270
1250.7541631232455750.4916737535088510.245836876754425
1260.7130933402110370.5738133195779250.286906659788963
1270.7180566105143490.5638867789713020.281943389485651
1280.6955922736615130.6088154526769750.304407726338488
1290.6747702152079540.6504595695840920.325229784792046
1300.5986862326165730.8026275347668530.401313767383427
1310.575909087697470.8481818246050610.424090912302531
1320.495233986019270.990467972038540.50476601398073
1330.4603986624988290.9207973249976570.539601337501171
1340.4217169297862150.843433859572430.578283070213785
1350.3479265176910470.6958530353820950.652073482308953
1360.3498683196688890.6997366393377770.650131680331111
1370.6971277565269790.6057444869460420.302872243473021
1380.7274974510073780.5450050979852430.272502548992622


Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level00OK
5% type I error level80.0610687022900763NOK
10% type I error level230.175572519083969NOK
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Dec/19/t1292753557ht9wq3s0dg5jacq/10gcnz1292753632.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/19/t1292753557ht9wq3s0dg5jacq/10gcnz1292753632.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/19/t1292753557ht9wq3s0dg5jacq/1rbr61292753632.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/19/t1292753557ht9wq3s0dg5jacq/1rbr61292753632.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/19/t1292753557ht9wq3s0dg5jacq/222qq1292753632.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/19/t1292753557ht9wq3s0dg5jacq/222qq1292753632.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/19/t1292753557ht9wq3s0dg5jacq/322qq1292753632.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/19/t1292753557ht9wq3s0dg5jacq/322qq1292753632.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/19/t1292753557ht9wq3s0dg5jacq/422qq1292753632.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/19/t1292753557ht9wq3s0dg5jacq/422qq1292753632.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/19/t1292753557ht9wq3s0dg5jacq/5uc7c1292753632.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/19/t1292753557ht9wq3s0dg5jacq/5uc7c1292753632.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/19/t1292753557ht9wq3s0dg5jacq/6uc7c1292753632.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/19/t1292753557ht9wq3s0dg5jacq/6uc7c1292753632.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/19/t1292753557ht9wq3s0dg5jacq/7n3oe1292753632.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/19/t1292753557ht9wq3s0dg5jacq/7n3oe1292753632.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/19/t1292753557ht9wq3s0dg5jacq/8n3oe1292753632.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/19/t1292753557ht9wq3s0dg5jacq/8n3oe1292753632.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/19/t1292753557ht9wq3s0dg5jacq/9gcnz1292753632.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/19/t1292753557ht9wq3s0dg5jacq/9gcnz1292753632.ps (open in new window)


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