Home » date » 2010 » Dec » 19 »

paper multiple regression - Ouders

*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 08:10:19 +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/t1292746135ma9w2a8xs2qrae1.htm/, Retrieved Sun, 19 Dec 2010 09:08:55 +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/t1292746135ma9w2a8xs2qrae1.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 time7 seconds
R Server'Sir Ronald Aylmer Fisher' @ 193.190.124.24


Multiple Linear Regression - Estimated Regression Equation
Ouders[t] = + 27.8552750214553 -0.136396824808244Carrièremogelijkheden[t] + 0.0675556474155193Geen_Motivatie[t] -0.060061041784308Leermogelijkheden[t] + 0.0319367375649696Persoonlijke_redenen[t] + e[t]


Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STAT
H0: parameter = 0
2-tail p-value1-tail p-value
(Intercept)27.85527502145534.287416.49700
Carrièremogelijkheden-0.1363968248082440.083313-1.63720.1038280.051914
Geen_Motivatie0.06755564741551930.1679780.40220.6881680.344084
Leermogelijkheden-0.0600610417843080.067798-0.88590.3771880.188594
Persoonlijke_redenen0.03193673756496960.0911120.35050.726470.363235


Multiple Linear Regression - Regression Statistics
Multiple R0.183615776054193
R-squared0.0337147532159837
Adjusted R-squared0.00630240578948671
F-TEST (value)1.22991120356934
F-TEST (DF numerator)4
F-TEST (DF denominator)141
p-value0.300915124782477
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation5.36992548276381
Sum Squared Residuals4065.89005635150


Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolation
Forecast
Residuals
Prediction Error
12320.03131420575192.96868579424807
21520.8502977187529-5.85029771875292
32521.17382975054243.82617024945757
41821.9296386378018-3.92963863780180
52121.0911705143671-0.0911705143670777
61920.1818655351742-1.18186553517419
71520.3516964084960-5.35169640849596
82220.15960368001471.84039631998530
91919.9505532444681-0.950553244468094
102020.5137608550665-0.513760855066537
112620.61455465358695.38544534641312
122619.64969533078096.3503046692191
132119.81905390101121.18094609898878
141819.4198034156748-1.41980341567483
151921.2920535592195-2.29205355921955
161920.5212452799350-1.52124527993496
171818.5192298309416-0.519229830941602
181920.3649176059269-1.36491760592694
192420.27782748869183.72217251130818
202823.07827715377224.92172284622778
212019.78674905708940.213250942910584
222721.84293930374685.15706069625316
231820.8311653311133-2.83116533111334
241923.2749355023362-4.27493550233625
252420.76476953717773.23523046282226
262120.63102987679800.368970123202024
272220.77723184507171.22276815492826
282523.33803199566871.66196800433135
291922.1858970240586-3.18589702405856
301521.2558660610407-6.2558660610407
313421.399783555805612.6002164441944
322320.68025618269692.31974381730311
331920.3008979861743-1.30089798617430
342618.89430329102717.10569670897289
351520.5865005702790-5.58650057027896
361520.6851797283737-5.68517972837369
371720.4875507093013-3.48755070930134
383021.60325354417518.39674645582488
391920.6108826620641-1.61088266206409
402821.55374065183076.44625934816933
412322.06259113562120.937408864378753
422321.63654144806591.36345855193406
432121.4185149795022-0.418514979502221
441820.3679111095870-2.36791110958696
451921.4309070664848-2.4309070664848
462421.26059930550882.73940069449118
471520.5941910733189-5.59419107331887
482019.86889753638720.131102463612813
492422.88358730101111.11641269898889
50920.0996728992904-11.0996728992904
512021.6737925144879-1.67379251448786
522020.9092034916201-0.909203491620067
531020.3841156299152-10.3841156299152
544422.001739543774521.9982604562255
552021.8429393037468-1.84293930374684
562021.5511435275508-1.55114352755082
571121.7413481619034-10.7413481619034
582121.1001511319470-0.100151131946966
592121.9624486424012-0.962448642401164
601922.8222226369890-3.82222263698905
611719.945775843414-2.94577584341399
621620.0253214956321-4.02532149563206
631420.3322921997364-6.33229219973641
641920.1309968919411-1.13099689194112
652121.0097809246063-0.00978092460629047
661619.1123456431535-3.11234564315347
671919.6742076836261-0.674207683626076
681921.0504377576310-2.05043775763105
691619.7325709324904-3.73257093249036
702422.67168380362731.32831619637267
712918.776009261438610.2239907385614
722123.2948221949500-2.29482219495003
732021.5251338637571-1.52513386375709
742321.21550141066151.78449858933850
751821.1414105291232-3.14141052912322
761920.8523421382671-1.85234213826710
772321.76396223985711.23603776014293
781920.4059051819832-1.40590518198322
792122.4155330016073-1.41553300160730
802619.61102847332176.38897152667828
811321.0981225959954-8.09812259599542
822324.4073694979785-1.40736949797845
831720.5006959830210-3.50069598302104
843020.64022227534929.35977772465079
851920.1239847701641-1.12398477016415
862221.02627203138000.973727968619965
871420.3755960164269-6.37559601642685
881420.9736897116643-6.9736897116643
892121.0342932774515-0.0342932774514690
902119.89641927645501.10358072354497
913320.709736237804912.2902637621951
922322.4594937197980.540506280201979
933020.14230393091809.85769606908204
941921.7420911678777-2.74209116787772
952122.1448981490024-1.14489814900241
962522.52269440986502.47730559013496
971820.7690644543776-2.76906445437761
982519.06631444112315.93368555887687
992120.63967975134630.360320248653658
1001619.9258189298888-3.92581892988878
1011720.9237102190283-3.92371021902825
1022322.16237231574520.83762768425482
1032621.86208299038634.13791700961372
1041819.4165335063321-1.41653350633206
1051921.0152311107233-2.01523111072331
1062821.28279093975696.7172090602431
1072020.6582809139829-0.658280913982925
1082922.40705754470506.59294245529503
1091921.6373003376029-2.63730033760292
1101822.0920292428411-4.09202924284113
1112421.0619611621422.93803883785799
1121221.5379382136825-9.53793821368249
1131920.0680125674082-1.06801256740822
1142519.95007076061395.04992923938614
1151220.3913984545750-8.39139845457504
1161520.4242197581743-5.42421975817426
1172521.6030371786413.396962821359
1181420.8204756216136-6.82047562161355
1191921.429735914005-2.429735914005
1202322.16648263453620.833517365463779
1211920.1943278430682-1.19432784306819
1222420.63294963145213.36705036854787
1232021.2002721454044-1.20027214540439
1241621.155043989497-5.15504398949702
1251319.4765945481164-6.47659454811637
1262020.8586214348325-0.858621434832529
1273021.24682540331228.75317459668782
1281820.3417009638218-2.34170096382176
1292221.50423346228610.495766537713927
1302120.77518742555760.224812574442448
1312519.37882602038135.62117397961866
1321821.7956826118879-3.79568261188792
1332520.50622209284934.49377790715066
1344420.387998284172223.6120017158278
1351220.5600740589796-8.56007405897964
1361720.7523774501952-3.75237745019517
1372620.23675839272425.76324160727575
1381819.9294410620257-1.92944106202573
1392121.4341610922649-0.434161092264918
1402420.79657601368273.20342398631734
1412022.1605159887418-2.16051598874177
1422421.03362049238862.96637950761145
1432822.45451013397265.54548986602741
1442021.4884955422495-1.48849554224946
1453321.544001144713811.4559988552862
1461921.4645676612952-2.46456766129522


Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
80.2701043389014680.5402086778029370.729895661098532
90.1871224452931190.3742448905862370.812877554706881
100.1302353453099590.2604706906199170.869764654690041
110.2817633241584850.563526648316970.718236675841515
120.2748458314707260.5496916629414510.725154168529274
130.1863139750332970.3726279500665930.813686024966703
140.1627770592240200.3255541184480390.83722294077598
150.1142017586776360.2284035173552710.885798241322364
160.07192648506365620.1438529701273120.928073514936344
170.05692372366014430.1138474473202890.943076276339856
180.03779187333207640.07558374666415280.962208126667924
190.02677974274626490.05355948549252980.973220257253735
200.0435762778242930.0871525556485860.956423722175707
210.0278196554781020.0556393109562040.972180344521898
220.02777154190621430.05554308381242860.972228458093786
230.01978131449854730.03956262899709460.980218685501453
240.02163650085327560.04327300170655120.978363499146724
250.01636563312798580.03273126625597160.983634366872014
260.01003638089031810.02007276178063620.989963619109682
270.006094921083185210.01218984216637040.993905078916815
280.003609481228167850.00721896245633570.996390518771832
290.002772422529691970.005544845059383930.997227577470308
300.003537500675776640.007075001351553280.996462499324223
310.03431695134693850.0686339026938770.965683048653062
320.02709177077042370.05418354154084740.972908229229576
330.01864066005530650.0372813201106130.981359339944693
340.01750945659301820.03501891318603640.982490543406982
350.02671706174543160.05343412349086330.973282938254568
360.03066400897557400.06132801795114810.969335991024426
370.02578051296395720.05156102592791450.974219487036043
380.03868728585783360.07737457171566720.961312714142166
390.03264021954184860.06528043908369720.967359780458151
400.03499619598825690.06999239197651380.965003804011743
410.02523535906429960.05047071812859920.9747646409357
420.01984640283307800.03969280566615590.980153597166922
430.01432643006768050.0286528601353610.98567356993232
440.01108940937567020.02217881875134040.98891059062433
450.008253565745794870.01650713149158970.991746434254205
460.006134695863974390.01226939172794880.993865304136026
470.006022813607060310.01204562721412060.99397718639294
480.004057492137789530.008114984275579060.99594250786221
490.002837646988911320.005675293977822640.997162353011089
500.01610075929555750.03220151859111500.983899240704442
510.01195725013481200.02391450026962410.988042749865188
520.008460328235810960.01692065647162190.991539671764189
530.02156630061360680.04313260122721350.978433699386393
540.4849686666253150.969937333250630.515031333374685
550.456137985059750.91227597011950.54386201494025
560.4119403201623410.8238806403246830.588059679837659
570.58721003837370.8255799232526010.412789961626301
580.5396403965332120.9207192069335750.460359603466788
590.5006763327332750.998647334533450.499323667266725
600.4797462662395770.9594925324791540.520253733760423
610.4479781621802580.8959563243605170.552021837819742
620.4272925773910170.8545851547820340.572707422608983
630.4409070590547460.8818141181094920.559092940945254
640.3949397923370440.7898795846740870.605060207662956
650.3502212373950060.7004424747900120.649778762604994
660.3222123441709700.6444246883419390.67778765582903
670.2817561330996320.5635122661992630.718243866900368
680.2492604460838680.4985208921677350.750739553916132
690.2317270308304550.463454061660910.768272969169545
700.199270671603030.398541343206060.80072932839697
710.2979942035360210.5959884070720420.702005796463979
720.2650765357903630.5301530715807270.734923464209637
730.2354945556294810.4709891112589620.764505444370519
740.2116091428507490.4232182857014970.788390857149251
750.1893621235432380.3787242470864770.810637876456762
760.1621458871786280.3242917743572570.837854112821372
770.1364457107676150.2728914215352310.863554289232385
780.1152831841713110.2305663683426210.88471681582869
790.09485028065912680.1897005613182540.905149719340873
800.1110829448590670.2221658897181340.888917055140933
810.1448289728846460.2896579457692920.855171027115354
820.1194250174589740.2388500349179480.880574982541026
830.1056450894984120.2112901789968240.894354910501588
840.1572827065987970.3145654131975940.842717293401203
850.1319553927175630.2639107854351250.868044607282437
860.1084632396556130.2169264793112250.891536760344387
870.1169625384206010.2339250768412010.8830374615794
880.1332344305908940.2664688611817870.866765569409106
890.1089979786136390.2179959572272780.89100202138636
900.0881795793753560.1763591587507120.911820420624644
910.2129270901278330.4258541802556650.787072909872167
920.1787459947327120.3574919894654240.821254005267288
930.273395080548010.546790161096020.72660491945199
940.2390094820601250.4780189641202490.760990517939875
950.2033323438250510.4066646876501010.79666765617495
960.1745984118351970.3491968236703940.825401588164803
970.1537284606949830.3074569213899660.846271539305017
980.1491137870822990.2982275741645970.850886212917701
990.1215925772290980.2431851544581970.878407422770902
1000.1050088291665320.2100176583330630.894991170833468
1010.09081349341059220.1816269868211840.909186506589408
1020.07180127450611880.1436025490122380.928198725493881
1030.064430645311590.128861290623180.93556935468841
1040.05002335973198620.1000467194639720.949976640268014
1050.04337120641472850.0867424128294570.956628793585272
1060.0554198610065540.1108397220131080.944580138993446
1070.04211995858189980.08423991716379960.9578800414181
1080.05899133311740040.1179826662348010.9410086668826
1090.04734269325304640.09468538650609290.952657306746954
1100.05264059563368630.1052811912673730.947359404366314
1110.04547612351063680.09095224702127370.954523876489363
1120.0722470838823840.1444941677647680.927752916117616
1130.06166432216919430.1233286443383890.938335677830806
1140.05561505827948840.1112301165589770.944384941720512
1150.06517676310120290.1303535262024060.934823236898797
1160.07375409903012180.1475081980602440.926245900969878
1170.06014016610787720.1202803322157540.939859833892123
1180.06572029920459950.1314405984091990.9342797007954
1190.05171999931886670.1034399986377330.948280000681133
1200.03851311625099670.07702623250199330.961486883749003
1210.02705416916512890.05410833833025780.972945830834871
1220.02360679884198850.04721359768397710.976393201158011
1230.01744792800809730.03489585601619450.982552071991903
1240.01629742700208610.03259485400417210.983702572997914
1250.01935226492287840.03870452984575680.980647735077122
1260.01241616435442460.02483232870884920.987583835645575
1270.01102264237876220.02204528475752440.988977357621238
1280.00896469381461540.01792938762923080.991035306185385
1290.005752833258742850.01150566651748570.994247166741257
1300.006048663224029020.01209732644805800.993951336775971
1310.004245428406059810.008490856812119620.99575457159394
1320.003011902295037200.006023804590074410.996988097704963
1330.001629444576872430.003258889153744850.998370555423128
1340.3588995496868840.7177990993737670.641100450313116
1350.8817418153072870.2365163693854260.118258184692713
1360.8177938143502140.3644123712995720.182206185649786
1370.7009782127574050.598043574485190.299021787242595
1380.537894708952610.924210582094780.46210529104739


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


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


http://www.freestatistics.org/blog/date/2010/Dec/19/t1292746135ma9w2a8xs2qrae1/2qu6j1292746208.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/19/t1292746135ma9w2a8xs2qrae1/2qu6j1292746208.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/19/t1292746135ma9w2a8xs2qrae1/3qu6j1292746208.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/19/t1292746135ma9w2a8xs2qrae1/3qu6j1292746208.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/19/t1292746135ma9w2a8xs2qrae1/4qu6j1292746208.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/19/t1292746135ma9w2a8xs2qrae1/4qu6j1292746208.ps (open in new window)


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


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


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


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


http://www.freestatistics.org/blog/date/2010/Dec/19/t1292746135ma9w2a8xs2qrae1/9544s1292746208.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/19/t1292746135ma9w2a8xs2qrae1/9544s1292746208.ps (open in new window)


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