Home » date » 2010 » Dec » 28 »

*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, 28 Dec 2010 12:27:13 +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/28/t1293539424e739kc3ne541myy.htm/, Retrieved Tue, 28 Dec 2010 13:30:35 +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/28/t1293539424e739kc3ne541myy.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 «
9 14 11 12 24 26 9 11 7 8 25 23 9 6 17 8 30 25 9 12 10 8 19 23 9 8 12 9 22 19 9 10 12 7 22 29 10 10 11 4 25 25 10 11 11 11 23 21 10 16 12 7 17 22 10 11 13 7 21 25 10 13 14 12 19 24 10 12 16 10 19 18 10 8 11 10 15 22 10 12 10 8 16 15 10 11 11 8 23 22 10 4 15 4 27 28 10 9 9 9 22 20 10 8 11 8 14 12 10 8 17 7 22 24 10 14 17 11 23 20 10 15 11 9 23 21 10 16 18 11 21 20 10 9 14 13 19 21 10 14 10 8 18 23 10 11 11 8 20 28 10 8 15 9 23 24 10 9 15 6 25 24 10 9 13 9 19 24 10 9 16 9 24 23 10 9 13 6 22 23 10 10 9 6 25 29 10 16 18 16 26 24 10 11 18 5 29 18 10 8 12 7 32 25 10 9 17 9 25 21 10 16 9 6 29 26 10 11 9 6 28 22 10 16 12 5 17 22 10 12 18 12 28 22 10 12 12 7 29 23 10 14 18 10 26 30 10 9 14 9 25 23 10 10 15 8 14 17 10 9 16 5 25 23 10 10 10 8 26 23 10 12 11 8 20 25 10 14 14 10 18 24 10 14 9 6 32 24 10 10 12 8 25 23 10 14 17 7 25 21 10 16 5 4 23 24 10 9 12 8 21 24 10 10 12 8 20 28 10 6 6 4 15 16 10 8 24 20 30 20 10 13 12 8 24 29 10 10 12 8 26 27 10 8 14 6 24 22 10 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 time9 seconds
R Server'Gwilym Jenkins' @ 72.249.127.135
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
PersonalStandards[t] = + 18.4826788440990 -0.99436172606256Maand[t] -0.112328105823988DoubtsAboutActions[t] + 0.339703753624901ParentalExpectations[t] + 0.093100809713022ParentalCriticism[t] + 0.437231123532580`Organization `[t] -0.00132568663676311t + e[t]


Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STAT
H0: parameter = 0
2-tail p-value1-tail p-value
(Intercept)18.482678844099016.7823811.10130.2725010.13625
Maand-0.994361726062561.68538-0.590.5560720.278036
DoubtsAboutActions-0.1123281058239880.110148-1.01980.3094450.154723
ParentalExpectations0.3397037536249010.1098033.09380.0023530.001176
ParentalCriticism0.0931008097130220.1430740.65070.516210.258105
`Organization `0.4372311235325800.0815165.363700
t-0.001325686636763110.00711-0.18650.8523380.426169


