Home » date » 2010 » Dec » 02 »

*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: Thu, 02 Dec 2010 18:53:16 +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/02/t1291315911428wtpswg8c5gi1.htm/, Retrieved Thu, 02 Dec 2010 19:52:01 +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/02/t1291315911428wtpswg8c5gi1.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 «
2 4 1 2 2 11 2 1 1 1 2 7 4 5 2 4 2 17 2 3 1 2 2 10 3 3 2 2 2 12 4 3 1 2 2 12 3 2 3 2 1 11 3 3 1 2 2 11 3 4 1 1 3 12 2 4 1 4 2 13 4 4 2 2 2 14 4 2 4 3 3 16 3 2 2 2 2 11 3 2 1 2 2 10 4 4 1 1 1 11 4 4 3 3 1 15 3 3 2 1 NA 9 3 2 2 2 2 11 3 5 3 4 2 17 4 4 3 4 2 17 2 3 1 3 2 11 5 4 2 2 5 18 4 3 2 3 2 14 2 2 2 2 2 10 3 2 2 2 2 11 4 3 3 3 2 15 4 4 2 3 2 15 3 4 2 2 2 13 4 5 2 4 1 16 4 4 2 2 1 13 1 3 2 2 1 9 4 4 3 3 4 18 5 4 2 5 2 18 2 4 2 2 2 12 4 5 2 3 3 17 3 2 2 1 1 9 2 2 2 2 1 9 4 4 1 2 1 12 5 5 2 4 2 18 4 3 1 2 2 12 4 5 2 4 3 18 4 2 2 3 3 14 3 4 2 2 4 15 4 4 2 4 2 16 2 2 2 2 2 10 2 2 3 2 2 11 4 4 2 2 2 14 2 2 2 2 1 9 4 2 2 2 2 12 4 4 4 3 2 17 1 1 1 1 1 5 4 2 2 2 2 12 2 4 2 2 2 12 1 1 1 1 2 6 4 5 5 5 5 24 3 4 2 2 1 12 2 4 2 2 2 12 4 4 2 2 2 14 3 1 1 1 1 7 2 4 2 2 3 13 2 4 2 2 2 12 3 4 2 2 2 13 2 4 2 4 2 14 1 2 2 2 1 8 3 4 1 1 2 11 2 3 1 2 1 9 3 2 2 2 2 11 3 4 2 2 2 13 3 4 1 1 1 10 2 3 2 2 2 11 3 3 2 2 2 12 2 2 1 2 2 9 4 4 3 3 1 15 4 4 3 3 4 18 etc...
 
Output produced by software:

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


Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time10 seconds
R Server'George Udny Yule' @ 72.249.76.132


Multiple Linear Regression - Estimated Regression Equation
Parental[t] = -2.65680401101486e-14 + 1.00000000000000Standards[t] + 0.999999999999999Best[t] + 1.00000000000000Performance[t] + 1Excellence[t] + 0.999999999999999Expectations[t] + e[t]


Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STAT
H0: parameter = 0
2-tail p-value1-tail p-value
(Intercept)-2.65680401101486e-140-5.337100
Standards1.00000000000000068696996743257200
Best0.999999999999999077322598975816800
Performance1.00000000000000053528169233193200
Excellence1056206052416020500
Expectations0.999999999999999059017359039337100


