Home » date » 2010 » Dec » 01 »

Paper interactiemodellen

*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: Wed, 01 Dec 2010 14:29:23 +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/01/t1291213841gv43h2tf61myt86.htm/, Retrieved Wed, 01 Dec 2010 15:30:51 +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/01/t1291213841gv43h2tf61myt86.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 «
66 4964 4818 4488 5 73 68 54 3132 3132 2916 12 58 54 82 2788 5576 3362 11 68 41 61 3038 3782 2989 6 62 49 65 3185 4225 3185 12 65 49 77 5832 6237 5544 11 81 72 66 5694 4818 5148 12 73 78 66 3712 4224 3828 7 64 58 66 3944 4488 3828 8 68 58 48 1173 2448 1104 13 51 23 57 2652 3876 2223 12 68 39 80 3843 4880 5040 13 61 63 60 3174 4140 2760 12 69 46 70 4234 5110 4060 12 73 58 85 2379 5185 3315 11 61 39 59 2728 3658 2596 12 62 44 72 3087 4536 3528 12 63 49 70 3933 4830 3990 12 69 57 74 3572 3478 5624 11 47 76 70 4158 4620 4410 13 66 63 51 1044 2958 918 9 58 18 70 2520 4410 2800 11 63 40 71 4071 4899 4189 11 69 59 72 3658 4248 4464 11 59 62 50 4130 2950 3500 9 59 70 69 4095 4347 4485 11 63 65 73 3640 4745 4088 12 65 56 66 2925 4290 2970 12 65 45 73 4047 5183 4161 10 71 57 58 3000 3480 2900 12 60 50 78 3240 6318 3120 12 81 40 83 3886 5561 4814 12 67 58 76 3234 5016 3724 9 66 49 77 3038 4774 3773 9 62 49 79 1701 4977 2133 12 63 27 71 3723 5183 3621 14 73 51 79 4125 4345 5925 12 55 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 time10 seconds
R Server'George Udny Yule' @ 72.249.76.132


Multiple Linear Regression - Estimated Regression Equation
Vrienden_vinden[t] = + 14.8343830437332 -0.189388395423180Groepsgevoel[t] -0.00274311701082415`InteractieNV-U`[t] + 0.00134424111559316InteractieGR_NV[t] + 0.00258194445835426interacteiGR_U[t] + 0.0610534658445095NV[t] -0.0134045678273368Uitingsangst[t] + e[t]


Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STAT
H0: parameter = 0
2-tail p-value1-tail p-value
(Intercept)14.83438304373328.5643611.73210.0854730.042736
Groepsgevoel-0.1893883954231800.135808-1.39450.1653810.08269
`InteractieNV-U`-0.002743117010824150.001543-1.77770.0776420.038821
InteractieGR_NV0.001344241115593160.0019590.68610.4938230.246912
interacteiGR_U0.002581944458354260.0010782.39460.017970.008985
NV0.06105346584450950.1419420.43010.6677660.333883
Uitingsangst-0.01340456782733680.099466-0.13480.8929920.446496