Multiple Linear Regression - Regression Statistics
Multiple R0.47458145992812
R-squared0.225227562107506
Adjusted R-squared0.194644439559118
F-TEST (value)7.36443970857313
F-TEST (DF numerator)6
F-TEST (DF denominator)152
p-value6.29173045330056e-07
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation3.78436635676899
Sum Squared Residuals2176.85716578124


Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolation
Forecast
Residuals
Prediction Error
12424.1814643596406-0.181464359640563
22521.47421136652643.52578863347358
33026.30602599232383.69397400767622
41922.3783431483036-3.37834314830361
52221.84991370779530.150086292204692
62225.8100414254103-3.81004142541033
72522.44642333581672.55357666418329
82321.23555071721681.7644492827832
91721.0771161397655-4.07711613976549
102123.2888281064713-2.28882810647131
111923.430822886844-4.430822886844
121921.4116444526595-2.4116444526595
131521.9100369153245-6.91003691532451
141617.8728755676128-1.87287556761278
152321.38419960515301.61580039484703
162725.77896917612711.22103082387288
172220.14543549892551.85456450107452
181417.3448956273888-3.34489562738884
192224.5354651351794-2.53546513517943
202322.48364955832050.5163504416795
212320.58280274821692.41719725178312
222122.5960457270239-1.59604572702390
231922.6456345096141-3.64563450961408
241821.1328114778578-3.13281147785782
252023.9943294799808-3.99432947998082
262324.0329794408983-1.03297944089833
272523.64002321929851.35997678070149
281923.238592454551-4.23859245455101
292423.81914690525640.180853094743629
302222.5194075286058-0.519407528605839
312523.67032546284101.32967453715903
322624.79721740335171.2027825966483
332921.71003659779627.28996340220385
343223.25429219103618.74570780896394
352523.27643429199551.72356570800447
362921.67803502411557.32196497588452
372820.48942537246837.51057462753166
381720.8524696078733-3.85246960787331
392823.99038453427314.00961546572694
402921.92256340085447.07743659914564
412627.0747243181862-1.07472431818616
422523.12250547172871.87749452827135
431420.6320678819843-6.6320678819843
442523.42685836685281.57314163314716
452621.55428448178174.44571551821825
462022.5424685841871-2.54246858418707
471823.0845684426705-5.08456844267049
483221.012320749057110.9876792509429
492522.22838924248452.77161075751550
502522.50870684389812.4912931561019
512319.23867084357323.76132915642678
522122.7739714119308-1.77397141193077
532024.4092421136003-4.40924211360034
541517.1998296072671-2.19982960726708
553026.32705272376923.67294727623077
562424.5055118597507-0.505511859750671
572623.96670824352072.03329175647929
582422.49708903869281.50291096130722
592222.6673503042751-0.667350304275138
601418.931252049257-4.931252049257
612423.29237216544550.707627834554491
622422.8018885739381.19811142606199
632424.7576357331215-0.757635733121516
642421.04303654420712.95696345579292
651921.5881720735323-2.58817207353232
663123.85572863854987.14427136145017
672222.5267104645784-0.526710464578415
682721.78077080876975.21922919123028
691921.8737443126666-2.87374431266658
702522.62298021072872.37701978927126
712021.8935484148781-1.89354841487808
722121.1980144850752-0.198014485075207
732724.73280631021162.26719368978837
742323.9511314983339-0.951131498333947
752524.01362138426650.986378615733538
762021.3181334562267-1.31813345622673
772122.7699219746232-1.76992197462319
782223.1750275588658-1.17502755886579
792323.9079416656793-0.907941665679305
802521.79123586158713.20876413841287
812524.01148471399340.988515286006611
821723.6059436237401-6.6059436237401
831921.8611323152789-2.86113231527889
842524.3888941793040.611105820696009
851921.8421591507567-2.84215915075672
862023.7699560594194-3.76995605941943
872621.99623809105614.00376190894389
882323.3316505206756-0.33165052067556
892723.43089431461113.56910568538885
901721.2064730335990-4.20647303359902
911722.8400366112269-5.84003661122687
921921.6252397358306-2.62523973583056
931720.7593172346292-3.75931723462916
942221.68994961468110.310050385318928
952123.8751581229488-2.87515812294885
963226.90751236263065.09248763736943
972123.1377582130039-2.13775821300392
982123.3626097933475-2.36260979334747
991821.3068699596921-3.30686995969214
1001820.7515584835042-2.75155848350416
1012322.49030417060840.509695829391601
1021921.4344483017168-2.43444830171681
1032021.7726402999956-1.77264029999556
1042123.1482144458787-2.14821444587867
1052024.1747229745264-4.17472297452643
1061717.5866575098684-0.586657509868434
1071818.9802605710419-0.980260571041904
1081919.2905582215298-0.290558221529762
1092222.1234870639314-0.123487063931363
1101520.6375460678548-5.63754606785479
1111420.5288275788098-6.52882757880981
1121824.5379765729007-6.53797657290067
1132420.31669930704633.68330069295375
1143522.173342138259812.8266578617402
1152921.51069376239357.48930623760645
1162122.8618568974878-1.86185689748776
1172520.35099363081184.64900636918816
1182019.07035138429280.929648615707217
1192223.2357219487354-1.23572194873543
1201315.9184078967728-2.91840789677283
1212619.51245856830446.48754143169561
1221718.8655673377357-1.86556733773571
1232520.89076145032664.10923854967338
1242021.0036570622649-1.00365706226495
1251920.4269024227032-1.42690242270315
1262123.7125020337543-2.71250203375425
1272221.73506227389560.264937726104360
1282422.98332150932911.01667849067094
1292124.206535999104-3.20653599910401
1302622.2064546950513.79354530494901
1312420.4402053975473.559794602453
1321621.356223110392-5.35622311039199
1332322.92204685865420.077953141345844
1341820.9488475902808-2.94884759028082
1351622.1143801917229-6.11438019172287
1362624.24267071250681.75732928749319
1371920.2768495109536-1.27684951095359
1382117.94624024817673.05375975182328
1392122.8640655900694-1.86406559006939
1402218.73842250137163.26157749862845
1412316.79602308565146.20397691434857
1422922.64852593038576.35147406961428
1432121.1641124294643-0.164112429464339
1442120.00021840914110.999781590858933
1452323.3047290816143-0.304729081614261
1462721.33715475425625.66284524574382
1472522.25349514161292.74650485838710
1482120.46497643733330.535023562666729
1491017.9289382590194-7.9289382590194
1502021.8730668598975-1.87306685989750
1512621.74631945556224.25368054443784
1522423.21392102198610.786078978013853
1532927.56580944054371.43419055945629
1541917.88518378041371.11481621958627
1552423.84697906013020.153020939869807
1561921.4779087653085-2.47790876530853
1572421.73343003232582.26656996767420
1582222.5149868383735-0.514986838373517
1591723.2196344599774-6.21963445997736


Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
100.04309352232343630.08618704464687250.956906477676564
110.01247722401795910.02495444803591830.98752277598204
120.01098170550282460.02196341100564910.989018294497175
130.02115175395994320.04230350791988630.978848246040057
140.03771368702247180.07542737404494360.962286312977528
150.3352547933313060.6705095866626130.664745206668694
160.2807244523841900.5614489047683790.71927554761581
170.3000847199959610.6001694399919210.699915280004039
180.2597971324654250.5195942649308510.740202867534575
190.1999521050741750.3999042101483510.800047894925825
200.299167685876430.598335371752860.70083231412357
210.3225050591817820.6450101183635640.677494940818218
220.2550831691612600.5101663383225190.74491683083874
230.2146573624317870.4293147248635750.785342637568213
240.1825603584733960.3651207169467920.817439641526604
250.1549692756969460.3099385513938920.845030724303054
260.1184135332913860.2368270665827720.881586466708614
270.09810109910630980.1962021982126200.90189890089369
280.08618771536456260.1723754307291250.913812284635437
290.06820237837101710.1364047567420340.931797621628983
300.04839910621432930.09679821242865870.95160089378567
310.04042707177520610.08085414355041210.959572928224794
320.04426363534359300.08852727068718610.955736364656407
330.07372729615859560.1474545923171910.926272703841404
340.2055863689825470.4111727379650930.794413631017453
350.1649137890786870.3298275781573730.835086210921313
360.1887017688286820.3774035376573650.811298231171318
370.2041349013266100.4082698026532210.79586509867339
380.3880233000397620.7760466000795230.611976699960239
390.3611611035427870.7223222070855740.638838896457213
400.3839322091954620.7678644183909230.616067790804538
410.3622225382015370.7244450764030730.637777461798463
420.3201975054982880.6403950109965750.679802494501712
430.5883002847364110.8233994305271780.411699715263589
440.5468469434300570.9063061131398860.453153056569943
450.5161928720087770.9676142559824450.483807127991223
460.548348695055890.903302609888220.45165130494411
470.6329809035418150.734038192916370.367019096458185
480.8179449296213880.3641101407572250.182055070378612
490.7893579884459150.4212840231081710.210642011554085
500.7609738502755670.4780522994488660.239026149724433
510.7472780979327670.5054438041344660.252721902067233
520.7472103235382180.5055793529235650.252789676461782
530.798174305879940.403651388240120.20182569412006
540.8059864990240390.3880270019519220.194013500975961
550.8212428006953620.3575143986092750.178757199304638
560.7981424327015290.4037151345969430.201857567298471
570.7674619812876490.4650760374247020.232538018712351
580.7358653871479980.5282692257040040.264134612852002
590.7083548298469950.583290340306010.291645170153005
600.763669361961660.472661276076680.23633063803834
610.7258329761982120.5483340476035760.274167023801788
620.689868348932660.620263302134680.31013165106734
630.6591318782888760.6817362434222470.340868121711124
640.6327547029722510.7344905940554980.367245297027749
650.6247083056934090.7505833886131830.375291694306591
660.7130667558192570.5738664883614860.286933244180743
670.6768967676231040.6462064647537920.323103232376896
680.7068995591604120.5862008816791750.293100440839588
690.7059993900403260.5880012199193470.294000609959674
700.6816813851873750.6366372296252510.318318614812625
710.6569968804700030.6860062390599930.343003119529997
720.617220968708310.765558062583380.38277903129169
730.5915410267601960.8169179464796070.408458973239804
740.5526048614809860.8947902770380280.447395138519014
750.5195773329006520.9608453341986970.480422667099348
760.4812623834919890.9625247669839790.518737616508011
770.4535605929885310.9071211859770620.546439407011469
780.4140660499587020.8281320999174040.585933950041298
790.3771751074479540.7543502148959070.622824892552046
800.3773898457510060.7547796915020120.622610154248994
810.3431917380553410.6863834761106830.656808261944659
820.4250910535893540.8501821071787080.574908946410646
830.3996090441214030.7992180882428060.600390955878597
840.3597636056604050.719527211320810.640236394339595
850.3394764836456630.6789529672913270.660523516354337
860.3288216327695370.6576432655390740.671178367230463
870.3544422454878370.7088844909756740.645557754512163
880.3149991994469820.6299983988939640.685000800553018
890.3251808084917880.6503616169835770.674819191508212
900.3191866199009980.6383732398019960.680813380099002
910.3502407982423560.7004815964847130.649759201757644
920.3191349057637950.638269811527590.680865094236205
930.3027951418982610.6055902837965230.697204858101739
940.2666313520427910.5332627040855820.733368647957209
950.2420265305759690.4840530611519370.757973469424031
960.3009299430369070.6018598860738140.699070056963093
970.2649513388891370.5299026777782740.735048661110863
980.2312938956600830.4625877913201660.768706104339917
990.2096876620088490.4193753240176980.790312337991151
1000.1843666275316690.3687332550633380.815633372468331
1010.1570248700748770.3140497401497530.842975129925123
1020.1341115286882350.2682230573764710.865888471311765
1030.1106325882245010.2212651764490030.889367411775499
1040.09230450571330620.1846090114266120.907695494286694
1050.09163062750623640.1832612550124730.908369372493764
1060.07343730751519260.1468746150303850.926562692484807
1070.05925957638129280.1185191527625860.940740423618707
1080.04761078422068250.0952215684413650.952389215779317
1090.03691390612709050.07382781225418110.96308609387291
1100.04856024489571440.09712048979142890.951439755104286
1110.08208734698788850.1641746939757770.917912653012111
1120.1543367418370090.3086734836740170.845663258162991
1130.1489954769225210.2979909538450420.85100452307748
1140.5542977114722140.8914045770555720.445702288527786
1150.6928402159686470.6143195680627060.307159784031353
1160.6530544443785640.6938911112428710.346945555621436
1170.7059463806612410.5881072386775180.294053619338759
1180.6590015103857710.6819969792284580.340998489614229
1190.6146923517200570.7706152965598850.385307648279943
1200.6150338842697330.7699322314605350.384966115730267
1210.695117039499310.609765921001380.30488296050069
1220.6616179076596150.6767641846807710.338382092340385
1230.6600213830973850.679957233805230.339978616902615
1240.6038083762187620.7923832475624760.396191623781238
1250.6282929355613150.743414128877370.371707064438685
1260.601738297028990.796523405942020.39826170297101
1270.540800599324830.918398801350340.45919940067517
1280.4810034287519530.9620068575039050.518996571248047
1290.4529713324313050.905942664862610.547028667568695
1300.4149368438112460.8298736876224910.585063156188754
1310.4072547705653820.8145095411307640.592745229434618
1320.4491794046370950.898358809274190.550820595362905
1330.3818016028497750.763603205699550.618198397150225
1340.3706897701890770.7413795403781540.629310229810923
1350.5955336403028840.8089327193942330.404466359697116
1360.5297215702524180.9405568594951650.470278429747582
1370.6124419048154060.7751161903691890.387558095184594
1380.5401975494009270.9196049011981460.459802450599073
1390.6319327111697070.7361345776605860.368067288830293
1400.5558195653490450.888360869301910.444180434650955
1410.5971379350523240.8057241298953520.402862064947676
1420.5941422588938770.8117154822122460.405857741106123
1430.60996527743080.78006944513840.3900347225692
1440.5618586863934210.8762826272131590.438141313606579
1450.4587651777827580.9175303555655150.541234822217242
1460.4071074100447240.8142148200894470.592892589955276
1470.389774869234750.77954973846950.61022513076525
1480.2667489489642480.5334978979284970.733251051035752
1490.4445026580675760.8890053161351520.555497341932424


Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level00OK
5% type I error level30.0214285714285714OK
10% type I error level110.0785714285714286OK
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Dec/28/t1293539424e739kc3ne541myy/109sev1293539222.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/28/t1293539424e739kc3ne541myy/109sev1293539222.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/28/t1293539424e739kc3ne541myy/13rh11293539222.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/28/t1293539424e739kc3ne541myy/13rh11293539222.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/28/t1293539424e739kc3ne541myy/23rh11293539222.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/28/t1293539424e739kc3ne541myy/23rh11293539222.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/28/t1293539424e739kc3ne541myy/3d0z41293539222.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/28/t1293539424e739kc3ne541myy/3d0z41293539222.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/28/t1293539424e739kc3ne541myy/4d0z41293539222.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/28/t1293539424e739kc3ne541myy/4d0z41293539222.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/28/t1293539424e739kc3ne541myy/5d0z41293539222.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/28/t1293539424e739kc3ne541myy/5d0z41293539222.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/28/t1293539424e739kc3ne541myy/6oayp1293539222.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/28/t1293539424e739kc3ne541myy/6oayp1293539222.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/28/t1293539424e739kc3ne541myy/7oayp1293539222.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/28/t1293539424e739kc3ne541myy/7oayp1293539222.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/28/t1293539424e739kc3ne541myy/8hjxs1293539222.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/28/t1293539424e739kc3ne541myy/8hjxs1293539222.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/28/t1293539424e739kc3ne541myy/9hjxs1293539222.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/28/t1293539424e739kc3ne541myy/9hjxs1293539222.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