Home » date » 2010 » Dec » 05 »

Paper Interactie effecten

*The author of this computation has been verified*
R Software Module: /rwasp_multipleregression.wasp (opens new window with default values)
Title produced by software: Multiple Regression
Date of computation: Sun, 05 Dec 2010 18:20:46 +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/05/t1291573432yq0cv1deh4w8lv3.htm/, Retrieved Sun, 05 Dec 2010 19:23:55 +0100
 
BibTeX entries for LaTeX users:
@Manual{KEY,
    author = {{YOUR NAME}},
    publisher = {Office for Research Development and Education},
    title = {Statistical Computations at FreeStatistics.org, URL http://www.freestatistics.org/blog/date/2010/Dec/05/t1291573432yq0cv1deh4w8lv3.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 «
1 24 24 14 14 11 11 12 12 24 26 26 0 25 0 11 0 7 0 8 0 25 23 0 0 17 0 6 0 17 0 8 0 30 25 0 1 18 18 12 12 10 10 8 8 19 23 23 0 18 0 8 0 12 0 9 0 22 19 0 0 16 0 10 0 12 0 7 0 22 29 0 0 20 0 10 0 11 0 4 0 25 25 0 0 16 0 11 0 11 0 11 0 23 21 0 0 18 0 16 0 12 0 7 0 17 22 0 0 17 0 11 0 13 0 7 0 21 25 0 1 23 23 13 13 14 14 12 12 19 24 24 0 30 0 12 0 16 0 10 0 19 18 0 0 23 0 8 0 11 0 10 0 15 22 0 0 18 0 12 0 10 0 8 0 16 15 0 1 15 15 11 11 11 11 8 8 23 22 22 1 12 12 4 4 15 15 4 4 27 28 28 0 21 0 9 0 9 0 9 0 22 20 0 1 15 15 8 8 11 11 8 8 14 12 12 1 20 20 8 8 17 17 7 7 22 24 24 0 31 0 14 0 17 0 11 0 23 20 0 0 27 0 15 0 11 0 9 0 23 21 0 0 21 0 9 0 14 0 13 0 19 21 0 1 31 31 14 14 10 10 8 8 18 23 23 1 19 19 11 11 11 11 8 8 20 28 28 0 16 0 8 0 15 0 9 0 23 24 0 0 20 0 9 0 15 0 6 0 25 24 0 1 21 21 9 9 13 13 9 9 19 24 24 1 22 22 9 9 16 16 9 9 24 23 23 0 17 0 9 0 13 0 6 0 22 23 0 0 25 0 16 0 18 0 16 0 26 24 0 0 26 0 11 0 18 0 5 0 29 18 0 0 25 0 8 0 12 0 7 0 32 25 0 0 17 0 9 0 17 0 9 0 25 21 0 1 etc...
 
Output produced by software:

Enter (or paste) a matrix (table) containing all data (time) series. Every column represents a different variable and must be delimited by a space or Tab. Every row represents a period in time (or category) and must be delimited by hard returns. The easiest way to enter data is to copy and paste a block of spreadsheet cells. Please, do not use commas or spaces to seperate groups of digits!


Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time8 seconds
R Server'RServer@AstonUniversity' @ vre.aston.ac.uk


Multiple Linear Regression - Estimated Regression Equation
PS[t] = + 7.05980418777325 -0.625089264853433M[t] + 0.296179087537003CM[t] + 0.070642119661626CM_M[t] -0.283469161339915D[t] -0.193290505489402D_M[t] + 0.260800182428789PE[t] -0.27410715866219PE_M[t] -0.0177004220449542PC[t] + 0.114293878489504PC_M[t] + 0.392234889899682O[t] + 0.135450774613635O_M[t] + e[t]


Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STAT
H0: parameter = 0
2-tail p-value1-tail p-value
(Intercept)7.059804187773252.885982.44620.0156580.007829
M-0.6250892648534335.017803-0.12460.9010370.450518
CM0.2961790875370030.0777593.80890.0002070.000104
CM_M0.0706421196616260.1185830.59570.5523120.276156
D-0.2834691613399150.155718-1.82040.0708040.035402
D_M-0.1932905054894020.239269-0.80780.4205350.210268
PE0.2608001824287890.1363991.9120.0578850.028943
PE_M-0.274107158662190.22474-1.21970.2246140.112307
PC-0.01770042204495420.161925-0.10930.9131090.456554
PC_M0.1142938784895040.2828150.40410.6867260.343363
O0.3922348898996820.0940064.17255.2e-052.6e-05
O_M0.1354507746136350.1663140.81440.4167630.208381


Multiple Linear Regression - Regression Statistics
Multiple R0.624684363935184
R-squared0.390230554545106
Adjusted R-squared0.342994893277473
F-TEST (value)8.2613547492031
F-TEST (DF numerator)11
F-TEST (DF denominator)142
p-value4.33513225317483e-11
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation3.45563605556431
Sum Squared Residuals1695.68171788928


Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolation
Forecast
Residuals
Prediction Error
12423.29636057618990.703639423810088
22522.05152096979382.94847903020616
33024.49190568028465.50809431971537
41920.092828823572-1.09282882357201
52220.54603577155481.45396422844518
62223.3444890168877-1.34448901688771
72522.75256689114312.24743310885693
82319.59153886574173.40846113425826
91719.4903879946245-2.49038799462446
102122.0490595659149-1.04905956591486
111922.3110067780938-3.31100677809376
121923.5995735944097-4.59957359440972
131522.9251352744651-7.92513527446513
141617.3393196237838-1.33931962378381
152318.92813222805874.07186777194127
162723.89149853063623.10850146936385
172220.76093821543921.23906178456077
181415.0815545834135-1.08155458341351
192223.0714532797215-1.0714532797215
202324.3563838994501-1.35638389945009
212321.7510330273791.24896697262098
221922.386372329303-3.38637232930304
231823.9079851834956-5.90798518349556
242023.5615310439331-3.56153104393315
252322.69725259326560.302747406734413
262523.65160104820851.34839895179145
271923.2079296379135-4.20792963791352
282423.00714425189860.992855748101375
292221.84922853084030.15077146915972
302623.7536086833512.24639131664902
312923.3084288806845.69157111931603
323225.00809956780186.99190043219816
332522.05485821462122.94514178537879
342924.72446411391984.27553588608019
352825.36434099721182.63565900278825
361715.50760413394781.49239586605216
372826.24707084985011.75292915014988
382922.53736986505116.46263013494893
392626.9548735237134-0.954873523713413
402523.53782288481921.46217711518078
411417.8136992889837-3.81369928898374
422522.64932950017162.3506704998284
432621.77999057162794.22000942837209
442020.0344295547694-0.0344295547693637
451821.9026533709004-3.90265337090037
463224.98943332575047.01056667424956
472524.82370739342570.176292606574296
482522.44998777723362.55001222276644
492321.32820653374591.67179346625409
502122.0241795361065-1.02417953610648
512024.1192700550911-4.11927005509109
521516.3867168274286-1.38671682742862
533025.05784637940264.9421536205974
542425.438171986193-1.43817198619304
552624.31939334026541.68060665973459
562420.85894580135463.14105419864537
572222.5676753400154-0.567675340015414
581416.4788312268021-2.4788312268021
592422.28163744986571.71836255013428
602422.44138960175061.55861039824945
612423.79545343177680.204546568223215
622420.26696223016743.73303776983263
631917.80869115407461.19130884592543
643128.02194802807922.97805197192078
652227.2829218727514-5.28292187275137
662720.79463677353186.20536322646824
671917.17686270809261.82313729190742
682522.39829604162332.60170395837666
692024.7199321607138-4.7199321607138
702121.3806855541542-0.380685554154177
712727.3447604372431-0.344760437243079
722324.918061415164-1.918061415164
732525.8209104633302-0.820910463330248
742022.2621630884043-2.26216308840432
752222.7834712031622-0.783471203162157
762323.6257640178505-0.625764017850549
772524.14802528116780.851974718832198
782523.70709512078161.29290487921837
791723.6155185631486-6.61551856314859
801920.6256858519544-1.62568585195438
812524.12506870379740.874931296202566
821922.8209917670929-3.82099176709295
832022.0213024626656-2.02130246266558
842622.63881066673543.36118933326456
852321.21826683163081.7817331683692
862724.50535329075462.49464670924538
871720.2345906264913-3.23459062649129
881722.5483369070821-5.54833690708213
891719.5594726829038-2.55947268290383
902222.3915505023439-0.391550502343912
912124.1805516259676-3.18055162596756
923228.8691701918783.13082980812197
932124.0532027303745-3.05320273037451
942124.6828295359995-3.68282953599951
951820.7113502933206-2.71135029332061
961821.4423144034967-3.44231440349674
972323.0091627916008-0.00916279160077999
981920.1009913417402-1.10099134174018
992021.4861209705464-1.48612097054643
1002122.4874405664953-1.48744056649528
1012024.3194094496421-4.31940944964213
1021719.1595363624267-2.15953636242665
1031820.1639037335988-2.16390373359879
1041920.713801336222-1.71380133622203
1052222.4499438992702-0.449943899270173
1061517.4973160883322-2.49731608833222
1071419.1005411779597-5.10054117795971
1081826.4591005600035-8.45910056000355
1092421.82036146451232.17963853548773
1103523.647689016337211.3523109836628
1112918.937700292195310.0622997078047
1122122.2464539165878-1.24645391658783
1132017.91214468849372.08785531150626
1142222.2648021800946-0.264802180094649
1151315.666614386354-2.66661438635403
1162622.9148041182223.08519588177802
1171717.3696081117779-0.369608111777926
1182520.5161366744314.48386332556899
1192020.499208019904-0.499208019904032
1201917.6309645211851.369035478815
1212121.2100820711648-0.210082071164784
1222221.18557470380940.814425296190587
1232422.7905309315231.20946906847698
1242123.2463420430303-2.24634204303034
1252625.39821669558460.601783304415367
1262420.71350908612233.28649091387771
1271620.4723786369852-4.47237863698522
1282322.43625626483420.563743735165762
1291820.8287187190179-2.82871871901795
1301622.1201978263597-6.12019782635974
1312622.08307030037353.91692969962649
1321919.5740261208898-0.574026120889791
1332117.31954996922593.68045003077414
1342122.2110311335162-1.21103113351623
1352218.67366506722473.32633493277529
1362319.65579485717463.34420514282541
1372924.90771297157974.09228702842034
1382120.02707886629120.97292113370882
1392120.04083966855980.959160331440173
1402322.46253196521930.537468034780665
1412723.2897279769473.71027202305298
1422525.4168956603399-0.416895660339886
1432121.0217603368497-0.0217603368497115
1441017.3167990957428-7.31679909574281
1452022.6268869544151-2.62688695441514
1462622.3377675952393.662232404761
1472424.262148957464-0.26214895746405
1482931.924161423221-2.92416142322096
1491919.2763403620576-0.276340362057584
1502422.69582112375931.30417887624075
1511921.0647587510409-2.06475875104092
1522423.32190025017960.67809974982041
1532222.2548111099437-0.254811109943715
1541724.2225438314031-7.22254383140306


Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
150.9711402162612430.05771956747751420.0288597837387571
160.9409917847826530.1180164304346930.0590082152173467
170.8964526611393160.2070946777213680.103547338860684
180.8328608488731070.3342783022537860.167139151126893
190.8214602309909640.3570795380180730.178539769009036
200.8078452057042870.3843095885914250.192154794295713
210.7903561958495190.4192876083009620.209643804150481
220.7439124894752580.5121750210494830.256087510524741
230.6922542259761140.6154915480477730.307745774023886
240.7136194594994750.5727610810010490.286380540500525
250.6382175744622260.7235648510755470.361782425537774
260.5612826201569370.8774347596861260.438717379843063
270.5109146531552390.9781706936895210.489085346844761
280.4822541004137280.9645082008274550.517745899586272
290.4145707547733010.8291415095466020.585429245226699
300.4259542831293190.8519085662586380.574045716870681
310.5177012033764580.9645975932470840.482298796623542
320.6583029050352470.6833941899295060.341697094964753
330.6207756513538140.7584486972923720.379224348646186
340.6903625887581820.6192748224836350.309637411241818
350.7309891187608460.5380217624783080.269010881239154
360.691285900279840.6174281994403180.308714099720159
370.6395822179671850.720835564065630.360417782032815
380.7398511195955550.5202977608088910.260148880404445
390.6881249000186190.6237501999627620.311875099981381
400.636500719565910.726998560868180.36349928043409
410.6292182143337360.7415635713325280.370781785666264
420.591014542428730.817970915142540.40898545757127
430.6037180267328790.7925639465342430.396281973267121
440.5489419230125750.902116153974850.451058076987425
450.5585715918624870.8828568162750260.441428408137513
460.6471022191365670.7057955617268670.352897780863433
470.5971488028320460.8057023943359080.402851197167954
480.5666266694070230.8667466611859540.433373330592977
490.573255432036340.853489135927320.42674456796366
500.525577617038350.94884476592330.47442238296165
510.5633818153464430.8732363693071140.436618184653557
520.5197185275977290.9605629448045420.480281472402271
530.6746036807413980.6507926385172050.325396319258602
540.6344560783367140.7310878433265720.365543921663286
550.5935586764818760.8128826470362470.406441323518124
560.5741725959067380.8516548081865230.425827404093262
570.5234290740622790.9531418518754420.476570925937721
580.4855576358688850.971115271737770.514442364131115
590.445983200429830.891966400859660.55401679957017
600.407007604758670.814015209517340.59299239524133
610.3591967226906470.7183934453812940.640803277309353
620.3694033370014820.7388066740029640.630596662998518
630.3261341044121360.6522682088242720.673865895587864
640.3662434269623380.7324868539246770.633756573037662
650.4355023397291280.8710046794582570.564497660270872
660.5456993775643360.9086012448713280.454300622435664
670.4974960132906820.9949920265813640.502503986709318
680.4785456995593790.9570913991187590.521454300440621
690.5481792636682040.9036414726635930.451820736331796
700.499328483585010.998656967170020.50067151641499
710.4533446725864340.9066893451728690.546655327413566
720.4193044249843470.8386088499686930.580695575015653
730.3832639590156150.766527918031230.616736040984385
740.3559224722090990.7118449444181980.644077527790901
750.3123829672717220.6247659345434450.687617032728278
760.2745690703304020.5491381406608050.725430929669598
770.2374611676189290.4749223352378580.762538832381071
780.2077420544320640.4154841088641270.792257945567936
790.3219390164826940.6438780329653870.678060983517306
800.293637882390930.587275764781860.70636211760907
810.2551331496258030.5102662992516060.744866850374197
820.2541418594159320.5082837188318640.745858140584068
830.2294267343889090.4588534687778190.770573265611091
840.2285985451904890.4571970903809790.77140145480951
850.2030554432919780.4061108865839560.796944556708022
860.1873367539619780.3746735079239560.812663246038022
870.1803194486916670.3606388973833330.819680551308333
880.2203929581077210.4407859162154430.779607041892279
890.1982397477336550.396479495467310.801760252266345
900.1696174105161350.339234821032270.830382589483865
910.1568314887410580.3136629774821160.843168511258942
920.1565746677496150.3131493354992310.843425332250385
930.1452395133881680.2904790267763350.854760486611832
940.1457810802731110.2915621605462220.85421891972689
950.1305513410894820.2611026821789630.869448658910518
960.1259900059853340.2519800119706680.874009994014666
970.1012363710637630.2024727421275270.898763628936237
980.08132905828873640.1626581165774730.918670941711264
990.0656687876850820.1313375753701640.934331212314918
1000.05201297318336120.1040259463667220.947987026816639
1010.05984401652368080.1196880330473620.94015598347632
1020.04949820875692010.09899641751384030.95050179124308
1030.04271586486115570.08543172972231130.957284135138844
1040.03647168223280410.07294336446560830.963528317767196
1050.0272067956654990.0544135913309980.9727932043345
1060.02309519318160150.04619038636320290.976904806818399
1070.02922516265774910.05845032531549830.97077483734225
1080.1280281140958780.2560562281917550.871971885904122
1090.1299239497234670.2598478994469350.870076050276533
1100.5992914456589650.801417108682070.400708554341035
1110.8832484669297440.2335030661405120.116751533070256
1120.8542871064111350.291425787177730.145712893588865
1130.9133688996437120.1732622007125760.0866311003562878
1140.8895722880434130.2208554239131740.110427711956587
1150.8652497381633210.2695005236733580.134750261836679
1160.8426052791818010.3147894416363980.157394720818199
1170.8003422200821950.399315559835610.199657779917805
1180.8189373575862290.3621252848275420.181062642413771
1190.7741515522921860.4516968954156280.225848447707814
1200.7273374720724140.5453250558551720.272662527927586
1210.667045721796790.6659085564064210.332954278203211
1220.6218590159225980.7562819681548040.378140984077402
1230.5655193204520850.8689613590958310.434480679547915
1240.5013321991457180.9973356017085650.498667800854282
1250.4382034465466860.8764068930933720.561796553453314
1260.417163590846990.834327181693980.58283640915301
1270.4217268371491280.8434536742982560.578273162850872
1280.3460244325012560.6920488650025110.653975567498744
1290.3099945530228630.6199891060457270.690005446977137
1300.2608904413053580.5217808826107160.739109558694642
1310.2044845202140740.4089690404281480.795515479785926
1320.1507804540988760.3015609081977530.849219545901124
1330.1410812196391820.2821624392783630.858918780360818
1340.09790674425081380.1958134885016280.902093255749186
1350.07187083345029560.1437416669005910.928129166549704
1360.05094698940926210.1018939788185240.949053010590738
1370.0563071380702330.1126142761404660.943692861929767
1380.0925520162201240.1851040324402480.907447983779876
1390.04601236245136170.09202472490272330.953987637548638


Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level00OK
5% type I error level10.008OK
10% type I error level80.064OK
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Dec/05/t1291573432yq0cv1deh4w8lv3/109dwb1291573233.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/05/t1291573432yq0cv1deh4w8lv3/109dwb1291573233.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/05/t1291573432yq0cv1deh4w8lv3/13uhh1291573233.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/05/t1291573432yq0cv1deh4w8lv3/13uhh1291573233.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/05/t1291573432yq0cv1deh4w8lv3/23uhh1291573233.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/05/t1291573432yq0cv1deh4w8lv3/23uhh1291573233.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/05/t1291573432yq0cv1deh4w8lv3/3v3gk1291573233.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/05/t1291573432yq0cv1deh4w8lv3/3v3gk1291573233.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/05/t1291573432yq0cv1deh4w8lv3/4v3gk1291573233.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/05/t1291573432yq0cv1deh4w8lv3/4v3gk1291573233.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/05/t1291573432yq0cv1deh4w8lv3/5v3gk1291573233.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/05/t1291573432yq0cv1deh4w8lv3/5v3gk1291573233.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/05/t1291573432yq0cv1deh4w8lv3/66ufn1291573233.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/05/t1291573432yq0cv1deh4w8lv3/66ufn1291573233.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/05/t1291573432yq0cv1deh4w8lv3/7z3eq1291573233.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/05/t1291573432yq0cv1deh4w8lv3/7z3eq1291573233.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/05/t1291573432yq0cv1deh4w8lv3/8z3eq1291573233.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/05/t1291573432yq0cv1deh4w8lv3/8z3eq1291573233.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/05/t1291573432yq0cv1deh4w8lv3/9z3eq1291573233.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/05/t1291573432yq0cv1deh4w8lv3/9z3eq1291573233.ps (open in new window)


 
Parameters (Session):
 
Parameters (R input):
par1 = 10 ; 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