Multiple Linear Regression - Regression Statistics
Multiple R1
R-squared1
Adjusted R-squared1
F-TEST (value)1.55470383404813e+30
F-TEST (DF numerator)5
F-TEST (DF denominator)152
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation1.54714534346309e-14
Sum Squared Residuals3.63836124497528e-26


Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolation
Forecast
Residuals
Prediction Error
11111.0000000000002-1.86691117805923e-13
277-6.12608115143102e-15
317171.18067665896588e-14
41010-8.4413608287485e-16
51212-2.42434767179544e-15
61212-4.95846266774762e-16
71111-4.35847577622514e-15
811113.49362523962373e-15
912126.82367421107632e-15
1013137.16936328542979e-15
1114141.08352229214418e-15
121616-6.05291802281138e-15
131111-3.90593651259474e-16
1410102.2402834060974e-15
1511112.88464340642885e-15
161515-2.32301929615634e-15
1799-3.90593651259474e-16
1811111.84735807748512e-15
191717-1.12897142312900e-15
2017175.74672842080907e-15
2111111.49110957992390e-15
221818-5.2788244698472e-16
2314141.66893037016780e-15
241010-3.90593651259474e-16
251111-2.96793992198415e-15
2615151.05852629392916e-15
2715152.94528783731010e-15
2813131.65069534592632e-15
291616-1.07766003482552e-16
3013134.47398897902955e-15
31996.12467351564397e-16
321818-1.40834275997939e-15
3318184.67001022787386e-15
3412123.61417872554474e-15
351717-1.58811097123877e-15
36994.98458756252793e-16
37992.13800244220747e-15
3812123.69595432843291e-16
3918181.49308181637967e-15
4012123.64469387856098e-15
411818-1.14504749719689e-15
4214145.66093133595112e-15
4315151.22781932502354e-15
4416161.66893037016780e-15
451010-8.0582157435116e-16
4611111.08352229214418e-15
4714144.98458756252793e-16
4899-2.14480634091483e-15
491212-3.62729962676029e-15
5017173.46091363864431e-15
5155-2.14480634091483e-15
5212124.67001022787386e-15
5312124.45791290496164e-15
5466-1.95627619255832e-15
5524241.83726626853026e-15
5612124.67001022787386e-15
5712121.08352229214418e-15
581414-1.26181817385017e-15
59775.77629707317773e-15
6013134.67001022787386e-15
6112122.94528783731010e-15
6213134.007660844424e-15
6314142.66553563319064e-15
64885.60463033983395e-15
6511114.21961364039418e-15
6699-3.90593651259474e-16
6711112.94528783731010e-15
6813134.82967567844166e-15
6910103.33860583792857e-15
7011111.33112352078059e-15
7112124.07429337564769e-15
7299-2.32301929615634e-15
7315156.12467351564397e-16
741818-1.07897942669896e-15
7515154.67001022787386e-15
7612122.20084832893404e-15
7713131.08352229214418e-15
7814142.2402834060974e-15
791010-7.9941649816154e-15
8013132.42250705870786e-15
811313-3.90593651259474e-16
8211114.24483885799875e-15
8313132.56166830799615e-15
8416162.74422720194282e-15
85881.22781932502354e-15
861616-8.0582157435116e-16
8711115.88652953075434e-15
88991.22781932502354e-15
891616-2.52525642732676e-16
9012121.08352229214418e-15
9114141.18833361404518e-15
92884.07429337564769e-15
93994.47894500439334e-15
941515-3.90593651259474e-16
951111-4.03591515428926e-15
9621215.25170071388139e-15
971414-7.51897450068611e-16
9818181.18122809793941e-15
991212-1.58732112635287e-15
10013132.21929943653966e-15
1011515-2.52525642732676e-16
10212123.42246330903420e-16
10319192.78388766326633e-15
1041515-3.90593651259474e-16
10511116.80302164762539e-15
10611111.16277699033379e-15
10710105.77629707317773e-15
1081313-1.07897942669896e-15
10915154.67001022787386e-15
11012121.49308181637967e-15
11112121.93796087111563e-15
11216163.91233508004863e-15
113993.69595432843291e-16
11418184.30012078984046e-15
115882.94528783731010e-15
1161313-1.88491435141932e-15
11717173.91233508004863e-15
11899-1.55539937025935e-15
11915156.57657474451254e-16
12088-1.26181817385017e-15
12177-2.52525642732676e-16
12212122.97580299032634e-15
12314141.12730330801270e-15
12466-1.04435688974773e-17
12588-1.06976158596646e-16
12617176.32100850739869e-16
1271010-3.90593651259474e-16
12811112.49741581819231e-15
1291414-3.90593651259474e-16
1301111-5.86153175616588e-16
13113131.83726626853026e-15
1321212-3.78157733029553e-17
1331111-2.51020147807165e-15
134994.67001022787386e-15
1351212-9.36652126334298e-16
13620204.67001022787386e-15
1371212-5.86153175616588e-16
1381313-2.52525642732676e-16
13912127.69469621799674e-16
14012124.98458756252793e-16
141996.23244782449735e-15
1421515-3.15466750034976e-15
14324242.71371204892658e-15
14477-4.13344237450995e-15
1451717-3.90593651259474e-16
14611111.47999320781359e-15
1471717-3.90593651259474e-16
14811111.90248718879454e-15
14912121.08352229214418e-15
1501414-3.78157733029553e-17
15111112.56166830799615e-15
1521616-5.55789665505415e-15
15321211.08352229214418e-15
1541414-2.07920588466979e-15
15520202.94528783731010e-15
1561313-3.90593651259474e-16
15711111.05852629392916e-15
1581515-2.63408316971069e-15
15919NANA


Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
90.0006662246840313110.001332449368062620.999333775315969
100.01152440296456870.02304880592913750.988475597035431
110.001530212177893430.003060424355786870.998469787822106
120.002215306289020600.004430612578041200.99778469371098
130.00170269358503120.00340538717006240.998297306414969
141.33213774753360e-072.66427549506721e-070.999999866786225
155.69819777668368e-091.13963955533674e-080.999999994301802
161.07055242362315e-142.14110484724629e-140.99999999999999
174.54358849776291e-119.08717699552581e-110.999999999954564
189.4503051272602e-141.89006102545204e-130.999999999999906
195.59859453874227e-121.11971890774845e-110.9999999999944
203.04186332258892e-076.08372664517784e-070.999999695813668
210.5357178833708690.9285642332582620.464282116629131
221.00702468622744e-102.01404937245489e-100.999999999899298
233.00437210878664e-156.00874421757328e-150.999999999999997
246.98427516624282e-050.0001396855033248560.999930157248338
251.70942557174713e-133.41885114349426e-130.999999999999829
261.41050510355805e-182.82101020711611e-181
273.32471193124165e-076.6494238624833e-070.999999667528807
281.31598892615038e-192.63197785230075e-191
290.999999999999111.77922350605650e-128.89611753028252e-13
303.20481090617697e-096.40962181235394e-090.99999999679519
316.218533232402e-111.2437066464804e-100.999999999937815
327.07673762244338e-050.0001415347524488680.999929232623776
330.2839446377226930.5678892754453850.716055362277307
340.9999999957115248.57695174713783e-094.28847587356891e-09
351.07380598771954e-202.14761197543909e-201
363.55822249519096e-337.11644499038191e-331
379.27584800643776e-050.0001855169601287550.999907241519936
381.10901374120808e-232.21802748241615e-231
392.21349287881445e-054.42698575762889e-050.999977865071212
400.9721888874849560.05562222503008870.0278111125150444
410.0007356633728905540.001471326745781110.99926433662711
424.65656290656921e-159.31312581313842e-150.999999999999995
436.01121768029407e-091.20224353605881e-080.999999993988782
443.09014841975990e-246.18029683951979e-241
455.99123960212877e-121.19824792042575e-110.999999999994009
460.9999999999999637.38708709982437e-143.69354354991219e-14
475.9158145171579e-141.18316290343158e-130.99999999999994
487.92776261543991e-091.58555252308798e-080.999999992072237
493.74219588174663e-187.48439176349327e-181
500.9999989139380822.17212383655960e-061.08606191827980e-06
511.83766228940365e-053.6753245788073e-050.999981623377106
520.9982548398917850.003490320216430160.00174516010821508
530.9999939847439561.20305120878462e-056.01525604392312e-06
545.79283674955538e-221.15856734991108e-211
555.6452979269295e-061.1290595853859e-050.999994354702073
565.23709400560721e-101.04741880112144e-090.99999999947629
576.33325353062766e-091.26665070612553e-080.999999993666747
582.88484006987951e-305.76968013975903e-301
5913.49853746504322e-201.74926873252161e-20
600.001722473659664740.003444947319329480.998277526340335
610.9999999999998652.70383262038728e-131.35191631019364e-13
620.005527948041681460.01105589608336290.994472051958319
631.18107245907214e-152.36214491814428e-150.999999999999999
646.75722776764388e-471.35144555352878e-461
650.9995011733416460.0009976533167072680.000498826658353634
663.09952957835378e-056.19905915670757e-050.999969004704216
675.64992261872775e-151.12998452374555e-140.999999999999994
680.9966816463063750.006636707387249620.00331835369362481
690.5968247331917740.8063505336164520.403175266808226
700.02092821346440160.04185642692880320.979071786535598
711.08638006564165e-312.17276013128331e-311
720.9999655194460226.89611079563952e-053.44805539781976e-05
731.79490050411299e-723.58980100822598e-721
741.04517154407862e-122.09034308815725e-120.999999999998955
750.9999999999998792.42639288073833e-131.21319644036916e-13
760.002816271682751080.005632543365502170.997183728317249
777.87200434166436e-391.57440086833287e-381
7812.58993171204631e-511.29496585602315e-51
790.9999979308422364.13831552758221e-062.06915776379110e-06
804.81071051417498e-439.62142102834997e-431
8113.87715571283853e-331.93857785641927e-33
820.9816215253392210.03675694932155760.0183784746607788
830.998042496778960.003915006442080850.00195750322104043
8411.75823948399623e-648.79119741998113e-65
8514.07331118603039e-432.03665559301519e-43
867.66819454319872e-191.53363890863974e-181
870.9999999902110251.95779498920523e-089.78897494602615e-09
880.9997686300178970.0004627399642064260.000231369982103213
891.97300104527200e-063.94600209054399e-060.999998026998955
901.53169089566197e-173.06338179132395e-171
910.9999999971686835.66263417594927e-092.83131708797464e-09
920.04460848702280630.08921697404561250.955391512977194
930.9999999641948467.1610307346585e-083.58051536732925e-08
9413.21518104225792e-271.60759052112896e-27
9512.42423022762367e-351.21211511381184e-35
9613.95650342684721e-251.97825171342361e-25
970.9658589948121880.06828201037562310.0341410051878116
981.25050959236739e-112.50101918473477e-110.999999999987495
991.15746185188430e-082.31492370376861e-080.999999988425381
1000.9999999963724077.2551864214854e-093.6275932107427e-09
10114.42857421297135e-222.21428710648567e-22
1020.9999999999672366.55283376743271e-113.27641688371636e-11
1030.9999999999998313.37132285092664e-131.68566142546332e-13
10414.89436055401629e-302.44718027700814e-30
1053.61677298513517e-087.23354597027034e-080.99999996383227
1060.999936085892990.0001278282140204946.3914107010247e-05
1070.0001242024456955850.0002484048913911700.999875797554304
1084.01330776508591e-338.02661553017182e-331
10914.67941946814384e-182.33970973407192e-18
11013.50320966198872e-161.75160483099436e-16
1110.9999999903207731.93584540327106e-089.6792270163553e-09
1120.999999753918384.9216323981864e-072.4608161990932e-07
1130.9999999999999941.18913102476947e-145.94565512384737e-15
1140.9460073658980160.1079852682039680.0539926341019838
11514.4408115856297e-262.22040579281485e-26
1160.9999999999998243.52326296740756e-131.76163148370378e-13
1170.9999425108090540.0001149783818913195.74891909456597e-05
1180.01645580687853310.03291161375706620.983544193121467
11911.97622225235386e-369.88111126176928e-37
1200.9190092323035740.1619815353928510.0809907676964256
12116.96865285271432e-233.48432642635716e-23
12215.76350193630122e-162.88175096815061e-16
1230.9999999999993131.37343076211827e-126.86715381059137e-13
1240.9999983148975483.3702049050245e-061.68510245251225e-06
1250.999999996596796.80641867444525e-093.40320933722262e-09
1260.1434061502065750.2868123004131500.856593849793425
1270.002740536284434650.005481072568869300.997259463715565
1280.9999904624920261.90750159482805e-059.53750797414027e-06
1294.31371288288625e-308.62742576577249e-301
13015.83199629911265e-202.91599814955632e-20
1310.3464704042132880.6929408084265750.653529595786712
13212.19443606097777e-181.09721803048889e-18
1330.9999999999572768.544755065743e-114.2723775328715e-11
1340.9999999999981033.79389036876307e-121.89694518438154e-12
1350.9999972525834975.49483300560415e-062.74741650280208e-06
1360.9999999999999911.70672325510816e-148.5336162755408e-15
1370.2536709280458030.5073418560916060.746329071954197
1380.9999999245560371.50887925836799e-077.54439629183993e-08
1390.9999882270057672.35459884657689e-051.17729942328844e-05
1400.9999999994767281.04654471689541e-095.23272358447707e-10
1410.999935613998210.0001287720035812566.43860017906282e-05
1420.9999999999998772.46565586437393e-131.23282793218696e-13
1430.9999999242042961.51591407448704e-077.5795703724352e-08
1440.999998732061822.53587635859775e-061.26793817929887e-06
1450.999997250322645.49935471965006e-062.74967735982503e-06
1460.8899918473158730.2200163053682530.110008152684127
1470.9999997770918684.45816262870783e-072.22908131435392e-07
1480.9970310014787450.005937997042510370.00296899852125518
1490.9993447020600080.001310595879984020.000655297939992008
1500.7654423776980450.469115244603910.234557622301955


Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level1240.873239436619718NOK
5% type I error level1290.908450704225352NOK
10% type I error level1320.929577464788732NOK
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Dec/02/t1291315911428wtpswg8c5gi1/10z7zx1291315984.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/02/t1291315911428wtpswg8c5gi1/10z7zx1291315984.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/02/t1291315911428wtpswg8c5gi1/1hezr1291315983.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/02/t1291315911428wtpswg8c5gi1/1hezr1291315983.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/02/t1291315911428wtpswg8c5gi1/2hezr1291315983.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/02/t1291315911428wtpswg8c5gi1/2hezr1291315983.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/02/t1291315911428wtpswg8c5gi1/3s5zu1291315983.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/02/t1291315911428wtpswg8c5gi1/3s5zu1291315983.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/02/t1291315911428wtpswg8c5gi1/4s5zu1291315983.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/02/t1291315911428wtpswg8c5gi1/4s5zu1291315983.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/02/t1291315911428wtpswg8c5gi1/5s5zu1291315983.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/02/t1291315911428wtpswg8c5gi1/5s5zu1291315983.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/02/t1291315911428wtpswg8c5gi1/6d6091291315984.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/02/t1291315911428wtpswg8c5gi1/6d6091291315984.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/02/t1291315911428wtpswg8c5gi1/76giv1291315984.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/02/t1291315911428wtpswg8c5gi1/76giv1291315984.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/02/t1291315911428wtpswg8c5gi1/86giv1291315984.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/02/t1291315911428wtpswg8c5gi1/86giv1291315984.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/02/t1291315911428wtpswg8c5gi1/96giv1291315984.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/02/t1291315911428wtpswg8c5gi1/96giv1291315984.ps (open in new window)


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