Home » date » 2010 » Dec » 14 »

*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, 14 Dec 2010 13:29:25 +0000
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2010/Dec/14/t1292333252epn2up3y5buzqsr.htm/, Retrieved Tue, 14 Dec 2010 14:27: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/14/t1292333252epn2up3y5buzqsr.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 «
0 24 14 11 12 24 26 0 25 11 7 8 25 23 0 17 6 17 8 30 25 1 18 12 10 8 19 23 1 18 8 12 9 22 19 1 16 10 12 7 22 29 1 20 10 11 4 25 25 1 16 11 11 11 23 21 1 18 16 12 7 17 22 1 17 11 13 7 21 25 0 23 13 14 12 19 24 0 30 12 16 10 19 18 1 23 8 11 10 15 22 1 18 12 10 8 16 15 1 15 11 11 8 23 22 1 12 4 15 4 27 28 0 21 9 9 9 22 20 1 15 8 11 8 14 12 1 20 8 17 7 22 24 0 31 14 17 11 23 20 0 27 15 11 9 23 21 1 34 16 18 11 21 20 1 21 9 14 13 19 21 1 31 14 10 8 18 23 1 19 11 11 8 20 28 0 16 8 15 9 23 24 1 20 9 15 6 25 24 1 21 9 13 9 19 24 1 22 9 16 9 24 23 1 17 9 13 6 22 23 1 24 10 9 6 25 29 0 25 16 18 16 26 24 0 26 11 18 5 29 18 1 25 8 12 7 32 25 1 17 9 17 9 25 21 1 32 16 9 6 29 26 1 33 11 9 6 28 22 1 13 16 12 5 17 22 1 32 12 18 12 28 22 1 25 12 12 7 29 23 1 29 14 18 10 26 30 1 22 9 14 9 25 23 1 18 10 15 8 14 17 1 17 9 16 5 25 23 0 20 10 10 8 26 23 1 15 12 11 8 20 25 1 20 14 14 10 18 24 1 33 14 9 6 32 24 0 29 10 12 8 25 23 1 23 14 17 7 25 21 0 26 16 5 4 23 24 1 18 9 12 8 21 2 etc...
 
Output produced by software:

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


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


Multiple Linear Regression - Estimated Regression Equation
Concern_Mistakes[t] = -1.5248892301341 -0.599776425471945Gender[t] + 0.812146509740824Doubts_Actions[t] + 0.258421861231516Par_Exp[t] + 0.179796229544163Par_Crit[t] + 0.563133007199381Personal_Standards[t] -0.115118381547464Organisation[t] + e[t]


Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STAT
H0: parameter = 0
2-tail p-value1-tail p-value
(Intercept)-1.52488923013413.115376-0.48950.6252130.312607
Gender-0.5997764254719450.803715-0.74630.4566660.228333
Doubts_Actions0.8121465097408240.1305526.220900
Par_Exp0.2584218612315160.1332991.93870.0543950.027198
Par_Crit0.1797962295441630.1689081.06450.2888060.144403
Personal_Standards0.5631330071993810.0960335.86400
Organisation-0.1151183815474640.103177-1.11570.2662940.133147


