Home » date » 2010 » Nov » 23 »

W7

*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: Tue, 23 Nov 2010 10:43:05 +0000
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2010/Nov/23/t1290508895t8aabehvlvn6h64.htm/, Retrieved Tue, 23 Nov 2010 11:41:47 +0100
 
BibTeX entries for LaTeX users:
@Manual{KEY,
    author = {{YOUR NAME}},
    publisher = {Office for Research Development and Education},
    title = {Statistical Computations at FreeStatistics.org, URL http://www.freestatistics.org/blog/date/2010/Nov/23/t1290508895t8aabehvlvn6h64.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 «
26 24 14 11 12 24 23 25 11 7 8 25 25 17 6 17 8 30 23 18 12 10 8 19 19 18 8 12 9 22 29 16 10 12 7 22 25 20 10 11 4 25 21 16 11 11 11 23 22 18 16 12 7 17 25 17 11 13 7 21 24 23 13 14 12 19 18 30 12 16 10 19 22 23 8 11 10 15 15 18 12 10 8 16 22 15 11 11 8 23 28 12 4 15 4 27 20 21 9 9 9 22 12 15 8 11 8 14 24 20 8 17 7 22 20 31 14 17 11 23 21 27 15 11 9 23 20 34 16 18 11 21 21 21 9 14 13 19 23 31 14 10 8 18 28 19 11 11 8 20 24 16 8 15 9 23 24 20 9 15 6 25 24 21 9 13 9 19 23 22 9 16 9 24 23 17 9 13 6 22 29 24 10 9 6 25 24 25 16 18 16 26 18 26 11 18 5 29 25 25 8 12 7 32 21 17 9 17 9 25 26 32 16 9 6 29 22 33 11 9 6 28 22 13 16 12 5 17 22 32 12 18 12 28 23 25 12 12 7 29 30 29 14 18 10 26 23 22 9 14 9 25 17 18 10 15 8 14 23 17 9 16 5 25 23 20 10 10 8 26 25 15 12 11 8 20 24 20 14 14 10 18 24 33 14 9 6 32 23 29 10 12 8 25 21 23 14 17 7 25 24 26 16 5 4 23 24 18 9 12 8 21 28 20 10 12 8 20 16 11 6 6 4 15 20 28 8 24 20 30 29 26 13 12 8 24 27 22 10 12 8 26 22 17 8 14 6 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'Gwilym Jenkins' @ 72.249.127.135


Multiple Linear Regression - Estimated Regression Equation
ParentalCriticism[t] = + 2.77548963490739 -0.0986398562189426Organization[t] + 0.0438195865695189ConcernOverMistakes[t] + 0.110456538155872DoubtsAboutActions[t] + 0.421047435532671ParentalExpectations[t] + 0.00840042269626758PersonalStandards[t] -0.00117382973676924t + e[t]


Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STAT
H0: parameter = 0
2-tail p-value1-tail p-value
(Intercept)2.775489634907391.5351931.80790.0725980.036299
Organization-0.09863985621894260.049996-1.9730.0503130.025157
ConcernOverMistakes0.04381958656951890.0387021.13220.259320.12966
DoubtsAboutActions0.1104565381558720.0694561.59030.113840.05692
ParentalExpectations0.4210474355326710.054737.693100
PersonalStandards0.008400422696267580.0510290.16460.8694620.434731
t-0.001173829736769240.00384-0.30570.7602650.380132


Multiple Linear Regression - Regression Statistics
Multiple R0.627452204404761
R-squared0.393696268812394
Adjusted R-squared0.369763226791831
F-TEST (value)16.4499050506880
F-TEST (DF numerator)6
F-TEST (DF denominator)152
p-value1.47659662275146e-14
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation2.14906375448968
Sum Squared Residuals702.008203170918


Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolation
Forecast
Residuals
Prediction Error
1127.640873090898474.35912690910153
285.972279482486112.02772051751389
389.12346302578399-1.12346302578399
486.986391025602221.01360897439778
597.805246607271881.19475339272812
676.950948118518390.0490518814816109
747.1237658924916-3.12376589249160
8117.435528834115863.56447116588414
978.3462819114336-1.34628191143361
1077.90773536200888-0.907735362008876
11128.893278574360043.10672142563996
121010.5223193208330-0.522319320833031
13107.239183939161952.76081606083805
1487.738570309897260.261429690102736
1587.284852583170010.715147416829988
1647.50497652223568-3.50497652223568
1796.671293785478122.32870621452188
1887.860756237415110.139243762584893
1979.48849006066479-2.48849006066479
201111.0350307597-0.035030759699995
2198.344110652426050.655889347573946
221111.7893015263869-0.789301526386893
23138.645646860413124.35435313958688
2487.745081709886060.254918290113943
2586.831352226677941.16864777332206
2698.471300457860250.528699542139747
2768.77266235794997-2.77266235794997
2897.922810707539771.07718929246023
2999.36924074067081-0.369240740670812
3067.8690258260959-1.8690258260959
3166.0342180291461-0.0342180291461004
321611.03062963849914.9693703615009
33511.1380331099549-6.13803310995495
3477.57010774054122-0.570107740541224
3599.76982740006942-0.769827400069425
3667.37116606139553-1.37116606139553
3767.24768812962843-1.24768812962843
3858.0931429162197-3.09314291621970
391211.10140434153530.898595658464721
4078.17696935909318-1.17696935909318
411010.3825913035209-0.382591303520850
4298.520286505723740.479713494276262
4389.37477279105215-1.37477279105215
4459.14093578446795-4.14093578446795
4586.863793062095851.13620693790415
4687.03779956274040.962200437259593
47108.82161805958741.17838194041260
4867.40246759533877-1.40246759533877
4988.08716847064352-0.0871684706435167
50710.5674201642144-3.56742016421436
5145.55332853005648-1.55332853005648
5287.358933444008620.641066555991385
5387.152895477994720.847104522005282
5444.93091076445874-0.93091076445874
552013.20588373787196.79411626212815
5687.678622957235270.321377042764734
5787.384881724583230.615118275416773
5868.26219019245464-2.26219019245464
5944.37548986027952-0.375489860279517
6088.98836701518195-0.988367015181952
6197.231110801678031.76888919832197
6268.03535914812683-2.03535914812683
6378.19394723221966-1.19394723221966
6496.127685165748992.87231483425101
6556.76436507832407-1.76436507832407
6656.27445113932131-1.27445113932131
6787.387877072368550.61212292763145
6888.15134129515693-0.151341295156930
6966.42889263930453-0.428892639304534
7087.1602711572310.839728842768993
7177.85324929629094-0.853249296290936
7276.214773985463680.78522601453632
7398.976383188708420.0236168112915778
741111.1195891858071-0.119589185807133
7568.88059619378321-2.88059619378321
7687.947835147290180.0521648527098195
7767.98518003783487-1.98518003783487
7898.64173753879040.358262461209604
7986.383935935385461.61606406461454
8068.63710399214164-2.63710399214164
81108.255002562930171.74499743706983
8286.34042009868231.65957990131770
8388.38689939892296-0.386899398922961
84109.016344960330920.98365503966908
8556.09466753014214-1.09466753014214
8679.34718438841318-2.34718438841318
8757.18071937903479-2.18071937903479
8885.997958762255532.00204123774447
891410.01693921465713.98306078534287
9077.73092191660853-0.730921916608532
9189.0244866478904-1.02448664789040
9264.818606821834991.18139317816501
9356.24597618680964-1.24597618680964
9469.2614696336683-3.26146963366831
95106.635311347707563.36468865229244
961211.67194795616550.328052043834517
9799.39241651319525-0.392416513195247
981211.05098306285830.949016937141722
9977.618301333518-0.618301333518005
10088.47736994961622-0.477369949616221
101109.206832978557760.793167021442236
10267.22698884441415-1.22698884441415
1031011.1147577763564-1.11475777635639
104108.647859778576641.35214022142336
105107.145453952263152.85454604773685
10658.58767601464181-3.58767601464181
10777.13855788441745-0.138557884417447
108108.848121794277271.15187820572273
109119.718507243729871.28149275627013
11068.04483145596506-2.04483145596506
11177.3945193407566-0.394519340756603
112129.275231461383662.72476853861634
113116.464950437984944.53504956201506
1141110.70634955448020.293650445519819
115115.040889772657275.95911022734273
11657.50676006509314-2.50676006509314
117810.1203219138584-2.12032191385837
11866.6802107229245-0.680210722924503
11999.41084937770535-0.410849377705347
12046.92131056606663-2.92131056606663
12146.11491236900386-2.11491236900386
12278.0779172514349-1.07791725143491
123119.372048412700561.62795158729944
12464.399177512985571.60082248701443
12576.732454935766410.267545064233594
12689.78449932682077-1.78449932682077
12746.19528646751742-2.19528646751742
12886.985148753583181.01485124641682
12998.023820251060710.976179748939288
13087.999266035592480.000733964407517163
131118.70048015832882.29951984167121
13287.431305347103530.568694652896472
13356.61850734618277-1.61850734618277
13445.87487997583076-1.87487997583076
13587.56005861645880.439941383541198
1361011.6603759014802-1.66037590148023
13768.07874264848995-2.07874264848995
13899.09543955505511-0.0954395550551145
13997.10253413218431.8974658678157
140138.768900054741234.23109994525876
14198.072637428033690.92736257196631
142109.638118821607260.361881178392735
1432014.50084236161635.49915763838367
14455.93990191920628-0.939901919206278
1451110.14236992631490.857630073685106
14668.13315976875305-2.13315976875305
147910.4491123939624-1.44911239396242
14877.30739695176091-0.307396951760907
14998.150066555152390.849933444847613
150108.536973811172281.46302618882772
15196.92768478728232.07231521271769
152810.1623331133375-2.16233311333747
153711.7011124685665-4.70111246856651
15469.42345345743635-3.42345345743635
1551311.33472140779811.66527859220190
15667.89320172361206-1.89320172361206
15787.830313710678530.169686289321474
158109.32043443254480.679565567455197
1591611.88447383748864.11552616251145


Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
100.7990464188296320.4019071623407360.200953581170368
110.9198772223625980.1602455552748040.0801227776374018
120.8968527926414020.2062944147171960.103147207358598
130.8816606691416530.2366786617166950.118339330858347
140.8190702945709140.3618594108581730.180929705429086
150.7801158074892140.4397683850215720.219884192510786
160.7312411908105190.5375176183789630.268758809189481
170.694895872268820.610208255462360.30510412773118
180.6124836677222770.7750326645554460.387516332277723
190.5408407070255740.9183185859488530.459159292974426
200.456480547262040.912961094524080.54351945273796
210.3797061638821320.7594123277642640.620293836117868
220.3075732208961020.6151464417922050.692426779103898
230.6139655693243330.7720688613513350.386034430675667
240.6013229648629710.7973540702740580.398677035137029
250.5485601104659150.902879779068170.451439889534085
260.5145966875030980.9708066249938030.485403312496902
270.4999349999174080.9998699998348160.500065000082592
280.4474527936761210.8949055873522420.552547206323879
290.3880625409139240.7761250818278470.611937459086076
300.3510380798929990.7020761597859970.648961920107001
310.2971668593489690.5943337186979370.702833140651032
320.665634554773520.6687308904529610.334365445226481
330.8520520907687740.2958958184624530.147947909231226
340.8229869831782550.354026033643490.177013016821745
350.790468369538770.4190632609224590.209531630461230
360.7769540974861490.4460918050277020.223045902513851
370.7345289010534370.5309421978931250.265471098946562
380.7818121230851010.4363757538297980.218187876914899
390.7784488409321340.4431023181357310.221551159067866
400.738391619222670.5232167615546590.261608380777330
410.6917998201557110.6164003596885780.308200179844289
420.6693229624372020.6613540751255950.330677037562798
430.6240418717096070.7519162565807860.375958128290393
440.6677775214879470.6644449570241060.332222478512053
450.6713767940030630.6572464119938730.328623205996937
460.6463806371517570.7072387256964860.353619362848243
470.6194598559081420.7610802881837160.380540144091858
480.578384812093540.843230375812920.42161518790646
490.5285361303914070.9429277392171860.471463869608593
500.5537469870577940.8925060258844130.446253012942206
510.5347824357012510.9304351285974990.465217564298749
520.5042978127845580.9914043744308850.495702187215442
530.4634190655503350.926838131100670.536580934449665
540.4152385623800960.8304771247601910.584761437619904
550.9096136336985360.1807727326029280.090386366301464
560.8891564738442520.2216870523114960.110843526155748
570.8698964891419920.2602070217160160.130103510858008
580.8610376424018870.2779247151962250.138962357598113
590.8340494511351690.3319010977296610.165950548864831
600.8036973768946250.392605246210750.196302623105375
610.8065367374401840.3869265251196310.193463262559816
620.7940815796119220.4118368407761560.205918420388078
630.7654724499552250.469055100089550.234527550044775
640.8198184820661050.360363035867790.180181517933895
650.80298013011220.3940397397756010.197019869887800
660.777872863111020.444254273777960.22212713688898
670.7487136642152910.5025726715694180.251286335784709
680.7173608037762620.5652783924474760.282639196223738
690.6828421840137720.6343156319724560.317157815986228
700.6525486943078520.6949026113842960.347451305692148
710.6168609528269370.7662780943461250.383139047173063
720.5814433476819240.8371133046361520.418556652318076
730.5354561807641970.9290876384716070.464543819235803
740.4884199711343410.9768399422686820.511580028865659
750.5132303498930920.9735393002138150.486769650106908
760.4673161497803440.9346322995606890.532683850219656
770.465504383598340.931008767196680.53449561640166
780.4238457025252230.8476914050504460.576154297474777
790.4061511913360140.8123023826720270.593848808663986
800.4142332323471350.828466464694270.585766767652865
810.4027622657694880.8055245315389770.597237734230512
820.3893237567564770.7786475135129530.610676243243523
830.3453261382134600.6906522764269190.65467386178654
840.3174210560288620.6348421120577230.682578943971138
850.2862822875236070.5725645750472150.713717712476392
860.2909032284305110.5818064568610220.709096771569489
870.2931425486037820.5862850972075650.706857451396218
880.2858415100967170.5716830201934350.714158489903283
890.4036009360226270.8072018720452540.596399063977373
900.3610355478283960.7220710956567930.638964452171604
910.3253548886827700.6507097773655390.67464511131723
920.2978259828466740.5956519656933470.702174017153326
930.2687585215614860.5375170431229730.731241478438514
940.3151047012390630.6302094024781260.684895298760937
950.3784395782178250.7568791564356490.621560421782176
960.3370623468791230.6741246937582460.662937653120877
970.2950751901590460.5901503803180930.704924809840954
980.2666511462400890.5333022924801780.733348853759911
990.2293875880511660.4587751761023310.770612411948834
1000.1943269121484980.3886538242969950.805673087851502
1010.1689879833266420.3379759666532830.831012016673358
1020.1481486359852620.2962972719705250.851851364014738
1030.1315778877193090.2631557754386170.868422112280691
1040.1159156534488840.2318313068977670.884084346551116
1050.1444610592388310.2889221184776620.855538940761169
1060.1804414304770570.3608828609541140.819558569522943
1070.1501027668044740.3002055336089470.849897233195526
1080.1337744957623520.2675489915247040.866225504237648
1090.1191464299914420.2382928599828840.880853570008558
1100.1144279749693770.2288559499387550.885572025030623
1110.0930119326400090.1860238652800180.906988067359991
1120.1520864310772020.3041728621544050.847913568922798
1130.3399359455928610.6798718911857220.660064054407139
1140.2996171670111990.5992343340223990.700382832988801
1150.6019273176758460.7961453646483090.398072682324154
1160.5875554271468180.8248891457063650.412444572853182
1170.5838679999605350.832264000078930.416132000039465
1180.5328663412224450.934267317555110.467133658777555
1190.4770075368533170.9540150737066350.522992463146683
1200.536174861387870.927650277224260.46382513861213
1210.5065161958341580.9869676083316850.493483804165842
1220.5211138294381660.9577723411236680.478886170561834
1230.4785609205576430.9571218411152860.521439079442357
1240.4887370864024490.9774741728048980.511262913597551
1250.4322360538704390.8644721077408770.567763946129561
1260.4359216809863550.871843361972710.564078319013645
1270.427565337316770.855130674633540.57243466268323
1280.389591665002540.779183330005080.61040833499746
1290.3474508544482230.6949017088964460.652549145551777
1300.3079324404298950.6158648808597890.692067559570105
1310.3023342395649920.6046684791299850.697665760435008
1320.2509259514238220.5018519028476450.749074048576178
1330.2064467319517340.4128934639034680.793553268048266
1340.174525309388330.349050618776660.82547469061167
1350.1416406855430750.2832813710861500.858359314456925
1360.1349440145705050.2698880291410110.865055985429495
1370.1876902429366500.3753804858733010.81230975706335
1380.2241529000292980.4483058000585970.775847099970702
1390.1939835328387320.3879670656774640.806016467161268
1400.2224859554286660.4449719108573330.777514044571334
1410.1784128368107780.3568256736215570.821587163189222
1420.1463712843971670.2927425687943350.853628715602833
1430.2089848443717770.4179696887435550.791015155628223
1440.1522612639751500.3045225279503010.84773873602485
1450.1034539926652410.2069079853304810.89654600733476
1460.0674123087061250.134824617412250.932587691293875
1470.04439778659565030.08879557319130070.95560221340435
1480.0223904261114250.044780852222850.977609573888575
1490.01017778783342010.02035557566684020.98982221216658


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


http://www.freestatistics.org/blog/date/2010/Nov/23/t1290508895t8aabehvlvn6h64/1zntf1290508974.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/23/t1290508895t8aabehvlvn6h64/1zntf1290508974.ps (open in new window)


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


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


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


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


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


http://www.freestatistics.org/blog/date/2010/Nov/23/t1290508895t8aabehvlvn6h64/73oal1290508974.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/23/t1290508895t8aabehvlvn6h64/73oal1290508974.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Nov/23/t1290508895t8aabehvlvn6h64/8vfro1290508974.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/23/t1290508895t8aabehvlvn6h64/8vfro1290508974.ps (open in new window)


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


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