Multiple Linear Regression - Regression Statistics
Multiple R0.314037555070108
R-squared0.0986195859944112
Adjusted R-squared0.0597110789150334
F-TEST (value)2.5346535602925
F-TEST (DF numerator)6
F-TEST (DF denominator)139
p-value0.0232763320814189
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation1.74208597726733
Sum Squared Residuals421.846033754616


Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolation
Forecast
Residuals
Prediction Error
1510.3276289224843-5.32762892248427
21210.57233478388441.42766521611565
31111.4347585188950-0.434758518895009
4610.8779443880497-4.87794438804971
51211.00187293134460.99812706865542
61110.93215195392940.0678480460705732
7129.895191168823072.10480883117693
8710.8440133405327-3.84401334053273
9810.8067037119162-2.80670371191616
101311.47265444076021.52734555923979
111211.34329681902740.656703180972614
121311.59418309487451.40581690512550
131211.05182987281360.94817012718638
141210.99404261454411.00595738545589
151110.94101339905610.058986600943941
161210.99272022092151.00727977907852
171211.12653863491910.87346136508095
181211.03178791480060.968212085199402
191112.0681197933857-1.06811979338569
201310.95312482110182.04687517889816
21911.9580697486339-2.95806974863385
221111.1322739351021-0.132273935102098
231111.0435998204174-0.0435998204174359
241111.1713041483338-0.171304148333796
2599.70204165002264-0.702041650022644
261110.93202806483840.0679719351616262
271211.17531677924510.82468322075487
281211.11157084401240.888429155987582
291011.1890439371691-1.18904393716909
301210.77908264751161.22091735248844
311212.1321191843496-0.132119184349553
321211.67331626347410.32668373652586
33911.3002040994909-2.30020409949086
34911.2054617032970-2.20546170329699
351210.88867834873291.11132165126713
361411.26487497066422.73512502933579
371212.0486887330513-0.0486887330513444
381110.51028009466230.489719905337683
39911.1740872641105-2.17408726411047
401111.0829104882820-0.0829104882819551
4179.16685706622441-2.16685706622441
421511.16025389384493.83974610615507
431110.83472217780600.165277822194036
441211.71165771310040.288342286899648
451210.68033037676131.31966962323866
46911.79406465647-2.79406465646999
471210.46759675314711.53240324685289
481111.2281102964106-0.228110296410598
491110.39092944081440.609070559185607
50811.2775751274862-3.27757512748618
51710.2452858339887-3.24528583398868
521211.63962739844660.360372601553353
53811.7482536549045-3.74825365490449
541010.3511807981519-0.351180798151857
551210.26982344299711.73017655700291
561510.93043402201044.06956597798959
571211.66282810572350.337171894276533
581211.14737381203810.852626187961942
591210.76529354861951.23470645138047
601210.42753557978781.57246442021221
6189.25027225083847-1.25027225083847
621011.2410825043049-1.24108250430493
631412.28489640643111.71510359356892
641010.9764892092198-0.976489209219842
651210.84401331347161.15598668652836
661410.88173223504823.11826776495179
67611.1908123377809-5.19081233778092
681110.72489971306710.275100286932905
691011.0883118320864-1.08831183208639
701412.59733109283261.40266890716737
711211.05730705195400.94269294804597
721311.10702872690761.89297127309244
731110.77432114138790.225678858612129
741110.96608876084030.033911239159701
751211.23721567072790.762784329272054
761310.82182882205642.17817117794361
771210.29278136031161.70721863968845
7889.98697403412809-1.98697403412809
791211.29186702125110.708132978748919
801111.2877616814385-0.287761681438509
811011.0224294476832-1.02242944768317
821211.02308529887410.976914701125868
831111.0126957836665-0.0126957836665200
841211.08440013558740.915599864412637
851211.04964642617160.950353573828377
861010.4794482524057-0.479448252405747
871211.47418112963390.525818870366149
881210.89448271244841.10551728755163
891111.2789027368865-0.278902736886497
901010.9475864914106-0.947586491410563
911211.36499981717740.635000182822633
921111.0381966513290-0.0381966513289806
931210.42628581039791.57371418960209
94129.622621070551482.37737892944852
95109.593716785055440.406283214944556
961111.0922833214020-0.092283321401954
971010.9914064497695-0.991406449769524
981110.97545749588670.0245425041133088
991110.5280398330220.471960166977996
1001211.26748544928160.732514550718434
1011110.91956040867670.0804395913233085
1021110.71968425869050.28031574130952
10378.78169720837158-1.78169720837158
1041210.63027811387621.36972188612377
105810.5637655017874-2.56376550178743
1061011.0594311674627-1.05943116746267
1071211.29476153630550.705238463694473
1081111.0815243483923-0.081524348392288
1091311.15965773799061.84034226200939
110911.4640022119820-2.46400221198205
1111111.2934875112473-0.293487511247310
1121311.18672898228271.81327101771726
113810.7893845921053-2.78938459210532
1141211.13964750316920.860352496830779
1151110.54243253845550.457567461544546
1161110.6570648321920.342935167808007
1171210.85311026429661.14688973570342
1181311.33737346865061.66262653134945
1191111.2896164245962-0.28961642459616
1201010.7733243523953-0.773324352395322
1211010.8915188872227-0.891518887222733
1221010.9026492235152-0.902649223515228
1231210.86220262815231.13779737184766
1241211.07747653223990.92252346776008
1251310.94827749286252.05172250713749
1261111.0141201408704-0.0141201408704338
127119.97039829779291.02960170220710
1281211.09518233618710.904817663812928
129910.7254460200678-1.72544602006781
1301111.7573290299829-0.757329029982945
1311210.93446229611641.06553770388357
1321210.95090413657851.04909586342148
1331310.76865390312292.23134609687711
134610.8385987923467-4.83859879234671
1351111.9467365957407-0.946736595740722
1361011.8041130887521-1.80411308875214
1371211.00441542675550.995584573244477
1381111.0858670054927-0.0858670054927345
1391212.1157454454488-0.115745445448829
1401211.12168765629620.8783123437038
141711.1351676694415-4.13516766944154
1421211.12400600476490.87599399523512
1431212.1991888487773-0.199188848777291
144910.9928847308025-1.99288473080253
1451211.22352918374830.776470816251698
1461211.26594162907120.734058370928845


Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
100.9986424000814360.002715199837128660.00135759991856433
110.99936224674550.001275506509001340.00063775325450067
120.9997942775899840.0004114448200323190.000205722410016159
130.999725114394930.000549771210138520.00027488560506926
140.9995416485073450.0009167029853097550.000458351492654877
150.9992098981887070.001580203622586610.000790101811293307
160.9987639865685160.002472026862968220.00123601343148411
170.9979346616190760.004130676761847270.00206533838092363
180.9968877216254540.006224556749092030.00311227837454601
190.9949804517611960.01003909647760880.00501954823880441
200.995808471467640.008383057064720450.00419152853236023
210.9981679184598360.003664163080327070.00183208154016354
220.996825725431080.006348549137839290.00317427456891964
230.9946954184628190.01060916307436240.00530458153718121
240.9914456191469530.01710876170609500.00855438085304751
250.987092115372390.02581576925522080.0129078846276104
260.9805815966428260.03883680671434810.0194184033571741
270.9734505750712260.05309884985754860.0265494249287743
280.9662620215479370.06747595690412670.0337379784520634
290.9585173141738740.08296537165225260.0414826858261263
300.9520630634834370.09587387303312590.0479369365165629
310.9349874669068210.1300250661863580.0650125330931791
320.9133617180439180.1732765639121640.0866382819560818
330.9237761919733360.1524476160533270.0762238080266636
340.9282735026975670.1434529946048660.0717264973024329
350.9157954766704360.1684090466591280.084204523329564
360.9427596224118980.1144807551762050.0572403775881024
370.9252844038940120.1494311922119750.0747155961059877
380.9052165786745340.1895668426509320.0947834213254662
390.9110659291937060.1778681416125880.0889340708062938
400.8865062276339370.2269875447321260.113493772366063
410.8836898909028060.2326202181943880.116310109097194
420.9475973535512370.1048052928975250.0524026464487625
430.932248670954860.1355026580902790.0677513290451395
440.9166660103910170.1666679792179660.083333989608983
450.9116049649620830.1767900700758330.0883950350379165
460.9369583994693980.1260832010612040.0630416005306021
470.9339779411169890.1320441177660220.066022058883011
480.9162420508067440.1675158983865110.0837579491932557
490.8976566026556740.2046867946886520.102343397344326
500.9394993893387950.1210012213224110.0605006106612053
510.9643300180466640.07133996390667120.0356699819533356
520.9533935565612340.09321288687753110.0466064434387656
530.9807078813660660.03858423726786780.0192921186339339
540.9743096797704340.05138064045913220.0256903202295661
550.9745806481396080.05083870372078330.0254193518603916
560.9940155551288920.01196888974221570.00598444487110784
570.9916201949663530.01675961006729310.00837980503364655
580.989176777641070.02164644471786210.0108232223589311
590.9875562495702960.02488750085940850.0124437504297042
600.9866386132463370.02672277350732620.0133613867536631
610.9847394173619850.03052116527602960.0152605826380148
620.9819387444445720.03612251111085520.0180612555554276
630.9812523077985830.03749538440283460.0187476922014173
640.9766886049626190.04662279007476270.0233113950373813
650.9724349512594760.05513009748104750.0275650487405237
660.98530161214270.02939677571460130.0146983878573007
670.9992151533681680.001569693263663180.000784846631831591
680.9988607810694680.002278437861063830.00113921893053192
690.99855722566970.002885548660599270.00144277433029963
700.9981353520281350.003729295943729840.00186464797186492
710.9975641940664660.004871611867068540.00243580593353427
720.997756484399410.004487031201181380.00224351560059069
730.9967604581346340.006479083730732470.00323954186536623
740.995357447099370.009285105801259040.00464255290062952
750.9938041212061580.01239175758768330.00619587879384165
760.9950710710945980.009857857810803860.00492892890540193
770.9952810634420420.009437873115916080.00471893655795804
780.995606599446090.008786801107821690.00439340055391084
790.9940839121630780.01183217567384350.00591608783692175
800.991658237695460.01668352460907840.00834176230453921
810.989703828183350.02059234363330180.0102961718166509
820.9871068073686550.02578638526268950.0128931926313447
830.9822233386209750.03555332275804960.0177766613790248
840.9778120031586640.04437599368267260.0221879968413363
850.972664558019920.05467088396015930.0273354419800796
860.9645233130897190.07095337382056280.0354766869102814
870.9547284104126720.09054317917465660.0452715895873283
880.946945321913840.1061093561723200.0530546780861601
890.9322442957381870.1355114085236250.0677557042618127
900.9199544572842520.1600910854314950.0800455427157476
910.9037979731285830.1924040537428350.0962020268714174
920.8794309839191110.2411380321617780.120569016080889
930.8733628501622040.2532742996755920.126637149837796
940.9099535792326820.1800928415346360.0900464207673181
950.8911933006181870.2176133987636260.108806699381813
960.8643475810717430.2713048378565130.135652418928257
970.8465246661025030.3069506677949940.153475333897497
980.8121814126106640.3756371747786710.187818587389336
990.7766572038144180.4466855923711630.223342796185582
1000.7496234945274610.5007530109450780.250376505472539
1010.70395514703680.5920897059263990.296044852963200
1020.6554448143752830.6891103712494340.344555185624717
1030.6443351455156870.7113297089686260.355664854484313
1040.6070206378270740.7859587243458520.392979362172926
1050.6491471869205260.7017056261589480.350852813079474
1060.6150786273689110.7698427452621780.384921372631089
1070.5742009980272710.8515980039454570.425799001972729
1080.5163551509630170.9672896980739660.483644849036983
1090.5255027291672940.9489945416654120.474497270832706
1100.5517639639013480.8964720721973050.448236036098652
1110.4995226183252790.9990452366505570.500477381674721
1120.4974151469489310.9948302938978630.502584853051069
1130.5989473527132650.802105294573470.401052647286735
1140.557840178549790.8843196429004210.442159821450210
1150.4950654546287530.9901309092575050.504934545371247
1160.4310361835789760.8620723671579520.568963816421024
1170.3882855842872960.7765711685745920.611714415712704
1180.3998628421358590.7997256842717180.600137157864141
1190.3366923853903310.6733847707806630.663307614609669
1200.2887861748146570.5775723496293150.711213825185343
1210.2508170960547210.5016341921094420.749182903945279
1220.2207900912365850.441580182473170.779209908763415
1230.1901102540808980.3802205081617970.809889745919102
1240.1568009174889850.3136018349779690.843199082511015
1250.1768758789874300.3537517579748590.82312412101257
1260.1328026611201350.2656053222402710.867197338879865
1270.1563626905988450.3127253811976900.843637309401155
1280.130969959854280.261939919708560.86903004014572
1290.1496576400872040.2993152801744080.850342359912796
1300.1038597468501160.2077194937002310.896140253149884
1310.07851474519364140.1570294903872830.921485254806359
1320.05206106883394890.1041221376678980.94793893116605
1330.04292362724013140.08584725448026280.957076372759869
1340.2507549265285660.5015098530571310.749245073471434
1350.1572156136333710.3144312272667430.842784386366629
1360.589488856537290.821022286925420.41051114346271


Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level230.181102362204724NOK
5% type I error level460.362204724409449NOK
10% type I error level590.464566929133858NOK
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Dec/01/t1291213841gv43h2tf61myt86/10dibe1291213752.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/01/t1291213841gv43h2tf61myt86/10dibe1291213752.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/01/t1291213841gv43h2tf61myt86/1zqvn1291213752.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/01/t1291213841gv43h2tf61myt86/1zqvn1291213752.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/01/t1291213841gv43h2tf61myt86/2zqvn1291213752.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/01/t1291213841gv43h2tf61myt86/2zqvn1291213752.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/01/t1291213841gv43h2tf61myt86/3zqvn1291213752.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/01/t1291213841gv43h2tf61myt86/3zqvn1291213752.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/01/t1291213841gv43h2tf61myt86/4szv81291213752.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/01/t1291213841gv43h2tf61myt86/4szv81291213752.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/01/t1291213841gv43h2tf61myt86/5szv81291213752.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/01/t1291213841gv43h2tf61myt86/5szv81291213752.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/01/t1291213841gv43h2tf61myt86/6szv81291213752.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/01/t1291213841gv43h2tf61myt86/6szv81291213752.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/01/t1291213841gv43h2tf61myt86/73rut1291213752.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/01/t1291213841gv43h2tf61myt86/73rut1291213752.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/01/t1291213841gv43h2tf61myt86/8dibe1291213752.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/01/t1291213841gv43h2tf61myt86/8dibe1291213752.ps (open in new window)


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