Home » date » 2010 » Dec » 03 »

p_Stress_MR2

*The author of this computation has been verified*
R Software Module: /rwasp_multipleregression.wasp (opens new window with default values)
Title produced by software: Multiple Regression
Date of computation: Fri, 03 Dec 2010 20:39:07 +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/03/t12914087917cf6oqho6mftj1m.htm/, Retrieved Fri, 03 Dec 2010 21:40:02 +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/03/t12914087917cf6oqho6mftj1m.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 «
10 53 7 6 15 11 12 2 4 25 25 3.4 6 86 4 6 15 12 11 4 3 25 24 4 13 66 6 5 14 15 14 7 5 19 21 3.2 12 67 5 4 10 10 12 3 3 18 23 3.2 8 76 4 4 10 12 21 7 6 18 17 2.6 6 78 3 6 12 11 12 2 5 22 19 3.2 10 53 5 7 18 5 22 7 6 29 18 3.8 10 80 6 5 12 16 11 2 6 26 27 3.6 9 74 5 4 14 11 10 1 5 25 23 3.6 9 76 6 6 18 15 13 2 5 23 23 4 7 79 7 1 9 12 10 6 3 23 29 3.4 5 54 6 4 11 9 8 1 5 23 21 2.6 14 67 7 6 11 11 15 1 7 24 26 4.4 6 87 6 6 17 15 10 1 5 30 25 4 10 58 4 5 8 12 14 2 5 19 25 3.8 10 75 6 3 16 16 14 2 3 24 23 3.6 7 88 4 7 21 14 11 2 5 32 26 3.8 10 64 5 2 24 11 10 1 6 30 20 3.6 8 57 3 5 21 10 13 7 5 29 29 3.8 6 66 3 5 14 7 7 1 2 17 24 3.6 10 54 4 3 7 11 12 2 5 25 23 4 12 56 5 5 18 10 14 4 4 26 24 2.8 7 86 3 5 18 11 11 2 6 26 30 5 15 80 7 6 13 16 9 1 3 25 22 4.4 8 76 7 4 11 14 11 1 5 23 22 3.2 10 69 4 4 13 12 15 5 4 21 13 3.4 13 67 4 4 13 12 13 2 5 19 24 3.2 8 80 5 2 18 11 9 1 2 35 17 5 11 54 6 3 14 6 15 3 2 19 24 3.6 7 71 5 6 12 14 10 1 5 20 21 4.8 9 84 4 6 9 9 11 2 2 21 23 3.8 10 74 6 5 1 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 time13 seconds
R Server'George Udny Yule' @ 72.249.76.132
R Framework
error message
The field 'Names of X columns' contains a hard return which cannot be interpreted.
Please, resubmit your request without hard returns in the 'Names of X columns'.


Multiple Linear Regression - Estimated Regression Equation
PStress[t] = + 5.25986734334252 -0.0356695703760594BelInSprt[t] + 0.162920650667659KunnenRekRel[t] -0.149394398367188ExtraCurAct[t] -0.0485862018705257Verwouders[t] + 0.0628810522000706Populariteit[t] + 0.399104485306294Depressie[t] -0.180064637594153Slaapgebrek[t] + 0.218592098994588ToekZorgen[t] -0.0278347970425497PersStand[t] + 0.0512352154322369MateGeorgZijn[t] + 0.274485494053298`Eetgewoonten `[t] + e[t]


Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STAT
H0: parameter = 0
2-tail p-value1-tail p-value
(Intercept)5.259867343342522.3329392.25460.0258310.012915
BelInSprt-0.03566957037605940.017485-2.040.0433770.021689
KunnenRekRel0.1629206506676590.1112631.46430.1455310.072766
ExtraCurAct-0.1493943983671880.128863-1.15930.2484490.124225
Verwouders-0.04858620187052570.051476-0.94390.3469870.173494
Populariteit0.06288105220007060.0581941.08050.28190.14095
Depressie0.3991044853062940.0641746.219100
Slaapgebrek-0.1800646375941530.095025-1.89490.0603240.030162
ToekZorgen0.2185920989945880.1186931.84170.0678040.033902
PersStand-0.02783479704254970.045309-0.61430.540070.270035
MateGeorgZijn0.05123521543223690.0490321.04490.2979890.148994
`Eetgewoonten `0.2744854940532980.3362250.81640.4157790.20789


