Home » date » 2010 » Nov » 23 »

Hypothese testing paper: connected goed

*Unverified author*
R Software Module: /rwasp_multipleregression.wasp (opens new window with default values)
Title produced by software: Multiple Regression
Date of computation: Tue, 23 Nov 2010 09:44:30 +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/Nov/23/t1290505386fa9taacrq2idgme.htm/, Retrieved Tue, 23 Nov 2010 10:43:06 +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/Nov/23/t1290505386fa9taacrq2idgme.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 «
14 12 41 18 11 39 11 14 30 12 12 31 16 21 34 18 12 35 14 22 39 14 11 34 15 10 36 15 13 37 17 10 38 19 8 36 10 15 38 16 14 39 18 10 33 14 14 32 14 14 36 17 11 38 14 10 39 16 13 32 18 7 32 11 14 31 14 12 39 12 14 37 17 11 39 9 9 41 16 11 36 14 15 33 15 14 33 11 13 34 16 9 31 13 15 27 17 10 37 15 11 34 14 13 34 16 8 32 9 20 29 15 12 36 17 10 29 13 10 35 15 9 37 16 14 34 16 8 38 12 14 35 12 11 38 11 13 37 15 9 38 15 11 33 17 15 36 13 11 38 16 10 32 14 14 32 11 18 32 12 14 34 12 11 32 15 12 37 16 13 39 15 9 29 12 10 37 12 15 35 8 20 30 13 12 38 11 12 34 14 14 31 15 13 34 10 11 35 11 17 36 12 12 30 15 13 39 15 14 35 14 13 38 16 15 31 15 13 34 15 10 38 13 11 34 12 19 39 17 13 37 13 17 34 15 13 28 13 9 37 15 11 33 16 10 37 15 9 35 16 12 37 15 12 32 14 13 33 15 13 38 14 12 33 13 15 29 7 22 33 17 13 31 13 15 36 15 13 35 14 15 32 13 10 29 16 11 39 12 16 37 14 11 35 17 11 37 15 10 32 17 10 38 12 16 37 16 12 36 11 11 32 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 time8 seconds
R Server'Sir Ronald Aylmer Fisher' @ 193.190.124.24


Multiple Linear Regression - Estimated Regression Equation
Conn[t] = + 33.2324706807634 + 0.158472808251303Happ[t] -0.0645138156938056Depr[t] + e[t]


Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STAT
H0: parameter = 0
2-tail p-value1-tail p-value
(Intercept)33.23247068076342.82220611.775400
Happ0.1584728082513030.1349131.17460.2418980.120949
Depr-0.06451381569380560.099608-0.64770.5181270.259064


