Home » date » 2010 » Nov » 19 »

Workshop 7 - Populatievariabele

*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: Fri, 19 Nov 2010 14:57:03 +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/19/t1290178556dbum4b5534lsbj4.htm/, Retrieved Fri, 19 Nov 2010 15:56:08 +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/19/t1290178556dbum4b5534lsbj4.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 «
1 26 24 14 11 12 24 1 23 25 11 7 8 25 0 25 17 6 17 8 30 1 23 18 12 10 8 19 1 19 18 8 12 9 22 0 29 16 10 12 7 22 1 25 20 10 11 4 25 1 21 16 11 11 11 23 1 22 18 16 12 7 17 1 25 17 11 13 7 21 1 24 23 13 14 12 19 1 18 30 12 16 10 19 1 22 23 8 11 10 15 1 15 18 12 10 8 16 1 22 15 11 11 8 23 1 28 12 4 15 4 27 1 20 21 9 9 9 22 1 12 15 8 11 8 14 1 24 20 8 17 7 22 1 20 31 14 17 11 23 1 21 27 15 11 9 23 1 20 34 16 18 11 21 1 21 21 9 14 13 19 1 23 31 14 10 8 18 1 28 19 11 11 8 20 1 24 16 8 15 9 23 1 24 20 9 15 6 25 1 24 21 9 13 9 19 1 23 22 9 16 9 24 1 23 17 9 13 6 22 1 29 24 10 9 6 25 1 24 25 16 18 16 26 1 18 26 11 18 5 29 1 25 25 8 12 7 32 1 21 17 9 17 9 25 1 26 32 16 9 6 29 1 22 33 11 9 6 28 1 22 13 16 12 5 17 0 22 32 12 18 12 28 1 23 25 12 12 7 29 1 30 29 14 18 10 26 1 23 22 9 14 9 25 1 17 18 10 15 8 14 1 23 17 9 16 5 25 1 23 20 10 10 8 26 1 25 15 12 11 8 20 1 24 20 14 14 10 18 1 24 33 14 9 6 32 1 23 29 10 12 8 25 1 21 23 14 17 7 25 1 24 26 16 5 4 23 1 24 18 9 12 8 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 time20 seconds
R Server'Gwilym Jenkins' @ 72.249.127.135


Multiple Linear Regression - Estimated Regression Equation
Organization[t] = + 16.1354931228066 -0.00122026371875766Pop[t] -0.0706717971761332concernmistakes[t] + 0.218172682267896doubtactions[t] -0.148958357244339parentalexp[t] -0.255147679267417parentalcrit[t] + 0.422750826496799personalstandards[t] + e[t]


Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STAT
H0: parameter = 0
2-tail p-value1-tail p-value
(Intercept)16.13549312280662.1804047.400200
Pop-0.001220263718757660.931511-0.00130.9989570.499478
concernmistakes-0.07067179717613320.063193-1.11840.265180.13259
doubtactions0.2181726822678960.1129941.93080.0553650.027683
parentalexp-0.1489583572443390.104676-1.4230.1567730.078387
parentalcrit-0.2551476792674170.131267-1.94370.0537750.026888
personalstandards0.4227508264967990.0760095.561900


