Home » date » 2010 » Dec » 04 »

p_Stress_MR3v3

*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: Sat, 04 Dec 2010 14:09:41 +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/04/t1291471684wk59fj0bhz9qx5w.htm/, Retrieved Sat, 04 Dec 2010 15:08:14 +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/04/t1291471684wk59fj0bhz9qx5w.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 «
23 10 53 7 6 12 2 4 21 6 86 4 6 11 4 3 21 13 66 6 5 14 7 5 21 12 67 5 4 12 3 3 24 8 76 4 4 21 7 6 22 6 78 3 6 12 2 5 21 10 53 5 7 22 7 6 22 10 80 6 5 11 2 6 21 9 74 5 4 10 1 5 20 9 76 6 6 13 2 5 22 7 79 7 1 10 6 3 21 5 54 6 4 8 1 5 21 14 67 7 6 15 1 7 23 6 87 6 6 10 1 5 22 10 58 4 5 14 2 5 23 10 75 6 3 14 2 3 22 7 88 4 7 11 2 5 24 10 64 5 2 10 1 6 23 8 57 3 5 13 7 5 21 6 66 3 5 7 1 2 23 10 54 4 3 12 2 5 23 12 56 5 5 14 4 4 21 7 86 3 5 11 2 6 20 15 80 7 6 9 1 3 32 8 76 7 4 11 1 5 22 10 69 4 4 15 5 4 21 13 67 4 4 13 2 5 21 8 80 5 2 9 1 2 21 11 54 6 3 15 3 2 22 7 71 5 6 10 1 5 21 9 84 4 6 11 2 2 21 10 74 6 5 13 5 2 21 8 71 5 3 8 2 2 22 15 63 5 3 20 6 5 21 9 71 6 4 12 4 5 21 7 76 2 4 10 1 1 21 11 69 6 5 10 3 5 21 9 74 7 3 9 6 2 23 8 75 5 5 14 7 6 21 8 54 5 4 8 4 1 23 12 69 5 3 11 5 3 23 13 68 6 3 13 3 2 21 9 75 4 4 11 2 5 21 11 75 6 6 11 2 3 20 8 72 5 5 10 2 4 21 10 67 5 3 14 2 3 21 13 63 3 4 18 1 6 22 12 62 4 2 14 2 4 21 12 63 4 3 11 1 5 21 9 76 2 5 12 2 2 22 8 7 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 time11 seconds
R Server'Gwilym Jenkins' @ 72.249.127.135


Multiple Linear Regression - Estimated Regression Equation
PStress[t] = + 8.87667015706705 -0.104269855315633AGE[t] -0.0321581842806803BelInSprt[t] + 0.206721936465705KunnenRekRel[t] -0.130417643958898ExtraCurAct[t] + 0.394290032329484Depressie[t] -0.21057047824519Slaapgebrek[t] + 0.199757036190737ToekZorgen[t] + e[t]


Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STAT
H0: parameter = 0
2-tail p-value1-tail p-value
(Intercept)8.876670157067052.1247244.17785.3e-052.6e-05
AGE-0.1042698553156330.066665-1.56410.1201560.060078
BelInSprt-0.03215818428068030.016627-1.9340.0552150.027608
KunnenRekRel0.2067219364657050.1082081.91040.0582160.029108
ExtraCurAct-0.1304176439588980.122977-1.06050.2908250.145412
Depressie0.3942900323294840.0619756.36200
Slaapgebrek-0.210570478245190.092495-2.27660.0243980.012199
ToekZorgen0.1997570361907370.1128051.77080.0788650.039432


