Home » date » 2010 » Nov » 21 »

W7-model4

*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, 21 Nov 2010 20:43:25 +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/21/t1290372129yq0tf8ipixwd836.htm/, Retrieved Sun, 21 Nov 2010 21:42:20 +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/21/t1290372129yq0tf8ipixwd836.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 «
24 14 11 12 24 26 25 11 7 8 25 23 17 6 17 8 30 25 18 12 10 8 19 23 18 8 12 9 22 19 16 10 12 7 22 29 20 10 11 4 25 25 16 11 11 11 23 21 18 16 12 7 17 22 17 11 13 7 21 25 23 13 14 12 19 24 30 12 16 10 19 18 23 8 11 10 15 22 18 12 10 8 16 15 15 11 11 8 23 22 12 4 15 4 27 28 21 9 9 9 22 20 15 8 11 8 14 12 20 8 17 7 22 24 31 14 17 11 23 20 27 15 11 9 23 21 34 16 18 11 21 20 21 9 14 13 19 21 31 14 10 8 18 23 19 11 11 8 20 28 16 8 15 9 23 24 20 9 15 6 25 24 21 9 13 9 19 24 22 9 16 9 24 23 17 9 13 6 22 23 24 10 9 6 25 29 25 16 18 16 26 24 26 11 18 5 29 18 25 8 12 7 32 25 17 9 17 9 25 21 32 16 9 6 29 26 33 11 9 6 28 22 13 16 12 5 17 22 32 12 18 12 28 22 25 12 12 7 29 23 29 14 18 10 26 30 22 9 14 9 25 23 18 10 15 8 14 17 17 9 16 5 25 23 20 10 10 8 26 23 15 12 11 8 20 25 20 14 14 10 18 24 33 14 9 6 32 24 29 10 12 8 25 23 23 14 17 7 25 21 26 16 5 4 23 24 18 9 12 8 21 24 20 10 12 8 20 28 11 6 6 4 15 16 28 8 24 20 30 20 26 13 12 8 24 29 22 10 12 8 26 27 17 8 14 6 24 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
R Framework
error message
The field 'Names of X columns' contains a hard return which cannot be interpreted.
Please, resubmit your request without hard returns in the 'Names of X columns'.


Multiple Linear Regression - Estimated Regression Equation
X1[t] = + 7.28456727859203 + 0.247876363312639YT[t] -0.106836322758769X2[t] + 0.148172353972168X3[t] -0.191083348051682X4[t] + 0.113319775964761`X5 `[t] + 0.00141604344161365t + e[t]


Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STAT
H0: parameter = 0
2-tail p-value1-tail p-value
(Intercept)7.284567278592031.6971854.29213.1e-051.6e-05
YT0.2478763633126390.0402746.154700
X2-0.1068363227587690.074214-1.43960.1520430.076022
X30.1481723539721680.0931711.59030.113840.05692
X4-0.1910833480516820.05704-3.350.0010190.00051
`X5 `0.1133197759647610.0579181.95660.0522310.026115
t0.001416043441613650.0044470.31840.7506230.375311