Multiple Linear Regression - Regression Statistics
Multiple R0.639796340883729
R-squared0.409339357808208
Adjusted R-squared0.386023806142743
F-TEST (value)17.5564946384912
F-TEST (DF numerator)6
F-TEST (DF denominator)152
p-value2.22044604925031e-15
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation4.48420824730765
Sum Squared Residuals3056.43478799373


Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolation
Forecast
Residuals
Prediction Error
12425.3674713868651-1.36747138686511
22522.08664764638172.91335235361826
31723.1955619828948-6.19556198289476
41819.6954852711489-1.69548527114888
51819.2934117319808-1.29341173198078
61619.4069284768995-3.40692847689946
72020.7589904748235-0.758990474823453
81622.1639181031645-6.16391810316451
91822.2699711701797-4.26997117017974
101720.3748373668623-3.37483736686227
112322.74516218791690.2548378120831
123022.78097723083567.21902276916444
132314.92749990525548.07250009474463
141818.9270333019304-0.927033301930445
151521.5094110329846-6.50941103298456
161217.7007097310609-5.70070973106094
172119.81495070195151.18504929804847
181515.1559582544423-0.155958254442296
192019.65033667131270.349663328687287
203126.86578360679554.13421639320451
212725.65268810851141.34731189148858
223427.02245604763796.97754395236206
232119.42195109766821.57804890233179
243120.756645283431110.2433547165689
251919.1293017221016-0.129301722101632
261620.6559948406093-4.65599484060933
272021.4552422506445-1.45524225064448
282118.09898917361772.90101082638235
292221.80503817485660.194961825143429
301719.3641178881308-2.36411788813077
312420.14126568525893.85873431474111
322530.8764051306378-5.87640513063775
332627.2180233678308-1.21802336783077
342523.87443905560151.12556094439852
351722.8568298063824-5.8568298063824
363227.61203191714374.38796808285625
373323.44863988743019.5513601125699
381321.9103787110914-8.91037871109142
393227.66536052551954.33463947448045
402525.6638628360616-0.663862836061556
412926.88284801913442.1171519808656
422221.85132745959290.148672540407081
431817.23834681111270.76165318888731
441721.6489862638793-4.6489862638793
452022.6128997275348-2.61289972753484
461520.2868033764848-5.28680337648485
472022.0348068058981-2.03480680589807
483327.90737468235525.09262531764483
492922.56661044279856.43338955720151
502326.5579698959982-3.55796989599819
512623.66996715849992.33003284150006
521818.7870370972407-0.787037097240737
532019.17535349906430.82464650093573
541111.6230304916359-0.62303049163594
552828.7621782677923-0.762178267792346
562623.14943025006492.85056974993514
572222.669269923808-0.669269923808019
581720.0517776355677-3.05177763556769
591215.8538857599063-3.85388575990633
601420.8973540189012-6.89735401890124
611720.5411139668356-3.54111396683558
622121.1874120307229-0.187412030722894
631922.7894496147904-3.78944961479037
641822.8711309424203-4.87113094242027
651018.3900018497382-8.3900018497382
662924.63707205257634.36292794742368
673118.279601733467812.7203982665322
681923.3693885717829-4.36938857178287
69919.9178025587064-10.9178025587064
702022.2903219027409-2.29032190274093
712817.462198113851310.5378018861487
721918.54687009102140.453129908978567
733023.49043661605276.50956338394725
742927.59099683312541.40900316687456
752621.9399002945694.06009970543104
762319.98118216989653.01881783010348
771322.6314806665406-9.63148066654058
782122.4832495856698-1.48324958566978
791921.2573070106616-2.25730701066162
802822.7929283107585.20707168924198
812325.3729608504198-2.37296085041983
821813.60940691489434.3905930851057
832121.1856456618628-0.185645661862836
842021.6207025203118-1.62070252031183
852319.80307235334523.19692764665485
862120.70208832490490.297911675095094
872121.6170380931145-0.617038093114459
881522.6231781689117-7.62317816891175
892826.94497625494551.05502374505454
901917.51221049328231.48778950671773
912621.11208133961044.88791866038963
921013.0189051398643-3.01890513986429
931617.5590386226172-1.55903862261723
942221.0384632649770.96153673502298
951918.54285255045520.457147449544845
963128.60839159234012.39160840765988
973125.65336066135825.34663933864182
982924.65069436641224.34930563358783
991917.86297341621281.13702658378723
1002218.74379835435233.25620164564775
1012322.20566280880560.794337191194412
1021516.6220171743863-1.62201717438634
1032021.913173055602-1.91317305560195
1041819.3399853933777-1.33998539337771
1052321.8102153288651.18978467113503
1062520.83349250121054.1665074987895
1072116.39468028472684.60531971527318
1082419.3148508370894.68514916291101
1092525.0709120701137-0.0709120701136657
1101719.4547342883026-2.45473428830264
1111314.4287552152974-1.4287552152974
1122818.03836392900459.9616360709955
1132120.48866266569780.511337334302206
1142527.9423547054043-2.94235470540425
115921.0762576763391-12.0762576763391
1161617.6939237600989-1.69392376009894
1171921.046422718448-2.04642271844801
1181719.2889309744774-2.28893097447745
1192524.36596446638290.634035533617051
1202015.41969589304674.58030410695328
1212921.445937691487.55406230852002
1221418.8999489107604-4.89994891076041
1232226.7321259935752-4.73212599357522
1241515.3865155722756-0.386515572275644
1251925.8655570594453-6.86555705944529
1262021.8185578044274-1.81855780442743
1271517.9017713795316-2.90177137953155
1282021.6120705139941-1.61207051399408
1291820.0655867958938-2.06558679589383
1303325.28989443916287.71010556083722
1312223.5892499774693-1.58924997746931
1321616.3167272058862-0.316727205886224
1331718.8852557986806-1.88525579868057
1341614.9061594455781.09384055442197
1352117.49841337800413.50158662199593
1362628.1082687097083-2.10826870970826
1371821.0102381889068-3.0102381889068
1381822.927996914261-4.92799691426099
1391718.1546868170441-1.15468681704408
1402224.5338027250514-2.5338027250514
1413024.52975012166795.47024987833213
1423027.6934119154082.306588084592
1432429.7180440769175-5.7180440769175
1442121.8284181608956-0.82841816089561
1452125.2236239084878-4.22362390848779
1462927.23284638830291.76715361169705
1473123.08706656947737.91293343052268
1482018.80929253265491.19070746734509
1491614.63844887008581.36155112991424
1502219.34844371351372.65155628648631
1512020.1300202451636-0.130020245163566
1522827.19514913195070.804850868049289
1533826.486802788119611.5131972118804
1542219.79921935025822.20078064974181
1552025.5275587020833-5.52755870208333
1561718.5047320550995-1.5047320550995
1572824.27874680631153.72125319368852
1582223.9638509492812-1.96385094928122
1593126.52710345326474.4728965467353


Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
100.08444205002012260.1688841000402450.915557949979877
110.04647527809209310.09295055618418610.953524721907907
120.1302788762902430.2605577525804860.869721123709757
130.08449614378396830.1689922875679370.915503856216032
140.1297717540783890.2595435081567790.87022824592161
150.08379025200704810.1675805040140960.916209747992952
160.0616355405147510.1232710810295020.93836445948525
170.08234060909972860.1646812181994570.917659390900271
180.1034310295336430.2068620590672870.896568970466357
190.0989515896919390.1979031793838780.901048410308061
200.1352331782480430.2704663564960860.864766821751957
210.09646720424427250.1929344084885450.903532795755728
220.273774456657780.547548913315560.72622554334222
230.2136506452333840.4273012904667680.786349354766616
240.5176511664818890.9646976670362230.482348833518111
250.444308884692390.8886177693847790.55569111530761
260.4717275156773120.9434550313546240.528272484322688
270.4155779062595930.8311558125191870.584422093740407
280.3725666406401890.7451332812803780.627433359359811
290.3217301524907640.6434603049815280.678269847509236
300.2687552981522770.5375105963045540.731244701847723
310.3482603961228660.6965207922457330.651739603877134
320.3906217184295820.7812434368591650.609378281570418
330.3398600644390770.6797201288781540.660139935560923
340.3945152202145140.7890304404290270.605484779785486
350.3929607553079260.7859215106158510.607039244692074
360.3993333641644590.7986667283289170.600666635835541
370.5923509832940080.8152980334119850.407649016705992
380.7855503139208660.4288993721582680.214449686079134
390.7808773361423340.4382453277153320.219122663857666
400.741294235609460.517411528781080.25870576439054
410.7155083561001450.5689832877997090.284491643899855
420.6671625668750030.6656748662499950.332837433124998
430.6192170349781550.761565930043690.380782965021845
440.6042043890069280.7915912219861450.395795610993072
450.5670880008136830.8658239983726350.432911999186317
460.5884240629378820.8231518741242360.411575937062118
470.5477308275949520.9045383448100960.452269172405048
480.5354011631720050.929197673655990.464598836827995
490.6018615143629170.7962769712741660.398138485637083
500.5800826434130990.8398347131738020.419917356586901
510.5427172779294120.9145654441411760.457282722070588
520.4928461706229250.985692341245850.507153829377075
530.4522226625462960.9044453250925910.547777337453704
540.4045168293298890.8090336586597780.595483170670111
550.3594111897146110.7188223794292210.640588810285389
560.3325338025718940.6650676051437880.667466197428106
570.2886012291772880.5772024583545750.711398770822712
580.2633046101546980.5266092203093970.736695389845302
590.2449431823467790.4898863646935580.755056817653221
600.3030652443271510.6061304886543020.696934755672849
610.2893694471814780.5787388943629560.710630552818522
620.2511159292150760.5022318584301530.748884070784924
630.2371279442208270.4742558884416550.762872055779173
640.2663268627067890.5326537254135780.733673137293211
650.3511742427525460.7023484855050920.648825757247454
660.3493839107683050.698767821536610.650616089231695
670.683580340507480.6328393189850390.316419659492519
680.6787796302316370.6424407395367260.321220369768363
690.8490183837324790.3019632325350420.150981616267521
700.8290295950894710.3419408098210570.170970404910529
710.9334882820124630.1330234359750750.0665117179875373
720.9172086169357370.1655827661285260.0827913830642631
730.9373879325600460.1252241348799070.0626120674399535
740.9246381546894060.1507236906211880.0753618453105941
750.9240194998811520.1519610002376960.0759805001188479
760.915891996427760.1682160071444790.0841080035722397
770.9670983795705350.06580324085893030.0329016204294652
780.9590483740827390.08190325183452260.0409516259172613
790.9506572679738820.0986854640522370.0493427320261185
800.9541605666398510.09167886672029770.0458394333601489
810.9454610354799970.1090779290400070.0545389645200033
820.9451310422199380.1097379155601230.0548689577800616
830.9307736687138930.1384526625722140.069226331286107
840.9166289736848180.1667420526303630.0833710263151816
850.9079566407467610.1840867185064770.0920433592532386
860.8918591864664870.2162816270670270.108140813533513
870.8694109743602940.2611780512794130.130589025639706
880.9148847233837830.1702305532324340.0851152766162169
890.897160906664860.205678186670280.10283909333514
900.8764856064129210.2470287871741590.12351439358708
910.8786052570358010.2427894859283980.121394742964199
920.8668757682637790.2662484634724420.133124231736221
930.8435961135248080.3128077729503840.156403886475192
940.815473334878340.369053330243320.18452666512166
950.7814914941078070.4370170117843870.218508505892193
960.7520793237855770.4958413524288460.247920676214423
970.7700687922926510.4598624154146980.229931207707349
980.7643692980002780.4712614039994430.235630701999722
990.7277406921975480.5445186156049040.272259307802452
1000.7028316813352580.5943366373294850.297168318664742
1010.6593776252388870.6812447495222250.340622374761113
1020.619574691481440.760850617037120.38042530851856
1030.5809601512371740.8380796975256530.419039848762826
1040.5379894837899110.9240210324201780.462010516210089
1050.4917965545786560.9835931091573120.508203445421344
1060.4734542948855870.9469085897711750.526545705114413
1070.4707127620936070.9414255241872150.529287237906393
1080.4828219480877380.9656438961754770.517178051912262
1090.4323073899086030.8646147798172060.567692610091397
1100.4082286197471990.8164572394943990.591771380252801
1110.3686419823089450.7372839646178890.631358017691055
1120.59692555474990.80614889050020.4030744452501
1130.584118031810280.831763936379440.41588196818972
1140.5526226430355360.8947547139289290.447377356964464
1150.792882714612480.4142345707750390.20711728538752
1160.765973641984660.4680527160306790.234026358015339
1170.7516251179071930.4967497641856150.248374882092807
1180.7207752637033180.5584494725933650.279224736296682
1190.6733035518547240.6533928962905510.326696448145276
1200.7024071138004980.5951857723990040.297592886199502
1210.7541832744492820.4916334511014370.245816725550718
1220.7447946124739080.5104107750521840.255205387526092
1230.746704701933120.5065905961337610.253295298066881
1240.6957364185148330.6085271629703340.304263581485167
1250.785352761275880.4292944774482390.214647238724119
1260.7473968292932610.5052063414134780.252603170706739
1270.7861709263383920.4276581473232160.213829073661608
1280.7564203986220960.4871592027558080.243579601377904
1290.7210571907148390.5578856185703220.278942809285161
1300.7812730453778020.4374539092443960.218726954622198
1310.730601277758280.5387974444834410.269398722241721
1320.6708555137925570.6582889724148860.329144486207443
1330.6535776243338450.6928447513323090.346422375666155
1340.5854589351169870.8290821297660270.414541064883014
1350.5282903907091530.9434192185816950.471709609290847
1360.585709116195080.828581767609840.41429088380492
1370.5501684021514430.8996631956971140.449831597848557
1380.5549610841265310.8900778317469370.445038915873469
1390.4744029772708540.9488059545417080.525597022729146
1400.3945607704880170.7891215409760330.605439229511983
1410.5401440508507210.9197118982985580.459855949149279
1420.4590163229245550.918032645849110.540983677075445
1430.3765801013605710.7531602027211410.623419898639429
1440.2867526795669450.573505359133890.713247320433055
1450.303984197027430.607968394054860.69601580297257
1460.2140078427565450.4280156855130910.785992157243455
1470.3294294428760140.6588588857520290.670570557123986
1480.2347005543942780.4694011087885560.765299445605722
1490.6093567596400640.7812864807198720.390643240359936


Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level00OK
5% type I error level00OK
10% type I error level50.0357142857142857OK
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Dec/14/t1292333252epn2up3y5buzqsr/10ktpq1292333353.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/14/t1292333252epn2up3y5buzqsr/10ktpq1292333353.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/14/t1292333252epn2up3y5buzqsr/1dr9e1292333353.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/14/t1292333252epn2up3y5buzqsr/1dr9e1292333353.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/14/t1292333252epn2up3y5buzqsr/2o1901292333353.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/14/t1292333252epn2up3y5buzqsr/2o1901292333353.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/14/t1292333252epn2up3y5buzqsr/3o1901292333353.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/14/t1292333252epn2up3y5buzqsr/3o1901292333353.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/14/t1292333252epn2up3y5buzqsr/4o1901292333353.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/14/t1292333252epn2up3y5buzqsr/4o1901292333353.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/14/t1292333252epn2up3y5buzqsr/5hsql1292333353.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/14/t1292333252epn2up3y5buzqsr/5hsql1292333353.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/14/t1292333252epn2up3y5buzqsr/6hsql1292333353.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/14/t1292333252epn2up3y5buzqsr/6hsql1292333353.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/14/t1292333252epn2up3y5buzqsr/79jpn1292333353.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/14/t1292333252epn2up3y5buzqsr/79jpn1292333353.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/14/t1292333252epn2up3y5buzqsr/89jpn1292333353.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/14/t1292333252epn2up3y5buzqsr/89jpn1292333353.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/14/t1292333252epn2up3y5buzqsr/9ktpq1292333353.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/14/t1292333252epn2up3y5buzqsr/9ktpq1292333353.ps (open in new window)


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