Multiple Linear Regression - Regression Statistics
Multiple R0.62053624959846
R-squared0.385065237065722
Adjusted R-squared0.352941779300498
F-TEST (value)11.9870419890660
F-TEST (DF numerator)7
F-TEST (DF denominator)134
p-value8.17634848715443e-12
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation1.91962362912285
Sum Squared Residuals493.783953583226


Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolation
Forecast
Residuals
Prediction Error
11010.5479949856644-0.547994985664375
268.05996078062547-2.05996078062547
31310.19765871776372.80234128223626
4129.743384016916572.25661598308343
5812.2400283425347-4.24002834253465
669.22117952429092-3.22117952429092
71013.5022351838557-3.50223518385569
8109.712913612946820.287086387053182
999.55035169116469-0.550351691164693
10910.5084914452101-1.50849144521014
1178.63762125564634-1.63762125564634
1259.61165724858504-4.61165724858504
131412.29903180017201.70096819982803
1468.8696422334325-2.86964223343249
151010.9900628549881-0.990062854988088
161010.6138689553686-0.613868955368622
1778.58161194166143-1.58161194166143
181010.0197162921331-0.0197162921331297
1989.264086823932-1.26408682393200
2067.48161444295916-1.48161444295916
211010.486680960054-0.486680960054003
221210.53593331201841.46406668798160
2379.00406855318125-2.00406855318125
24158.82047692109896.1795230789011
2589.14680081939226-1.14680081939227
261010.3295620332627-0.329562033262679
271310.54103666340702.45896333659299
2888.62467673249671-0.624676732496711
291111.4816930537877-0.481693053787729
3079.2817211007733-2.28172110077331
3198.345661069486470.654338930513528
32109.367973059106980.63202694089302
3388.17882223648926-0.178822236489261
341512.82028743896432.17971256103567
35910.0104168103958-1.01041681039584
3678.06684136844327-1.06684136844327
37119.366305948584521.63369405141548
3898.047799675927350.952200324072646
3989.69273044833138-1.69273044833138
4087.974195732620810.0258042673791896
41128.785514592862973.21448540713703
421310.03435869856802.96564130143203
4399.4951911245026-0.495191124502602
44119.248285637134741.75171436286526
4589.17819275664686-1.17819275664686
461010.8729522037796-0.872952203779624
471312.84472514014740.155274859852624
481211.05292601355130.947073986448677
491210.22207745807491.77792254192515
5098.714190347088880.285809652911115
5189.87451993770201-1.87451993770201
5298.719461183641650.280538816358349
53128.23644403476753.76355596523249
541211.41189854888080.588101451119181
551614.07833979129711.92166020870292
56119.159881295310411.84011870468959
57139.66548534127323.33451465872681
581010.5489186948252-0.548918694825226
59910.4413195102797-1.44131951027968
60149.72621719192174.27378280807829
611311.55560477296781.44439522703222
621210.48050692152941.51949307847062
63910.8833562372704-1.88335623727041
64910.2730354588327-1.27303545883274
651010.8227666521497-0.822766652149711
66810.5638390315842-2.56383903158416
6799.87573070069794-0.875730700697939
6898.691402910260380.308597089739623
69118.441148250361582.55885174963842
7079.25953412174369-2.25953412174369
711111.6239567932327-0.623956793232679
7299.13723232052656-0.137232320526557
73118.712800894998122.28719910500188
7499.26228853206425-0.262288532064248
75810.2095835641493-2.20958356414931
7698.39939471546220.60060528453779
7789.38634052140954-1.38634052140954
7899.33600656330263-0.336006563302625
79109.837305862421470.162694137578529
8099.87344367472564-0.873443674725642
811713.82579352687373.17420647312629
8279.59162713907362-2.59162713907362
831110.74321928271600.256780717284018
8499.84857867378243-0.848578673782434
85109.961098084531570.0389019154684335
86119.006227242797121.99377275720288
8788.8306162754021-0.830616275402092
881212.0660693644905-0.0660693644905469
891010.0488787114804-0.0488787114804262
9079.17878927513459-2.17878927513459
9198.660446161070430.339553838929566
9278.51333576566367-1.51333576566367
931210.66455872070131.33544127929872
9489.4788554994894-1.4788554994894
951310.28969729505582.71030270494425
96911.1698974910867-2.16989749108668
971512.77283895470802.22716104529196
9888.77335961225478-0.773359612254775
991411.77382091235812.22617908764191
1001414.1238006273393-0.123800627339295
101910.3525326179901-1.35253261799014
1021311.95442861411181.04557138588818
103119.185193305419751.81480669458025
1041011.5293391406500-1.52933914064999
105610.2707668454828-4.27076684548282
10688.12892006159349-0.128920061593489
1071011.2141827729859-1.21418277298591
108107.890172191867832.10982780813217
109109.28846265738010.71153734261991
1101212.0663643431552-0.0663643431552397
111109.604809264771240.395190735228758
11299.18495391336668-0.18495391336668
11397.203193430978181.79680656902182
114119.15213936735521.84786063264479
11578.12378793433091-1.12378793433091
11678.71254454153847-1.71254454153847
11758.11263330493375-3.11263330493375
11899.21475404914818-0.214754049148183
1191111.7333379889673-0.733337988967322
1201511.88855569394563.11144430605437
12197.709029408547311.29097059145269
12299.19195058858166-0.191950588581656
12389.26922452703493-1.26922452703493
1241315.7760295793906-2.77602957939064
1251010.4304302239581-0.430430223958086
1261311.57777333937501.42222666062498
12798.24514638148990.754853618510096
128119.60717595457371.39282404542630
129810.2466742936676-2.24667429366758
130109.154005399692550.845994600307451
13198.8671272151650.132872784834995
13288.49789270747833-0.497892707478333
13388.06017966548954-0.0601796654895347
1341310.39968040527932.60031959472070
1351111.0299940371696-0.0299940371696264
13689.14680081939226-1.14680081939227
137129.954141605085822.04585839491418
1381511.76752184418123.23247815581881
1391110.74321928271600.256780717284018
1401010.2291116719602-0.229111671960160
14158.11263330493375-3.11263330493375
142117.138702999235053.86129700076495


Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
110.900325251156960.1993494976860790.0996747488430396
120.9884257571053360.0231484857893290.0115742428946645
130.9845834077813130.03083318443737450.0154165922186873
140.9829162726165210.03416745476695720.0170837273834786
150.9780435131269840.04391297374603140.0219564868730157
160.9619955952928210.07600880941435740.0380044047071787
170.943231588133390.1135368237332190.0567684118666096
180.9453906377405780.1092187245188450.0546093622594225
190.9304646531861870.1390706936276270.0695353468138134
200.9009330698543610.1981338602912780.0990669301456388
210.868781935043150.2624361299137020.131218064956851
220.8828289663185720.2343420673628550.117171033681428
230.8517328462068960.2965343075862090.148267153793104
240.9833310110686760.03333797786264720.0166689889313236
250.9767674707856150.04646505842877040.0232325292143852
260.9688325278332690.0623349443334630.0311674721667315
270.9831638337476560.03367233250468730.0168361662523437
280.9773044319456680.04539113610866320.0226955680543316
290.9707294204501680.0585411590996640.029270579549832
300.9699155692627120.06016886147457620.0300844307372881
310.960644258065290.07871148386942160.0393557419347108
320.946143980226810.1077120395463820.0538560197731908
330.9279493948443410.1441012103113180.0720506051556591
340.94425800396730.1114839920654020.0557419960327008
350.9303188846200450.1393622307599100.0696811153799548
360.9106251830438820.1787496339122360.0893748169561178
370.9035669034543180.1928661930913630.0964330965456815
380.8793415282849350.2413169434301310.120658471715065
390.8603198112681340.2793603774637320.139680188731866
400.8269131464300220.3461737071399560.173086853569978
410.8966371013764070.2067257972471870.103362898623593
420.9160443690368960.1679112619262070.0839556309631035
430.8954743487882690.2090513024234620.104525651211731
440.8843585873025250.2312828253949490.115641412697474
450.8666791512932040.2666416974135920.133320848706796
460.8462514479923080.3074971040153830.153748552007691
470.8274429515950480.3451140968099030.172557048404952
480.8040640687483760.3918718625032480.195935931251624
490.8087283282364170.3825433435271670.191271671763583
500.7799078176040020.4401843647919960.220092182395998
510.7662437521705060.4675124956589870.233756247829494
520.7254270138664390.5491459722671220.274572986133561
530.846405831944350.30718833611130.15359416805565
540.815691126585480.3686177468290410.184308873414521
550.8315019211535160.3369961576929690.168498078846484
560.8511122140695680.2977755718608630.148887785930432
570.8950619394500750.209876121099850.104938060549925
580.8709518709124310.2580962581751380.129048129087569
590.8538189266418960.2923621467162080.146181073358104
600.9426503151941180.1146993696117640.0573496848058819
610.9358373933305380.1283252133389240.0641626066694622
620.9298470002230230.1403059995539550.0701529997769773
630.9352433336761020.1295133326477950.0647566663238976
640.9286806683122410.1426386633755180.0713193316877591
650.9292318483541140.1415363032917730.0707681516458864
660.9379493461162220.1241013077675550.0620506538837777
670.9258576957638290.1482846084723430.0741423042361714
680.9082328268675070.1835343462649860.091767173132493
690.9271788274003080.1456423451993840.0728211725996921
700.9406151899716050.1187696200567890.0593848100283946
710.9278931563225420.1442136873549160.0721068436774582
720.9123153031793780.1753693936412450.0876846968206224
730.927796446877210.1444071062455800.0722035531227898
740.9094025714843750.1811948570312500.0905974285156249
750.9120565697668170.1758868604663660.0879434302331828
760.8982419640502130.2035160718995730.101758035949787
770.8888214820395770.2223570359208450.111178517960423
780.8707315822789450.258536835442110.129268417721055
790.8421081951489510.3157836097020980.157891804851049
800.81803007653950.3639398469209990.181969923460499
810.8705520318580740.2588959362838520.129447968141926
820.8913956633530480.2172086732939040.108604336646952
830.8694973648791320.2610052702417350.130502635120868
840.8545941498594780.2908117002810440.145405850140522
850.8229488220433230.3541023559133540.177051177956677
860.8595827124325330.2808345751349330.140417287567467
870.8381178542309810.3237642915380380.161882145769019
880.8039038512978620.3921922974042770.196096148702138
890.7659277756254520.4681444487490960.234072224374548
900.7786814257494250.442637148501150.221318574250575
910.7405094963081240.5189810073837510.259490503691876
920.739933340894230.520133318211540.26006665910577
930.7152606750604890.5694786498790220.284739324939511
940.6903062189178890.6193875621642220.309693781082111
950.7514412354145340.4971175291709330.248558764585466
960.7460555557217820.5078888885564370.253944444278218
970.7461890105455970.5076219789088060.253810989454403
980.705489786989350.58902042602130.29451021301065
990.7177145336194610.5645709327610780.282285466380539
1000.7380391649161370.5239216701677270.261960835083863
1010.750202308418670.4995953831626590.249797691581330
1020.7268532667323610.5462934665352780.273146733267639
1030.7219266904307750.5561466191384510.278073309569225
1040.7068063957532450.5863872084935090.293193604246755
1050.8628872021933280.2742255956133450.137112797806672
1060.8357452267455950.3285095465088100.164254773254405
1070.8464130210474430.3071739579051150.153586978952558
1080.8295496821158130.3409006357683740.170450317884187
1090.8023259307417430.3953481385165140.197674069258257
1100.777481457936630.4450370841267390.222518542063370
1110.7788167134966310.4423665730067380.221183286503369
1120.7303077335538330.5393845328923340.269692266446167
1130.6843956843637730.6312086312724540.315604315636227
1140.657866916130470.684266167739060.34213308386953
1150.5952340152653250.8095319694693490.404765984734674
1160.5352753116919480.9294493766161030.464724688308052
1170.6449011363478190.7101977273043630.355098863652181
1180.5742790564233750.8514418871532510.425720943576625
1190.4994339181660130.9988678363320250.500566081833987
1200.5515033501444520.8969932997110960.448496649855548
1210.4746416774158180.9492833548316360.525358322584182
1220.3904790921336260.7809581842672520.609520907866374
1230.3432646097794810.6865292195589610.65673539022052
1240.428735932687770.857471865375540.57126406731223
1250.419538073893830.839076147787660.58046192610617
1260.3351103467660050.6702206935320090.664889653233995
1270.5447856768311090.9104286463377820.455214323168891
1280.4754644344112710.9509288688225430.524535565588729
1290.6935332216559160.6129335566881680.306466778344084
1300.558100394598680.8837992108026390.441899605401319
1310.8198405605263730.3603188789472530.180159439473627


Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level00OK
5% type I error level80.0661157024793388NOK
10% type I error level130.107438016528926NOK
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Dec/04/t1291471684wk59fj0bhz9qx5w/10fv6j1291471768.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/04/t1291471684wk59fj0bhz9qx5w/10fv6j1291471768.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/04/t1291471684wk59fj0bhz9qx5w/1fj6c1291471767.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/04/t1291471684wk59fj0bhz9qx5w/1fj6c1291471767.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/04/t1291471684wk59fj0bhz9qx5w/2qtnx1291471767.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/04/t1291471684wk59fj0bhz9qx5w/2qtnx1291471767.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/04/t1291471684wk59fj0bhz9qx5w/3qtnx1291471767.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/04/t1291471684wk59fj0bhz9qx5w/3qtnx1291471767.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/04/t1291471684wk59fj0bhz9qx5w/4qtnx1291471767.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/04/t1291471684wk59fj0bhz9qx5w/4qtnx1291471767.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/04/t1291471684wk59fj0bhz9qx5w/5jk501291471767.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/04/t1291471684wk59fj0bhz9qx5w/5jk501291471767.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/04/t1291471684wk59fj0bhz9qx5w/6jk501291471767.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/04/t1291471684wk59fj0bhz9qx5w/6jk501291471767.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/04/t1291471684wk59fj0bhz9qx5w/74l7y1291471768.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/04/t1291471684wk59fj0bhz9qx5w/74l7y1291471768.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/04/t1291471684wk59fj0bhz9qx5w/84l7y1291471768.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/04/t1291471684wk59fj0bhz9qx5w/84l7y1291471768.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/04/t1291471684wk59fj0bhz9qx5w/9fv6j1291471768.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/04/t1291471684wk59fj0bhz9qx5w/9fv6j1291471768.ps (open in new window)


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