Multiple Linear Regression - Regression Statistics
Multiple R0.489953106743654
R-squared0.240054046807758
Adjusted R-squared0.210056180234380
F-TEST (value)8.00237064261089
F-TEST (DF numerator)6
F-TEST (DF denominator)152
p-value1.63423508947602e-07
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation2.48907037510704
Sum Squared Residuals941.711642499795


Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolation
Forecast
Residuals
Prediction Error
11412.19819856069981.80180143930024
21111.7511041666546-0.751104166654634
367.97236888767856-1.97236888767856
41210.84479283038321.15520716961683
589.75417943426532-1.75417943426532
61010.0966958027849-0.0966958027849393
7109.725407412305280.274592587694715
8119.701412072545841.29858792745416
91610.75887496824015.24112503175986
10119.98120426129791.01879573870210
111312.37275085185600.627249148143973
121212.9193654292357-0.919365429235675
13812.9374410393484-4.93744103934843
141210.52564510123631.47435489876373
15119.132250727372751.86774927262725
1647.28558823753454-3.28558823753454
17910.9486297897437-1.94862978974368
1889.72305123051512-1.72305123051512
19810.0058293271588-2.00582932715883
201412.68221233101741.31778766898258
211512.15011592578152.84988407421849
221613.70400388118322.29599611881684
23911.702203672608-2.702203672608
241414.2865897703314-0.286589770331441
251111.3910853149831-0.391085314983056
2689.34317018340976-1.34317018340976
2799.50940792208206-0.509407922082058
28911.5633901245804-2.56339012458045
29910.4234370468352-1.42343704683522
3099.4436298761768-0.443629876176804
311011.7141943654755-1.71419436547548
321611.72600117924704.27399882075298
33119.09222899236381.90777100763619
34810.0031197045880-2.00311970458801
3598.667992268181730.332007731818266
361612.59999276908373.40000723091634
371112.5870894200305-1.58708942003055
38169.26421370353946.7357862964606
391212.2695523626052-0.269552362605226
401210.35822645746321.64177354253678
411412.52113555542761.47886444457235
42910.4644349090421-1.46443490904205
431010.6413349952821-0.64133499528211
4498.421523117955870.578476882044125
451010.0610199017528-0.0610199017528414
461210.08935744611211.91064255388790
471411.57483796592352.42516203407645
481412.06497205761111.93502794238891
491012.2749820478672-2.27498204786719
50149.880146391737444.11985360826256
511612.18483636030333.81516363969666
52910.4302433499245-1.43024334992449
531011.5717745719021-1.57177457190211
5468.98621129487519-2.98621129487519
55811.2362582516123-3.23625825161234
561312.41226726586080.587732734139183
571010.8133716080190-0.813371608018989
5888.88095629771509-0.880956297715092
5979.15658542785248-2.15658542785248
60159.774255150091765.22574484990824
6199.88335346336826-0.883353463368259
621010.2116017994204-0.211601799420394
631210.21188025130921.78811974869083
641310.44950347207612.55049652792395
65108.396807189145221.60319281085478
661111.8217850361777-0.82178503617766
67813.5896296993201-5.58962969932009
6899.1074806693398-0.107480669339806
69138.63624322825954.3637567717405
701110.40730756501560.592692434984383
71812.7521832505915-4.75218325059153
72910.7654574204088-1.76545742040878
73912.3422994712653-3.34229947126534
741512.49604895537482.50395104462521
75911.1779559631201-2.17795596312011
761011.5547342292438-1.55473422924381
77148.93640136466335.0635986353367
781210.95410592974731.04589407025269
791211.11445771539870.885542284601323
801111.5545022245767-0.55450222457671
811411.47582474716762.52417525283239
82611.5705339200679-5.57053392006792
831211.26646060796750.733539392032494
84810.0759754913839-2.07597549138394
851412.42130885317721.57869114682285
861110.83758361992170.162416380078289
87109.930336480902740.0696635190972592
881410.24253297588143.75746702411859
891212.0499497829489-0.0499497829489087
901011.0081310743587-1.00813107435873
911413.01914069733770.980859302662273
9259.01704146028203-4.01704146028203
931110.51955392700710.480446072992858
941010.2200064995915-0.220006499591453
95911.4821499398239-2.48214993982391
961011.4708272188406-1.47082721884057
971613.76417751228082.23582248771919
981312.83373349611950.166266503880472
99910.8297921172816-1.82979211728157
1001011.3895337299450-1.38953372994498
1011010.9927210107971-0.99272101079714
10279.503279092332-2.503279092332
10399.83122988103862-0.831229881038616
104810.2530737966269-2.25307379662691
1051412.90553872747181.09446127252820
1061411.64861890832622.35138109167375
107811.0972667330982-3.09726673309825
108911.5485970601368-2.54859706013678
1091411.83905778697922.16094221302082
1101410.77469355869693.22530644130308
11189.8972202989823-1.89722029898230
112813.7325637585563-5.73256375855635
113810.9987479719796-2.99874797197956
11478.58826640738003-1.58826640738003
11567.51844260950576-1.51844260950576
11689.4737640188872-1.47376401888721
11768.33844977129384-2.33844977129384
118119.92447458231821.07552541768180
1191411.89683284134532.10316715865474
1201111.1390921545270-0.139092154526987
1211112.0140262495521-1.01402624955210
122119.247463768103361.75253623189664
1231410.42220003189813.57779996810195
124810.4376457404075-2.43764574040748
1252011.55615029360608.44384970639404
1261110.38328190147060.616718098529425
12789.22271739968478-1.22271739968478
1281110.79384120864570.206158791354348
1291010.7004179553129-0.700417955312895
1301413.52357954652510.476420453474937
1311110.61812827427670.381871725723348
132910.6632315109924-1.66323151099243
13399.80385862205098-0.80385862205098
134810.2383560060895-2.23835600608945
1351012.13350100981-2.13350100980999
1361310.79179973920742.20820026079259
1371310.18314992676162.81685007323836
138129.34684158150432.65315841849570
139810.4537351200044-2.45373512000441
1401311.07626106416341.92373893583664
1411412.48410444247731.51589555752272
1421211.75273302274640.247266977253558
1431410.95591699404133.04408300595869
1441511.39381298836823.60618701163180
1451310.60709368002232.39290631997775
1461611.95398295637954.04601704362046
147912.0702186680899-3.07021866808989
148910.5673211118722-1.56732111187224
149911.0754184840640-2.07541848406404
150811.3809973670726-3.38099736707262
151710.1391367618125-3.13913676181253
1521612.05001599202213.94998400797787
1531113.4590238403895-2.45902384038951
154910.078497265284-1.078497265284
155119.931490590812581.06850940918742
15699.96866184204565-0.968661842045649
1571412.59127782302401.40872217697596
1581311.12996224767291.87003775232708
1591614.55273158205511.44726841794489


Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
100.3474227910729670.6948455821459340.652577208927033
110.4650418723611420.9300837447222830.534958127638858
120.3464958847238390.6929917694476790.653504115276161
130.8247635004881430.3504729990237140.175236499511857
140.7633542600904810.4732914798190380.236645739909519
150.7187443094747460.5625113810505070.281255690525254
160.7081502377176040.5836995245647920.291849762282396
170.6275972965152710.7448054069694580.372402703484729
180.607628981836640.7847420363267210.392371018163361
190.5276541753583790.9446916492832410.472345824641621
200.6031666373496950.793666725300610.396833362650305
210.6454199429392780.7091601141214440.354580057060722
220.6159397562948490.7681204874103020.384060243705151
230.6022762981331520.7954474037336960.397723701866848
240.5393113437891380.9213773124217230.460688656210862
250.4692160855323770.9384321710647540.530783914467623
260.401527501668150.80305500333630.59847249833185
270.3372684424737630.6745368849475270.662731557526237
280.3072441071509030.6144882143018060.692755892849097
290.2531293869080260.5062587738160530.746870613091974
300.2087547741488770.4175095482977550.791245225851123
310.1724851141485190.3449702282970380.827514885851481
320.2836469540440870.5672939080881730.716353045955913
330.2609655295007150.5219310590014290.739034470499286
340.2458752954795500.4917505909591010.75412470452045
350.2037825467421860.4075650934843720.796217453257814
360.2367412713997090.4734825427994190.763258728600291
370.2268649806066580.4537299612133160.773135019393342
380.6224549990316070.7550900019367860.377545000968393
390.5725858853829410.8548282292341180.427414114617059
400.532790552888480.934418894223040.46720944711152
410.4884043412590920.9768086825181830.511595658740908
420.4643531581772560.9287063163545110.535646841822744
430.4219509033270670.8439018066541350.578049096672933
440.3706772736489560.7413545472979110.629322726351044
450.3211738050642890.6423476101285770.678826194935712
460.2937006821843490.5874013643686990.706299317815651
470.2747358889093260.5494717778186520.725264111090674
480.2487038266674640.4974076533349280.751296173332536
490.2624001200424460.5248002400848920.737599879957554
500.3180589272216050.6361178544432090.681941072778395
510.3542762985145950.708552597029190.645723701485405
520.3434501080948280.6869002161896560.656549891905172
530.3295783923593880.6591567847187750.670421607640612
540.3571969968421390.7143939936842780.642803003157861
550.3772812998130750.7545625996261490.622718700186925
560.333095780466580.666191560933160.66690421953342
570.2938366998200830.5876733996401650.706163300179917
580.2567729297020720.5135458594041440.743227070297928
590.2415007437473120.4830014874946230.758499256252688
600.3896325171626280.7792650343252570.610367482837372
610.3463801638607320.6927603277214630.653619836139268
620.3045151356600150.6090302713200310.695484864339985
630.2837137889240710.5674275778481420.716286211075929
640.2933225156900810.5866450313801610.70667748430992
650.2686565349241050.537313069848210.731343465075895
660.2373162804413960.4746325608827910.762683719558604
670.4206837294160010.8413674588320030.579316270583999
680.3752324505630490.7504649011260980.624767549436951
690.4729918139539950.945983627907990.527008186046005
700.4309976003208690.8619952006417380.569002399679131
710.5496009846815150.900798030636970.450399015318485
720.5225497256283760.9549005487432480.477450274371624
730.5460922644073280.9078154711853440.453907735592672
740.5544398261950760.8911203476098480.445560173804924
750.5360622128069810.9278755743860380.463937787193019
760.5029307705266990.9941384589466020.497069229473301
770.6671005698892840.6657988602214310.332899430110716
780.6361209758790890.7277580482418220.363879024120911
790.6000957529962450.799808494007510.399904247003755
800.5547954170006030.8904091659987930.445204582999397
810.5647032874486290.8705934251027420.435296712551371
820.7194968068134110.5610063863731780.280503193186589
830.6859938336574440.6280123326851130.314006166342556
840.6630912800543840.6738174398912310.336908719945616
850.6402617578037180.7194764843925640.359738242196282
860.5997695611970950.800460877605810.400230438802905
870.5567924180801840.8864151638396310.443207581919816
880.6439900015172810.7120199969654370.356009998482719
890.5993237849137620.8013524301724760.400676215086238
900.5573479413793640.8853041172412720.442652058620636
910.524091709823960.951816580352080.47590829017604
920.5686905768514520.8626188462970970.431309423148548
930.5317953528604640.9364092942790730.468204647139537
940.4877584357864910.9755168715729820.512241564213509
950.4704154417799750.9408308835599510.529584558220024
960.4289976119482090.8579952238964180.571002388051791
970.4291752510095580.8583505020191170.570824748990442
980.3849512939724880.7699025879449750.615048706027512
990.3514277690126010.7028555380252020.648572230987399
1000.312597229087630.625194458175260.68740277091237
1010.2719547829929680.5439095659859360.728045217007032
1020.2538156372058030.5076312744116070.746184362794197
1030.2162299412098560.4324598824197120.783770058790144
1040.1967946862863670.3935893725727340.803205313713633
1050.1727958910115430.3455917820230870.827204108988457
1060.1806143943058680.3612287886117360.819385605694132
1070.1811123084749270.3622246169498540.818887691525073
1080.1740472857390550.348094571478110.825952714260945
1090.1712347479559270.3424694959118550.828765252044073
1100.2166968328439420.4333936656878850.783303167156058
1110.1878010508135640.3756021016271280.812198949186436
1120.3729959383908790.7459918767817590.62700406160912
1130.4352384152836980.8704768305673970.564761584716302
1140.4042444673650980.8084889347301970.595755532634902
1150.3984469675541070.7968939351082150.601553032445893
1160.3576691145687110.7153382291374220.642330885431289
1170.3609396650714900.7218793301429790.63906033492851
1180.3182320550279420.6364641100558840.681767944972058
1190.2889468628865540.5778937257731090.711053137113446
1200.2434425076345240.4868850152690480.756557492365476
1210.2293675164852380.4587350329704760.770632483514762
1220.2060182840497640.4120365680995280.793981715950236
1230.2105542737512770.4211085475025550.789445726248722
1240.2280425726496750.456085145299350.771957427350325
1250.7593833856445030.4812332287109930.240616614355497
1260.7197674885085980.5604650229828040.280232511491402
1270.6678587601880570.6642824796238850.332141239811943
1280.6079094823114480.7841810353771030.392090517688552
1290.5453568218868090.9092863562263820.454643178113191
1300.4827111591435750.965422318287150.517288840856425
1310.4274796185084620.8549592370169230.572520381491538
1320.3745502317405340.7491004634810690.625449768259466
1330.3149158451766990.6298316903533980.685084154823301
1340.2832495688231460.5664991376462920.716750431176854
1350.2857470133107890.5714940266215770.714252986689211
1360.2413916320097830.4827832640195660.758608367990217
1370.2502191054817340.5004382109634670.749780894518266
1380.2575096343976140.5150192687952280.742490365602386
1390.2874910538702670.5749821077405340.712508946129733
1400.2271000846657210.4542001693314420.772899915334279
1410.1730739454720570.3461478909441140.826926054527943
1420.1318546451282400.2637092902564800.86814535487176
1430.1370435207832350.274087041566470.862956479216765
1440.1275009475054220.2550018950108450.872499052494577
1450.1441704330532890.2883408661065770.855829566946711
1460.4157264734924090.8314529469848170.584273526507591
1470.3052196080630060.6104392161260110.694780391936994
1480.2117380849059670.4234761698119330.788261915094033
1490.1234477108621820.2468954217243630.876552289137818


Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level00OK
5% type I error level00OK
10% type I error level00OK
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Nov/21/t1290372129yq0tf8ipixwd836/100pfz1290372194.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/21/t1290372129yq0tf8ipixwd836/100pfz1290372194.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Nov/21/t1290372129yq0tf8ipixwd836/1b6in1290372194.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/21/t1290372129yq0tf8ipixwd836/1b6in1290372194.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Nov/21/t1290372129yq0tf8ipixwd836/23fzq1290372194.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/21/t1290372129yq0tf8ipixwd836/23fzq1290372194.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Nov/21/t1290372129yq0tf8ipixwd836/33fzq1290372194.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/21/t1290372129yq0tf8ipixwd836/33fzq1290372194.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Nov/21/t1290372129yq0tf8ipixwd836/43fzq1290372194.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/21/t1290372129yq0tf8ipixwd836/43fzq1290372194.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Nov/21/t1290372129yq0tf8ipixwd836/5wozt1290372194.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/21/t1290372129yq0tf8ipixwd836/5wozt1290372194.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Nov/21/t1290372129yq0tf8ipixwd836/6wozt1290372194.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/21/t1290372129yq0tf8ipixwd836/6wozt1290372194.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Nov/21/t1290372129yq0tf8ipixwd836/77fyw1290372194.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/21/t1290372129yq0tf8ipixwd836/77fyw1290372194.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Nov/21/t1290372129yq0tf8ipixwd836/87fyw1290372194.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/21/t1290372129yq0tf8ipixwd836/87fyw1290372194.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Nov/21/t1290372129yq0tf8ipixwd836/90pfz1290372194.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/21/t1290372129yq0tf8ipixwd836/90pfz1290372194.ps (open in new window)


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