Multiple Linear Regression - Regression Statistics
Multiple R0.151458819815008
R-squared0.0229397740997551
Adjusted R-squared0.0106497083651609
F-TEST (value)1.8665298131957
F-TEST (DF numerator)2
F-TEST (DF denominator)159
p-value0.158032381913386
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation3.35710886629123
Sum Squared Residuals1791.95861048086


Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolation
Forecast
Residuals
Prediction Error
14134.67692420795616.3230757920439
23935.3753292566553.624670743345
33034.0724781518145-4.07247815181446
43134.3599785914534-3.35997859145338
53434.4132454832143-0.413245483214339
63535.3108154409612-0.310815440961195
73934.03178605101794.96821394898207
83434.7414380236498-0.741438023649788
93634.96442464759491.03557535240510
103734.77088320051352.22911679948652
113835.28137026409752.71862973590250
123635.72734351198770.272656488012280
133833.84949152786944.15050847213065
143934.8648421930714.13515780692902
153335.4398430723488-2.43984307234881
163234.5478965765684-2.54789657656837
173634.54789657656841.45210342343163
183835.21685644840372.7831435515963
193934.80595183934364.19404816065641
203234.9293560087648-2.92935600876478
213235.6333845194302-3.63338451943022
223134.0724781518145-3.07247815181446
233934.6769242079564.32307579204402
243734.23095096006582.76904903993424
253935.21685644840373.7831435515963
264134.07810161378096.92189838621912
273635.05838364015240.941616359847606
283334.4833827608746-1.48338276087457
293334.7063693848197-1.70636938481967
303434.1369919675083-0.136991967508267
313135.18741127154-4.18741127154001
322734.3249099526233-7.32490995262326
333735.28137026409751.71862973590250
343434.8999108319011-0.899910831901091
353434.6124103922622-0.612410392262177
363235.2519250872338-3.25192508723381
372933.368449641149-4.36844964114902
383634.83539701620731.16460298379271
392935.2813702640975-6.2813702640975
403534.64747903109230.35252096890771
413735.02893846328871.97106153671130
423434.864842193071-0.864842193070978
433835.25192508723382.74807491276619
443534.23095096006580.769049039934235
453834.42449240714723.57550759285282
463734.13699196750832.86300803249173
473835.02893846328872.9710615367113
483334.8999108319011-1.89991083190109
493634.95880118562851.04119881437152
503834.58296521539853.41703478460152
513235.1228974558462-3.1228974558462
523234.5478965765684-2.54789657656837
533233.8144228890392-1.81442288903924
543434.2309509600658-0.230950960065765
553234.4244924071472-2.42449240714718
563734.83539701620732.16460298379271
573934.92935600876484.07064399123522
582935.0289384632887-6.0289384632887
593734.4890062228412.51099377715901
603534.16643714437200.833562855628041
613033.2099768328977-3.20997683289772
623834.51845139970473.48154860029532
633434.2015057832021-0.201505783202073
643134.5478965765684-3.54789657656837
653434.7708832005135-0.77088320051348
663534.10754679064460.892453209355425
673633.87893670473302.12106329526696
683034.3599785914534-4.35997859145338
693934.77088320051354.22911679948652
703534.70636938481970.293630615180326
713834.61241039226223.38758960773782
723134.8003283773772-3.80032837737717
733434.7708832005135-0.77088320051348
743834.96442464759493.03557535240510
753434.5829652153985-0.582965215398485
763933.90838188159675.09161811840326
773735.08782881701611.91217118298391
783434.1958823212357-0.195882321235651
792834.7708832005135-6.77088320051348
803734.71199284678612.28800715321390
813334.8999108319011-1.89991083190109
823735.12289745584621.8771025441538
833535.0289384632887-0.0289384632887022
843734.99386982445862.00613017554141
853234.8353970162073-2.83539701620729
863334.6124103922622-1.61241039226218
873834.77088320051353.22911679948652
883334.676924207956-1.67692420795598
892934.3249099526233-5.32490995262326
903332.92247639325880.0775236067411961
913135.0878288170161-4.08782881701609
923634.32490995262331.67509004737674
933534.77088320051350.22911679948652
943234.4833827608746-2.48338276087457
952934.6474790310923-5.64747903109229
963935.05838364015243.94161635984761
973734.10192332867822.89807667132185
983534.74143802364980.258561976350212
993735.21685644840371.78314355159630
1003234.9644246475949-2.96442464759490
1013835.28137026409752.71862973590250
1023734.10192332867822.89807667132185
1033634.99386982445861.00613017554141
1043234.2660195988959-2.26601959889588
1053334.5773417534321-1.57734175343206
1064033.43296345684286.56703654315717
1073835.05838364015242.94161635984761
1084134.57734175343216.42265824656794
1093633.84949152786942.15050847213065
1104333.26886718662519.7311328133749
1113034.7063693848197-4.70636938481967
1123134.0079643361207-3.00796433612066
1133234.5829652153985-2.58296521539848
1143234.4833827608746-2.48338276087457
1153735.31081544096121.68918455903880
1163735.12289745584621.8771025441538
1173334.5478965765684-1.54789657656837
1183434.6124103922622-0.612410392262177
1193334.8704656550374-1.8704656550374
1203834.48338276087463.51661723912543
1213334.1664371443720-1.16643714437196
1223134.5478965765684-3.54789657656837
1233834.89991083190113.10008916809891
1243735.09345227898251.90654772101749
1253334.8999108319011-1.89991083190109
1263134.5829652153985-3.58296521539848
1273935.41039789548513.58960210451489
1284435.28137026409758.7186297359025
1293335.5338020649063-2.53380206490630
1303534.77088320051350.22911679948652
1313234.5829652153985-2.58296521539848
1322833.368449641149-5.36844964114902
1334034.96442464759495.0355753524051
1342734.6418555691259-7.64185556912587
1353734.83539701620732.16460298379271
1363234.864842193071-2.86484219307098
1372833.4918538105702-5.49185381057021
1383434.5478965765684-0.547896576568371
1393033.9434505204269-3.94345052042685
1403534.89991083190110.100089168098909
1413134.5184513997047-3.51845139970468
1423234.9644246475949-2.96442464759490
1433034.864842193071-4.86484219307098
1443034.676924207956-4.67692420795598
1453134.8353970162073-3.83539701620729
1464035.05838364015244.94161635984761
1473234.9938698244586-2.99386982445859
1483634.13699196750831.86300803249173
1493234.4244924071472-2.42449240714718
1503533.43296345684281.56703654315717
1513834.99386982445863.00613017554141
1524234.19588232123577.80411767876435
1533435.18741127154-1.18741127154001
1543534.35997859145340.640021408546624
1553533.43296345684281.56703654315717
1563334.1313685055418-1.13136850554185
1573634.32490995262331.67509004737674
1583234.5478965765684-2.54789657656837
1593335.5338020649063-2.53380206490630
1603434.7119928467861-0.711992846786096
1613233.9728956972905-1.97289569729054
1623434.2603961369295-0.260396136929457


Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
60.8244485871330920.3511028257338170.175551412866908
70.8751529606767480.2496940786465030.124847039323252
80.7959718577346820.4080562845306360.204028142265318
90.7017325166214680.5965349667570650.298267483378532
100.6110175372713040.7779649254573920.388982462728696
110.5117492822053770.9765014355892460.488250717794623
120.4544159086180230.9088318172360460.545584091381977
130.5309355915643210.9381288168713590.469064408435679
140.4912428752380550.982485750476110.508757124761945
150.510585272161980.978829455676040.48941472783802
160.519550469643450.96089906071310.48044953035655
170.4401643027305960.8803286054611920.559835697269404
180.3869446972693730.7738893945387460.613055302730627
190.4075915548911780.8151831097823570.592408445108822
200.4462293424955950.8924586849911910.553770657504404
210.4710452736751190.9420905473502390.528954726324881
220.4794420740565070.9588841481130150.520557925943493
230.5047837543105850.990432491378830.495216245689415
240.4638690753018820.9277381506037630.536130924698118
250.4535113665255740.9070227330511490.546488633474426
260.6016598881693350.7966802236613290.398340111830665
270.5402671402008580.9194657195982840.459732859799142
280.5155954219905770.9688091560188460.484404578009423
290.4900695970038250.980139194007650.509930402996175
300.4417446124377980.8834892248755960.558255387562202
310.5005426680478080.9989146639043840.499457331952192
320.745748847690680.5085023046186410.254251152309321
330.706018648564250.58796270287150.29398135143575
340.6632597357118370.6734805285763260.336740264288163
350.6157294597753730.7685410804492540.384270540224627
360.6175186248301710.7649627503396580.382481375169829
370.663545956570110.6729080868597790.336454043429890
380.6164823305853510.7670353388292980.383517669414649
390.7364605521306140.5270788957387730.263539447869386
400.6914256939334520.6171486121330960.308574306066548
410.6569916762535010.6860166474929970.343008323746499
420.6109268740156050.7781462519687910.389073125984395
430.5881674063322680.8236651873354640.411832593667732
440.5387402133885120.9225195732229750.461259786611488
450.5339729173713340.9320541652573320.466027082628666
460.510498863164930.979002273670140.48950113683507
470.4906083289641370.9812166579282740.509391671035863
480.4613677966959690.9227355933919380.538632203304031
490.4175714625273380.8351429250546770.582428537472662
500.409103969608410.818207939216820.59089603039159
510.4090939390261630.8181878780523270.590906060973837
520.3923687297639770.7847374595279540.607631270236023
530.3610986816383990.7221973632767980.638901318361601
540.3174179210781710.6348358421563410.682582078921829
550.3046258332378550.609251666475710.695374166762145
560.2787590694295100.5575181388590210.72124093057049
570.2968719693391840.5937439386783680.703128030660816
580.4047738409418140.8095476818836280.595226159058186
590.3811591436880120.7623182873760230.618840856311988
600.3387901056182100.6775802112364210.66120989438179
610.3355288852670770.6710577705341540.664471114732923
620.3359764064668430.6719528129336860.664023593533157
630.2953146181449160.5906292362898320.704685381855084
640.3005495361632330.6010990723264670.699450463836767
650.263266332150720.526532664301440.73673366784928
660.2297366650946750.4594733301893490.770263334905325
670.2098481702208340.4196963404416680.790151829779166
680.2354991657575540.4709983315151080.764500834242446
690.2557697243433560.5115394486867120.744230275656644
700.2202444673654610.4404889347309220.779755532634539
710.2200037145428320.4400074290856630.779996285457168
720.2303364941310340.4606729882620680.769663505868966
730.1987404049787310.3974808099574620.80125959502127
740.1922473124268340.3844946248536680.807752687573166
750.1640440508606250.3280881017212510.835955949139375
760.203690159122970.407380318245940.79630984087703
770.1816932762457390.3633865524914780.818306723754261
780.1532803834429350.306560766885870.846719616557065
790.2510564087535110.5021128175070220.748943591246489
800.2340355814940290.4680711629880580.765964418505971
810.2110116415421050.4220232830842110.788988358457895
820.1892859198149170.3785718396298330.810714080185084
830.1606760789154780.3213521578309570.839323921084521
840.1432389954957090.2864779909914180.856761004504291
850.1357268942054120.2714537884108250.864273105794588
860.1174036553654310.2348073107308630.882596344634569
870.1154686566929390.2309373133858780.884531343307061
880.09944869056046190.1988973811209240.900551309439538
890.1312955041763310.2625910083526610.86870449582367
900.1086157808109350.2172315616218690.891384219189065
910.1196640564572020.2393281129144030.880335943542798
920.1034130889162940.2068261778325880.896586911083706
930.0843628980097820.1687257960195640.915637101990218
940.07655538972899240.1531107794579850.923444610271008
950.1066571328522560.2133142657045110.893342867147744
960.1139926903890630.2279853807781260.886007309610937
970.1081884366535450.216376873307090.891811563346455
980.08857807466933910.1771561493386780.91142192533066
990.07583572758016140.1516714551603230.924164272419839
1000.07094623425074640.1418924685014930.929053765749254
1010.06565440558260580.1313088111652120.934345594417394
1020.06175739968534150.1235147993706830.938242600314659
1030.04992603999224060.09985207998448110.95007396000776
1040.04276386206337900.08552772412675790.957236137936621
1050.03500165625843940.07000331251687890.96499834374156
1060.06838489616832870.1367697923366570.931615103831671
1070.06477095661599360.1295419132319870.935229043384006
1080.1121912405220700.2243824810441400.88780875947793
1090.1020645887089830.2041291774179670.897935411291017
1100.4262088980893760.8524177961787520.573791101910624
1110.4588232237786660.9176464475573330.541176776221334
1120.4372506382950230.8745012765900470.562749361704977
1130.4154493064503230.8308986129006450.584550693549677
1140.385033268715350.77006653743070.61496673128465
1150.3524657237883230.7049314475766460.647534276211677
1160.3200985463290920.6401970926581850.679901453670908
1170.2815163066336250.5630326132672490.718483693366375
1180.2408793734371760.4817587468743520.759120626562824
1190.2174565407532070.4349130815064130.782543459246793
1200.2395189097830810.4790378195661630.760481090216919
1210.2034178221798000.4068356443595990.7965821778202
1220.1958100863750880.3916201727501750.804189913624912
1230.1907775757627110.3815551515254220.809222424237289
1240.1635527147402720.3271054294805450.836447285259728
1250.1401600802646870.2803201605293730.859839919735313
1260.1436852552573220.2873705105146440.856314744742678
1270.1406499134679570.2812998269359140.859350086532043
1280.4147684722466910.8295369444933820.585231527753309
1290.3705596504438990.7411193008877990.6294403495561
1300.3245077682060850.649015536412170.675492231793915
1310.3005348836319350.6010697672638710.699465116368065
1320.34802351606050.6960470321210.6519764839395
1330.4461266559330170.8922533118660350.553873344066983
1340.6130521956940280.7738956086119440.386947804305972
1350.6047707891396370.7904584217207250.395229210860363
1360.5582698039941790.8834603920116430.441730196005821
1370.6757255785794090.6485488428411830.324274421420592
1380.6129832891717320.7740334216565370.387016710828268
1390.652522561446010.694954877107980.34747743855399
1400.5963638637017520.8072722725964960.403636136298248
1410.581609379506340.836781240987320.41839062049366
1420.5323470193442820.9353059613114350.467652980655718
1430.5855180541012180.8289638917975640.414481945898782
1440.6417318209094640.7165363581810720.358268179090536
1450.6631472606344870.6737054787310260.336852739365513
1460.7980248531933090.4039502936133820.201975146806691
1470.772750504239740.454498991520520.22724949576026
1480.7199751425909340.5600497148181330.280024857409066
1490.6763198077928690.6473603844142630.323680192207131
1500.5830280518919310.8339438962161380.416971948108069
1510.605086987736660.789826024526680.39491301226334
1520.9947492196539080.01050156069218440.0052507803460922
1530.9854401483717760.0291197032564480.014559851628224
1540.9639030835150650.07219383296986910.0360969164849346
1550.9238326947473770.1523346105052450.0761673052526227
1560.8238902262358670.3522195475282650.176109773764133


Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level00OK
5% type I error level20.0132450331125828OK
10% type I error level60.0397350993377483OK
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Nov/23/t1290505386fa9taacrq2idgme/10f1xl1290505458.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/23/t1290505386fa9taacrq2idgme/10f1xl1290505458.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Nov/23/t1290505386fa9taacrq2idgme/18z0r1290505458.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/23/t1290505386fa9taacrq2idgme/18z0r1290505458.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Nov/23/t1290505386fa9taacrq2idgme/2j9zc1290505458.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/23/t1290505386fa9taacrq2idgme/2j9zc1290505458.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Nov/23/t1290505386fa9taacrq2idgme/3j9zc1290505458.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/23/t1290505386fa9taacrq2idgme/3j9zc1290505458.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Nov/23/t1290505386fa9taacrq2idgme/4j9zc1290505458.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/23/t1290505386fa9taacrq2idgme/4j9zc1290505458.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Nov/23/t1290505386fa9taacrq2idgme/5j9zc1290505458.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/23/t1290505386fa9taacrq2idgme/5j9zc1290505458.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Nov/23/t1290505386fa9taacrq2idgme/6uihf1290505458.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/23/t1290505386fa9taacrq2idgme/6uihf1290505458.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Nov/23/t1290505386fa9taacrq2idgme/74ry01290505458.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/23/t1290505386fa9taacrq2idgme/74ry01290505458.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Nov/23/t1290505386fa9taacrq2idgme/84ry01290505458.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/23/t1290505386fa9taacrq2idgme/84ry01290505458.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Nov/23/t1290505386fa9taacrq2idgme/9f1xl1290505458.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/23/t1290505386fa9taacrq2idgme/9f1xl1290505458.ps (open in new window)


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