Multiple Linear Regression - Regression Statistics
Multiple R0.471563537683633
R-squared0.222372170072703
Adjusted R-squared0.191676334680836
F-TEST (value)7.24437589770311
F-TEST (DF numerator)6
F-TEST (DF denominator)152
p-value8.12359079893632e-07
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation3.51085220908301
Sum Squared Residuals1873.5646515715


Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolation
Forecast
Residuals
Prediction Error
12622.93827303363763.06172696636235
22324.2522581622017-1.25225816220167
32524.35215995203060.647840047969375
42321.98175339398871.01824660601130
51921.8242507506514-2.82425075065142
62922.91345533179316.08654466820693
72524.81220175390680.187798246093245
82122.6815262170137-1.68152621701367
92221.96617343484540.0338265651545764
102522.48802676942492.51197323057507
112420.23014294432893.76985705567110
121819.7296463258742-1.72964632587423
132218.40544665727013.59455334272992
141520.7135009144983-5.7135009144983
152223.5176410519921-1.51764105199206
162824.31820826172473.68179173827531
172022.2772831131239-2.27728311312393
181219.0583655667172-7.05836556671718
192421.44841072861232.55158927138771
202021.3822171627093-1.38221716270933
212123.2871225356826-2.28712253568263
222020.6120871254788-0.612087125478788
232119.24364813034221.75635186965783
242321.07661456873801.92338543126204
252821.96670138379716.03329861620287
262421.94147009976752.05852990023254
272423.48790028412670.512099715873324
282420.41319720465623.58680279534382
292322.0094044682310.990595531768979
302322.72957991065340.270420089346643
312924.31713592115614.68286407884393
322422.08614903621091.91385096378911
331824.9994907791273-6.99949077912727
342526.0673517939213-1.06735179392131
352122.6365559233641-1.63655592336415
362626.7518009433416-0.751800943341579
372225.1675149083292-3.16751490832917
382222.8298277792609-0.829827779260923
392222.5860683606884-0.586068360688403
402325.6717900435025-2.67179004350249
413022.89800255857517.10199744142493
422322.73007200921650.269927990783503
431718.6868621107472-1.68686211074722
442323.8061049976782-0.806104997678154
452324.3633202205782-1.36332022057823
462522.46756125476962.53243874523044
472420.74787555016323.25212444983676
482427.5130362611200-3.51303626112005
492323.0066065050076-0.00660650500755594
502123.8136839101817-2.81368391018166
512425.7454555549298-1.74545555492978
522421.87482028568992.12517971431007
532821.52889854710886.47110145289124
541621.0928407206741-5.09284072067408
552019.90541463199080.094585368009180
562923.45038911684285.54961088315715
572723.92405991173733.07594008826271
582223.2079505241347-1.20795052413472
592824.05063903399913.9493609660009
601620.3583294252799-4.35832942527991
612522.95859688308902.04140311691096
622423.51056705721030.489432942789682
632823.68537024330544.31462975669462
642424.3564492439618-0.356449243961849
652322.72726708741990.272732912580117
663026.97360225579153.02639774420849
672421.30962342387342.69037657612656
682124.1916950902503-3.19169509025025
692523.34626760937661.65373239062337
702524.01100398282370.988996017176252
712220.78232648443131.21767351556868
722322.50617123951420.49382876048577
732622.86124092755673.13875907244331
742321.59277508208521.40722491791485
752523.06386950106991.93613049893012
762121.3168831555804-0.316883155580361
772523.68037968420061.31962031579943
782422.18700937370591.81299062629408
792923.60208490279985.39791509720024
802223.6567879857421-1.65678798574208
812723.64407430135683.35592569864323
822619.67947755386216.32052244613786
832221.32286293072730.677137069272718
842422.10017852754481.89982147245523
852723.12931978865353.87068021134649
862421.33571368249062.66428631750942
872424.90913310396-0.90913310396001
882924.47007581328444.52992418671557
892222.2324058151312-0.232405815131221
902120.58768580778070.412314192219327
912420.41138929914453.58861070085553
922421.8281310685462.171868931454
932321.97504431184481.02495568815518
942022.2964768925519-2.29647689255191
952721.44281148722335.5571885127767
962623.46330276386422.53669723613584
972521.93023130451943.06976869548062
982120.05578038528830.944219614711652
992120.79104368829080.208956311709183
1001920.3930949425186-1.39309494251856
1012121.6279652048029-0.627965204802907
1022121.3152840182238-0.315284018223772
1031619.7577220055957-3.75772200559566
1042220.69947717315421.30052282684582
1052921.82823688336157.17176311663855
1061521.6955994695746-6.69559946957463
1071720.7294441261593-3.72944412615933
1081519.9460341338604-4.94603413386036
1092121.681413833758-0.681413833758009
1102121.0113661574783-0.0113661574783428
1111919.3058984830925-0.305898483092524
1122418.06525300612335.93474699387672
1132022.3943167253148-2.39431672531480
1141725.2043109943269-8.20431099432686
1152325.0687454166209-2.06874541662094
1162422.41447587833221.58552412166779
1171422.0958419614756-8.09584196147561
1181922.9162570511729-3.91625705117291
1192422.19170919229281.80829080770716
1201320.4042395899461-7.40423958994609
1212225.4129125170636-3.41291251706361
1221621.1579972122105-5.15799721221048
1231923.3118603257399-4.3118603257399
1242522.84995767045452.1500423295455
1252524.20952744871180.790472551288172
1262321.42503026965181.57496973034824
1272423.61114151672430.388858483275664
1282623.58703289260822.41296710739181
1292621.53992857420174.46007142579827
1302524.16831922911570.831680770884255
1311822.382329545965-4.38232954596500
1322119.90240974755821.0975902524418
1332623.70539513090632.29460486909375
1342321.99720450708661.00279549291341
1352319.76722344394543.23277655605457
1362222.5939285533469-0.593928553346898
1372022.4123047203027-2.41230472030275
1381322.1252322959819-9.12523229598186
1392421.47217172133072.52782827866925
1401521.6118362562167-6.6118362562167
1411423.154851176375-9.154851176375
1422224.1073332118053-2.10733321180532
1431017.6923804758315-7.69238047583154
1442424.4820758117929-0.482075811792852
1452221.87076245220280.129237547797233
1462425.8203979673877-1.82039796738770
1471921.6471507628983-2.64715076289828
1482022.1388029915682-2.13880299156818
1491317.11075710931-4.11075710930999
1502020.1429975151972-0.142997515197190
1512223.3046961372628-1.30469613726279
1522423.36773014031690.632269859683088
1532923.19425878274585.80574121725418
1541220.9590100880380-8.95901008803795
1552020.9706692810721-0.970669281072056
1562121.4613274311630-0.46132743116296
1572423.67617656200280.323823437997186
1582221.93040422228590.0695957777140708
1592017.70840245743862.29159754256143


Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
100.4348745680120660.8697491360241330.565125431987934
110.290017249399830.580034498799660.70998275060017
120.2973580810756880.5947161621513760.702641918924312
130.267087433163520.534174866327040.73291256683648
140.6193684774516720.7612630450966550.380631522548328
150.5146249495699350.970750100860130.485375050430065
160.592058837955550.8158823240888990.407941162044449
170.5223204735360460.9553590529279080.477679526463954
180.6583220422795120.6833559154409750.341677957720488
190.5890930506536210.8218138986927580.410906949346379
200.5829191542758460.8341616914483080.417080845724154
210.5355961724157120.9288076551685760.464403827584288
220.464533480457510.929066960915020.53546651954249
230.4087432267377910.8174864534755820.591256773262209
240.3899907938199390.7799815876398780.610009206180061
250.5443211999715130.9113576000569730.455678800028487
260.4860156581615940.9720313163231890.513984341838406
270.4175953481397690.8351906962795380.582404651860231
280.4122863135684510.8245726271369020.587713686431549
290.3487368438235990.6974736876471980.651263156176401
300.2894387795093370.5788775590186740.710561220490663
310.317295682913910.634591365827820.68270431708609
320.2699675325476550.539935065095310.730032467452345
330.4704371236354620.9408742472709230.529562876364538
340.4173897811658950.834779562331790.582610218834105
350.3733846333952110.7467692667904210.626615366604789
360.3183856134542050.636771226908410.681614386545795
370.2977988633002760.5955977266005520.702201136699724
380.2496687355454840.4993374710909680.750331264454516
390.2290074519477490.4580149038954980.770992548052251
400.2025695590285980.4051391180571960.797430440971402
410.3681668240539030.7363336481078070.631833175946097
420.3166776428807450.6333552857614890.683322357119255
430.2845393516152090.5690787032304180.71546064838479
440.2408986011412320.4817972022824650.759101398858768
450.2064564077103220.4129128154206440.793543592289678
460.1849351717416850.3698703434833690.815064828258315
470.1721068767009830.3442137534019660.827893123299017
480.1585174980141740.3170349960283490.841482501985826
490.1292484300795640.2584968601591290.870751569920436
500.1183953771996750.236790754399350.881604622800325
510.09765185961175690.1953037192235140.902348140388243
520.08276412589473070.1655282517894610.917235874105269
530.1391656459057570.2783312918115150.860834354094243
540.1739310386434520.3478620772869040.826068961356548
550.1595758781563110.3191517563126210.84042412184369
560.2152183055936200.4304366111872410.78478169440638
570.2074893304295760.4149786608591520.792510669570424
580.1769530567039070.3539061134078140.823046943296093
590.1875171981958410.3750343963916830.812482801804159
600.2171910902253740.4343821804507480.782808909774626
610.1912061718395120.3824123436790230.808793828160488
620.1603506474770100.3207012949540200.83964935252299
630.1595478275360680.3190956550721370.840452172463932
640.1331947704595580.2663895409191160.866805229540442
650.1088063470024560.2176126940049130.891193652997544
660.1061785310243380.2123570620486760.893821468975662
670.09604910042418510.1920982008483700.903950899575815
680.0944580223956190.1889160447912380.905541977604381
690.07964493525934250.1592898705186850.920355064740658
700.0672517523518680.1345035047037360.932748247648132
710.05411054594512450.1082210918902490.945889454054875
720.04232818809839220.08465637619678430.957671811901608
730.03997771789308370.07995543578616740.960022282106916
740.03193315209590220.06386630419180450.968066847904098
750.02649913301341450.05299826602682890.973500866986586
760.02018829233631400.04037658467262810.979811707663686
770.01582635398201850.03165270796403690.984173646017982
780.01260807534744950.02521615069489900.98739192465255
790.01918190530603380.03836381061206750.980818094693966
800.01520537923990130.03041075847980260.984794620760099
810.01493913793864520.02987827587729050.985060862061355
820.02448795639552240.04897591279104490.975512043604478
830.01861496257284660.03722992514569310.981385037427153
840.01544116910481280.03088233820962570.984558830895187
850.01613564919913150.03227129839826290.983864350800869
860.01423608211033730.02847216422067470.985763917889663
870.01064688895281120.02129377790562240.98935311104719
880.01391317605423290.02782635210846580.986086823945767
890.01072973040115540.02145946080231080.989270269598845
900.009518009690501940.01903601938100390.990481990309498
910.009680029567141220.01936005913428240.990319970432859
920.008363634452049810.01672726890409960.99163636554795
930.007764271216308750.01552854243261750.992235728783691
940.00646776007983490.01293552015966980.993532239920165
950.01228260717965370.02456521435930730.987717392820346
960.01078586777031090.02157173554062190.98921413222969
970.01020822146283740.02041644292567480.989791778537163
980.00777615191280950.0155523038256190.99222384808719
990.005685009296683490.01137001859336700.994314990703317
1000.004311731783322860.008623463566645710.995688268216677
1010.003144737918901140.006289475837802290.996855262081099
1020.002202517330119430.004405034660238860.99779748266988
1030.00238884356407360.00477768712814720.997611156435926
1040.001842557028593430.003685114057186850.998157442971407
1050.00820317743229390.01640635486458780.991796822567706
1060.01829083339690440.03658166679380890.981709166603095
1070.01799858498808570.03599716997617150.982001415011914
1080.02259441143644760.04518882287289530.977405588563552
1090.01733273811917650.03466547623835290.982667261880824
1100.01376077713577870.02752155427155740.986239222864221
1110.009983635117004580.01996727023400920.990016364882995
1120.02534194736919050.0506838947383810.97465805263081
1130.02276117431178990.04552234862357970.97723882568821
1140.05988126946952860.1197625389390570.940118730530471
1150.05053542147769510.1010708429553900.949464578522305
1160.04083485719717480.08166971439434960.959165142802825
1170.1256701109911910.2513402219823810.874329889008809
1180.1220077932964850.2440155865929690.877992206703515
1190.1080786858380320.2161573716760640.891921314161968
1200.1819143264176740.3638286528353490.818085673582326
1210.177191989776130.354383979552260.82280801022387
1220.2118364017356730.4236728034713460.788163598264327
1230.1987549729370490.3975099458740990.80124502706295
1240.1938716840896920.3877433681793840.806128315910308
1250.1775293735591750.3550587471183510.822470626440825
1260.1447089626401830.2894179252803660.855291037359817
1270.1147272820968810.2294545641937620.885272717903119
1280.1162800472754040.2325600945508080.883719952724596
1290.1645531532514050.3291063065028100.835446846748595
1300.1406355168789170.2812710337578330.859364483121083
1310.1236111856472100.2472223712944190.87638881435279
1320.107136603914310.214273207828620.89286339608569
1330.09747552811424780.1949510562284960.902524471885752
1340.07937384303156580.1587476860631320.920626156968434
1350.1079723692580300.2159447385160610.89202763074197
1360.08017871994722240.1603574398944450.919821280052778
1370.05851284197403820.1170256839480760.941487158025962
1380.1497554052366930.2995108104733860.850244594763307
1390.2096411763055570.4192823526111150.790358823694443
1400.1904798303656390.3809596607312780.809520169634361
1410.4248075291229230.8496150582458460.575192470877077
1420.359293512265850.71858702453170.64070648773415
1430.6715309292466010.6569381415067970.328469070753399
1440.6152940989519650.769411802096070.384705901048035
1450.504849191264390.990301617471220.49515080873561
1460.4291771743813810.8583543487627620.570822825618619
1470.4373820419646060.8747640839292120.562617958035394
1480.3053536056340680.6107072112681360.694646394365932
1490.2129910878780090.4259821757560180.787008912121991


Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level50.0357142857142857NOK
5% type I error level370.264285714285714NOK
10% type I error level430.307142857142857NOK
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Nov/19/t1290178556dbum4b5534lsbj4/10no241290178602.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/19/t1290178556dbum4b5534lsbj4/10no241290178602.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Nov/19/t1290178556dbum4b5534lsbj4/1y55s1290178602.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/19/t1290178556dbum4b5534lsbj4/1y55s1290178602.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Nov/19/t1290178556dbum4b5534lsbj4/2y55s1290178602.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/19/t1290178556dbum4b5534lsbj4/2y55s1290178602.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Nov/19/t1290178556dbum4b5534lsbj4/3re4d1290178602.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/19/t1290178556dbum4b5534lsbj4/3re4d1290178602.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Nov/19/t1290178556dbum4b5534lsbj4/4re4d1290178602.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/19/t1290178556dbum4b5534lsbj4/4re4d1290178602.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Nov/19/t1290178556dbum4b5534lsbj4/5re4d1290178602.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/19/t1290178556dbum4b5534lsbj4/5re4d1290178602.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Nov/19/t1290178556dbum4b5534lsbj4/61nmg1290178602.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/19/t1290178556dbum4b5534lsbj4/61nmg1290178602.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Nov/19/t1290178556dbum4b5534lsbj4/7cflj1290178602.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/19/t1290178556dbum4b5534lsbj4/7cflj1290178602.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Nov/19/t1290178556dbum4b5534lsbj4/8cflj1290178602.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/19/t1290178556dbum4b5534lsbj4/8cflj1290178602.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Nov/19/t1290178556dbum4b5534lsbj4/9cflj1290178602.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/19/t1290178556dbum4b5534lsbj4/9cflj1290178602.ps (open in new window)


 
Parameters (Session):
par1 = 3 ; par2 = Do not include Seasonal Dummies ; par3 = 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