Multiple Linear Regression - Regression Statistics
Multiple R0.627502539554768
R-squared0.393759437147683
Adjusted R-squared0.342462158752487
F-TEST (value)7.67602979078433
F-TEST (DF numerator)11
F-TEST (DF denominator)130
p-value4.1419778717966e-10
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation1.93510610595773
Sum Squared Residuals486.802633370934


Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolation
Forecast
Residuals
Prediction Error
11010.3981109080137-0.398110908013729
267.9307644073114-1.9307644073114
31310.24463935484742.75536064515261
4129.690553688334482.30944631166553
5812.3877245340208-4.38772453402081
668.94023575027133-2.94023575027133
71012.5675446540060-2.56754465400602
81010.0492825674870-0.0492825674870383
999.2234580613084-0.223458061308392
10910.2561427858389-1.25614278583888
1179.0956231693256-2.09562316932559
1259.00027131926342-4.00027131926342
131412.47979162725591.52020837274413
1468.80274174681465-2.80274174681465
151011.5769840172752-1.57698401727518
161010.7243402999109-0.724340299910876
1778.19431898730253-1.19431898730253
18109.318793010583240.681206989416764
1989.319515426293-1.31951542629299
2067.20287855468407-1.20287855468407
211010.9913651602625-0.991365160262543
221210.10033402262331.89966597737672
2379.27856605897553-2.27856605897553
24158.731549103038796.26845089696121
25810.1061066504412-2.10610665044122
26109.951114228789070.0488857712109341
271310.54739027573472.45260972426531
2887.857524274669950.142475725330050
291111.1326201089110-0.132620108911009
3079.6835796832557-2.68357968325569
3198.251721652807490.748278347192514
32109.569533938311140.430466061688862
3388.00479404745797-0.0047940474579675
341513.35320687983521.64679312016478
35910.0967881638929-1.09678816389294
3678.32709910760245-1.32709910760245
37119.476658618376841.52334138162316
3897.906745536430831.09325446356917
3989.75241055995031-1.75241055995031
4087.946863476251220.0531365237487764
41128.903190096238353.09680990376165
421310.24814221666602.75185778333403
4398.964733412858340.0352665871416619
44119.369588364839151.63041163516085
4588.21249800844928-0.212498008449276
461010.7058538796630-0.70585387966297
471312.40321303587540.596786964124592
481211.24663327351310.75336672648686
49129.607286124333182.39271387566682
5098.706243325510380.293756674489619
51810.2410357542843-2.2410357542843
5298.557626318007240.442373681992759
53128.424976493282643.57502350671736
541211.72916854465560.270831455344415
551614.26562099909651.73437900090345
56118.989552119087352.01044788091265
571310.31140393472292.68859606527706
581010.6043806251253-0.604380625125327
59910.4930309173501-1.49303091735006
60149.533722435544684.46627756445532
611312.02386737408690.976132625913069
621210.36867704576621.63132295423380
63910.9704701946977-1.97047019469774
64910.5620657528630-1.56206575286303
651011.2215090481749-1.22150904817487
66810.5261813542289-2.52618135422892
67910.3583406162232-1.35834061622320
6898.968568249029760.0314317509702444
69118.793661331646372.20633866835363
7079.66716176259284-2.66716176259284
711111.5494906558691-0.549490655869072
7299.05759852497023-0.0575985249702288
73118.920201064031122.07979893596888
7499.5046003349402-0.504600334940199
75810.2485637172436-2.24856371724359
7698.132160014046250.867839985953749
7789.17537537308887-1.17537537308887
7899.85183779669558-0.851837796695581
791010.2374896572663-0.237489657266274
8099.80237244222467-0.802372442224675
811713.93853725855233.06146274144766
8279.51395394474114-2.51395394474114
831111.2241087785954-0.224108778595412
8499.98558539165466-0.985585391654661
85109.72933456167710.270665438322909
86118.539723065787962.46027693421204
8788.21679797336594-0.216797973365939
881212.3408963627430-0.340896362742957
891010.1569392294030-0.156939229403048
9078.9166794745976-1.91667947459759
9198.924927538253140.0750724617468596
9278.31127672596746-1.31127672596746
931210.61191212683441.38808787316558
9489.39329723101702-1.39329723101702
951310.56246689716082.43753310283921
96910.8127248916724-1.81272489167239
971512.72991366505882.27008633494117
9889.54154819418306-1.54154819418306
991411.57061153537432.42938846462566
1001413.69414180248110.305858197518861
101910.270549884361-1.27054988436099
1021311.46072298877441.53927701122564
103119.127435910383981.87256408961602
1041011.9494520075191-1.94945200751907
105610.0784477328994-4.07844773289936
10688.44642226215375-0.446422262153754
1071011.4946303402216-1.49463034022156
108107.879565112020292.12043488797971
109108.725432915502621.27456708449738
1101212.1598856141247-0.159885614124670
111109.600035725123580.399964274876418
11299.06045856008726-0.0604585600872634
11397.597645630271181.40235436972881
114119.454217426339681.54578257366032
11578.09598356364117-1.09598356364117
11678.90290304289432-1.90290304289432
11757.9683552701553-2.96835527015529
11898.974397099097470.0256029009025346
119119.955271173736671.04472882626333
1201512.27358137680762.72641862319243
12198.116800013358840.883199986641165
12299.40529665852555-0.405296658525544
12389.49762161910805-1.49762161910805
1241315.2398428922856-2.23984289228564
1251010.3238172510627-0.323817251062680
1261311.31078337275721.68921662724279
12797.535616016523111.46438398347689
128119.635828735574021.36417126442598
129810.7003556913825-2.70035569138245
130109.21789725643490.782102743565107
13198.96251656281740.0374834371826047
13287.83496037941440.165039620585609
13387.855459013288220.144540986711776
1341310.43620223857992.5637977614201
1351110.81635935296520.183640647034757
136810.1061066504412-2.10610665044122
1371210.30534221496681.69465778503318
1381511.84054205512343.15945794487656
1391111.2241087785954-0.224108778595412
1401010.303389349951-0.303389349951004
14157.9683552701553-2.96835527015529
142117.244249734899033.75575026510097


Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
150.929714778750610.1405704424987790.0702852212493896
160.9236247984547550.1527504030904900.0763752015452451
170.887440753265730.225118493468540.11255924673427
180.8256548986386060.3486902027227880.174345101361394
190.8058548028633170.3882903942733660.194145197136683
200.7822110869546850.4355778260906310.217788913045315
210.7113687654385260.5772624691229470.288631234561474
220.8197115130075940.3605769739848110.180288486992406
230.7917470463480540.4165059073038910.208252953651946
240.9506863787440250.09862724251194920.0493136212559746
250.9406265420896820.1187469158206370.0593734579103184
260.914123700222150.1717525995557010.0858762997778506
270.9579992653816670.08400146923666660.0420007346183333
280.938811658124730.1223766837505400.06118834187527
290.9153508571878830.1692982856242330.0846491428121165
300.969994593418240.0600108131635190.0300054065817595
310.9691398625867620.06172027482647550.0308601374132378
320.959409014828960.08118197034207890.0405909851710394
330.9440036400174490.1119927199651030.0559963599825513
340.9500667338187390.09986653236252260.0499332661812613
350.9342464550006510.1315070899986980.0657535449993488
360.9240982063193730.1518035873612540.0759017936806268
370.9120400133900850.1759199732198300.0879599866099148
380.8897596716829520.2204806566340970.110240328317048
390.8714245713320920.2571508573358160.128575428667908
400.8544228647134950.291154270573010.145577135286505
410.8730820473052220.2538359053895560.126917952694778
420.8790023371002780.2419953257994450.120997662899722
430.8543948395192120.2912103209615760.145605160480788
440.8329467970330820.3341064059338370.167053202966918
450.804032811940840.391934376118320.19596718805916
460.7644239859694240.4711520280611510.235576014030576
470.771789784733090.4564204305338220.228210215266911
480.7329223206480860.5341553587038280.267077679351914
490.7620220371735520.4759559256528950.237977962826448
500.7274216808296430.5451566383407130.272578319170357
510.7320258700333910.5359482599332180.267974129966609
520.6910883798112130.6178232403775740.308911620188787
530.7838243334501390.4323513330997220.216175666549861
540.7455374436430840.5089251127138320.254462556356916
550.777385785697180.4452284286056400.222614214302820
560.8130467700740560.3739064598518870.186953229925944
570.8416784355786540.3166431288426930.158321564421347
580.808771017992770.3824579640144610.191228982007231
590.79630471255910.4073905748817990.203695287440900
600.9537713843472920.09245723130541540.0462286156527077
610.9438463942009540.1123072115980910.0561536057990457
620.9391819441502730.1216361116994540.060818055849727
630.9412855065876880.1174289868246250.0587144934123124
640.9362852530105110.1274294939789780.0637147469894889
650.935714227278020.1285715454439610.0642857727219803
660.942095394212830.1158092115743400.0579046057871702
670.9331271627160670.1337456745678650.0668728372839326
680.9150587171059690.1698825657880620.084941282894031
690.9241779903442990.1516440193114020.0758220096557012
700.93950115187740.1209976962452010.0604988481226003
710.924712278419320.1505754431613590.0752877215806795
720.9060161492729720.1879677014540560.0939838507270279
730.910513010183740.1789739796325200.0894869898162599
740.8892128975630230.2215742048739540.110787102436977
750.8915001216584630.2169997566830750.108499878341537
760.8800424346917250.2399151306165490.119957565308275
770.8678774854269010.2642450291461970.132122514573099
780.8483606144024930.3032787711950150.151639385597507
790.8155397453836730.3689205092326530.184460254616326
800.7868156087895140.4263687824209730.213184391210486
810.8380148027242510.3239703945514970.161985197275749
820.8553501761119010.2892996477761970.144649823888099
830.8257785993298180.3484428013403630.174221400670182
840.8139855186024510.3720289627950980.186014481397549
850.777849522587660.4443009548246800.222150477412340
860.8651776035989350.269644792802130.134822396401065
870.8415522622395660.3168954755208670.158447737760434
880.8067508360966940.3864983278066120.193249163903306
890.7689351343857050.462129731228590.231064865614295
900.7883252606266420.4233494787467160.211674739373358
910.7507269146220840.4985461707558310.249273085377916
920.7526918035306920.4946163929386160.247308196469308
930.7522509694490420.4954980611019150.247749030550958
940.7168107233453910.5663785533092170.283189276654609
950.7412922766781790.5174154466436430.258707723321821
960.7156346539641310.5687306920717370.284365346035869
970.7164784026920040.5670431946159910.283521597307996
980.6801932394970660.6396135210058690.319806760502934
990.6621470686808940.6757058626382120.337852931319106
1000.6660443106146490.6679113787707030.333955689385351
1010.6755642447600690.6488715104798620.324435755239931
1020.7334386189650270.5331227620699460.266561381034973
1030.7276811436483520.5446377127032960.272318856351648
1040.7215663058941130.5568673882117750.278433694105887
1050.8353398384564050.3293203230871890.164660161543595
1060.7960052752126150.4079894495747700.203994724787385
1070.817297460487520.365405079024960.18270253951248
1080.8110349168830640.3779301662338720.188965083116936
1090.7778660373115340.4442679253769330.222133962688466
1100.8305573054852850.3388853890294310.169442694514715
1110.7870466692846470.4259066614307060.212953330715353
1120.7443794803654270.5112410392691470.255620519634573
1130.6908950467749840.6182099064500320.309104953225016
1140.6589285424053520.6821429151892950.341071457594648
1150.6200226769244290.7599546461511420.379977323075571
1160.5568284058925570.8863431882148850.443171594107443
1170.5870780015009140.8258439969981710.412921998499086
1180.505549975802180.988900048395640.49445002419782
1190.4201522018927290.8403044037854570.579847798107271
1200.4092490325501560.8184980651003120.590750967449844
1210.3313635999997210.6627271999994410.66863640000028
1220.2456401763159160.4912803526318310.754359823684084
1230.1734556476448810.3469112952897630.826544352355119
1240.2833859227774390.5667718455548780.716614077222561
1250.3047758632227500.6095517264454990.69522413677725
1260.2321584802093270.4643169604186540.767841519790673
1270.2120775140855220.4241550281710450.787922485914478


Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level00OK
5% type I error level00OK
10% type I error level70.0619469026548673OK
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Dec/03/t12914087917cf6oqho6mftj1m/10lrbw1291408732.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/03/t12914087917cf6oqho6mftj1m/10lrbw1291408732.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/03/t12914087917cf6oqho6mftj1m/1ohv51291408732.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/03/t12914087917cf6oqho6mftj1m/1ohv51291408732.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/03/t12914087917cf6oqho6mftj1m/2ohv51291408732.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/03/t12914087917cf6oqho6mftj1m/2ohv51291408732.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/03/t12914087917cf6oqho6mftj1m/3ohv51291408732.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/03/t12914087917cf6oqho6mftj1m/3ohv51291408732.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/03/t12914087917cf6oqho6mftj1m/4hqu81291408732.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/03/t12914087917cf6oqho6mftj1m/4hqu81291408732.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/03/t12914087917cf6oqho6mftj1m/5hqu81291408732.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/03/t12914087917cf6oqho6mftj1m/5hqu81291408732.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/03/t12914087917cf6oqho6mftj1m/6hqu81291408732.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/03/t12914087917cf6oqho6mftj1m/6hqu81291408732.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/03/t12914087917cf6oqho6mftj1m/7szcb1291408732.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/03/t12914087917cf6oqho6mftj1m/7szcb1291408732.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/03/t12914087917cf6oqho6mftj1m/8lrbw1291408732.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/03/t12914087917cf6oqho6mftj1m/8lrbw1291408732.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/03/t12914087917cf6oqho6mftj1m/9lrbw1291408732.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/03/t12914087917cf6oqho6mftj1m/9lrbw1291408732.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