Home » date » 2010 » Dec » 02 »

month - assignment (jonas poels)

*Unverified author*
R Software Module: /rwasp_multipleregression.wasp (opens new window with default values)
Title produced by software: Multiple Regression
Date of computation: Thu, 02 Dec 2010 18:43:17 +0000
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2010/Dec/02/t12913153002pgdwc7e3efvq6y.htm/, Retrieved Thu, 02 Dec 2010 19:41:40 +0100
 
BibTeX entries for LaTeX users:
@Manual{KEY,
    author = {{YOUR NAME}},
    publisher = {Office for Research Development and Education},
    title = {Statistical Computations at FreeStatistics.org, URL http://www.freestatistics.org/blog/date/2010/Dec/02/t12913153002pgdwc7e3efvq6y.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 24 14 11 12 24 26 9 25 11 7 8 25 23 9 17 6 17 8 30 25 9 18 12 10 8 19 23 9 18 8 12 9 22 19 9 16 10 12 7 22 29 10 20 10 11 4 25 25 10 16 11 11 11 23 21 10 18 16 12 7 17 22 10 17 11 13 7 21 25 10 23 13 14 12 19 24 10 30 12 16 10 19 18 10 23 8 11 10 15 22 10 18 12 10 8 16 15 10 15 11 11 8 23 22 10 12 4 15 4 27 28 10 21 9 9 9 22 20 10 15 8 11 8 14 12 10 20 8 17 7 22 24 10 31 14 17 11 23 20 10 27 15 11 9 23 21 10 34 16 18 11 21 20 10 21 9 14 13 19 21 10 31 14 10 8 18 23 10 19 11 11 8 20 28 10 16 8 15 9 23 24 10 20 9 15 6 25 24 10 21 9 13 9 19 24 10 22 9 16 9 24 23 10 17 9 13 6 22 23 10 24 10 9 6 25 29 10 25 16 18 16 26 24 10 26 11 18 5 29 18 10 25 8 12 7 32 25 10 17 9 17 9 25 21 10 32 16 9 6 29 26 10 33 11 9 6 28 22 10 13 16 12 5 17 22 10 32 12 18 12 28 22 10 25 12 12 7 29 23 10 29 14 18 10 26 30 10 22 9 14 9 25 23 10 18 10 15 8 14 17 10 17 9 16 5 25 23 10 20 10 10 8 26 23 10 15 12 11 8 20 25 10 20 14 14 10 18 24 10 33 14 9 6 32 24 10 29 10 12 8 25 23 10 23 14 17 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 time7 seconds
R Server'Sir Ronald Aylmer Fisher' @ 193.190.124.24
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
Doubtsaboutactions[t] = + 3.49500726801616 + 0.396068656024888month[t] + 0.247296922995200ConcernoverMistakes[t] -0.109229617447763ParentalExpectations[t] + 0.151907036430486ParentalCriticism[t] -0.190172028652719PersonalStandards[t] + 0.111057364353945`Organization `[t] + e[t]


Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STAT
H0: parameter = 0
2-tail p-value1-tail p-value
(Intercept)3.4950072680161610.7373810.32550.7452510.372626
month0.3960686560248881.0566260.37480.70830.35415
ConcernoverMistakes0.2472969229952000.0403666.126300
ParentalExpectations-0.1092296174477630.074666-1.46290.1455590.072779
ParentalCriticism0.1519070364304860.0938671.61830.1076660.053833
PersonalStandards-0.1901720286527190.057182-3.32570.0011060.000553
`Organization `0.1110573643539450.0569141.95130.0528590.02643


Multiple Linear Regression - Regression Statistics
Multiple R0.49015254029223
R-squared0.240249512754926
Adjusted R-squared0.210259361942621
F-TEST (value)8.01094713589593
F-TEST (DF numerator)6
F-TEST (DF denominator)152
p-value1.60506545610062e-07
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation2.48875024721804
Sum Squared Residuals941.469424540232


Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolation
Forecast
Residuals
Prediction Error
11411.93947275490272.06052724509729
21111.4927158802524-0.492715880252443
367.69329890725751-1.69329890725751
41210.57498073885911.42501926114093
589.4936829970201-1.49368299702010
6109.805848721708170.194151278291827
7109.829868034496230.170131965503771
8119.84014419741851.15985580258151
91610.86996981650945.13003018349055
101110.08592725451740.91407274548256
111312.48930105014480.510698949855199
121213.0317620172310-1.03176201723103
13813.0517492155301-5.0517492155301
141210.65310656601061.34689343398944
15119.248183529485781.75181647051422
1647.36740221649998-3.36740221649998
17911.0703886387278-2.07038863872782
1889.8491581438208-1.84915814382081
19810.0896701607053-2.08967016070532
201412.78316297330601.21683702669403
211512.25659627750472.74340372249528
221613.79616818214922.20383181785076
23911.8134421475231-2.81344214752305
241414.3760814224743-0.376081422474277
251111.4742314935484-0.474231493548405
2689.4325837478283-1.43258374782830
2799.5857062732122-0.585706273212204
28911.6482157123107-2.64821571231071
29910.5059062753451-1.50590627534507
3099.52173346072635-0.521733460726344
311011.7855584916493-1.78555849164930
321611.82340037149714.17659962850294
33119.162859621675081.83714037832492
34810.0816399407469-2.08163994074689
3598.74790528556070.252094714439295
361612.67007366793823.32992633206181
371112.6633131621703-1.66331316217033
38169.329671128672486.67032887132752
391212.3443919007282-0.344391900728182
401210.43004129799721.56995870200285
411412.56749003101861.43250996898139
42910.5341934815879-1.53419348158788
431010.7094172647851-0.709417264785079
4498.471621485994410.528378514005588
451010.1344390403053-0.134439040305326
461210.15187170850581.84812829149423
471411.63376823695092.36623176304905
481412.12473977626731.87526022373266
491012.3318241410193-2.33182414101932
50149.927872750670934.07212724932907
511612.23831397010553.76168602989450
52910.4833034670369-1.48330346703694
531011.6122987990958-1.61229879909584
5469.05254782211994-3.05254782211994
55811.3126240094914-3.31262400949137
561312.44644958681010.553550413189894
571010.8548031088160-0.85480310881598
5888.9211024216192-0.921102421619198
5979.19209929934567-2.19209929934567
60159.827631443345865.17236855665414
6199.92845485886802-0.928454858868017
621010.2416344597556-0.241634459755649
631210.23394749016381.76605250983625
641310.50161288730032.49838711269968
65108.427723284183141.57227671581685
661111.8401612626324-0.840161262632442
67813.6172210547696-5.61722105476958
6899.14716650760623-0.147166507606229
69138.663677743774084.33632225622592
701110.43749618021820.562503819781828
71812.7724229605033-4.77242296050328
72910.795324841591-1.795324841591
73912.3561672838581-3.35616728385811
741512.51251160292962.48748839707036
75911.1805451755373-2.18054517553735
761011.5767880176038-1.57678801760383
77148.944832526106165.05516747389384
781210.96847000890481.03152999109522
791211.12400238939200.875997610608046
801111.5604261633614-0.560426163361437
811411.48685651587712.51314348412289
82611.5753359278035-5.57533592780347
831211.27419394717230.72580605282767
84810.0841048014864-2.08410480148639
851412.41450159287981.58549840712019
861110.82654075845370.173459241546275
87109.927842600915250.0721573990847512
881410.24404431485893.75595568514108
891212.0676495451566-0.067649545156601
901011.0062093751507-1.00620937515070
911413.00390773071390.996092269286107
9259.01837653731086-4.01837653731087
931110.51030811435530.489691885644693
941010.2065867477450-0.206586747744983
95911.4768161734027-2.47681617340271
961011.4529474681946-1.45294746819459
971613.74266863186342.25733136813656
981312.82264796795770.177352032042325
99910.8160373464980-1.81603734649798
1001011.3784908057584-1.37849080575841
1011010.9823971521634-0.982397152163354
10279.48477058943398-2.48477058943398
10399.81881717757514-0.818817177575138
104810.2373139588467-2.23731395884674
1051412.87829062274411.12170937725588
1061411.62906227158502.37093772841498
107811.0848609699681-3.08486096996813
108911.5424972385413-2.54249723854129
1091411.81907006323702.18092993676304
1101410.74005255003533.25994744996475
11189.87082919442977-1.87082919442977
112813.697498458878-5.69749845887799
113810.9938586542834-2.99385865428335
11478.57491538099254-1.57491538099254
11567.51783714558696-1.51783714558696
11689.42375889430732-1.42375889430732
11768.313190544643-2.31319054464301
118119.894766530407061.10523346959294
1191411.84842808343782.15157191656218
1201111.1069328584248-0.106932858424812
1211111.9691146895295-0.96911468952952
122119.214437938404981.78556206159502
1231410.39377809703313.60622190296693
124810.3942057228836-2.39420572288361
1252011.50701324505218.49298675494791
1261110.32069186143460.679308138565415
12789.1620717585722-1.16207175857221
1281110.73872557322480.261274426775163
1291010.6388659972798-0.638865997279794
1301413.46218415050300.537815849496953
1311110.58212237877960.417877621220388
132910.6063976712483-1.60639767124831
13399.7312857236005-0.731285723600498
134810.1682290492721-2.1682290492721
1351012.0649970149322-2.06499701493220
1361310.71868111230592.28131888769407
1371310.11560399406562.88439600593437
138129.304349878126272.69565012187372
139810.3879135804722-2.38791358047223
1401311.04233803333201.95766196666805
1411412.43954473090821.56045526909177
1421211.68350080556740.316499194432622
1431410.92441093184563.0755890681544
1441511.31562121396993.6843787860301
1451310.53230847206192.46769152793814
1461611.86795299265464.13204700734539
147911.9879474787856-2.98794747878561
148910.4909904366288-1.49099043662884
149911.0108779647636-2.01087796476355
150811.3037885682201-3.30378856822013
151710.0660590949341-3.06605909493411
1521611.94883814123974.05116185876027
1531113.3281789260286-2.32817892602855
15499.99787353631934-0.997873536319345
155119.848850012223741.15114998777626
15699.87013481797661-0.870134817976613
1571412.49498622847851.50501377152146
1581311.03632962217481.96367037782518
1591614.46527109247921.53472890752081


Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
100.1807284215105820.3614568430211630.819271578489418
110.3613035933925990.7226071867851990.6386964066074
120.2440964949976230.4881929899952460.755903505002377
130.8380112227990460.3239775544019080.161988777200954
140.7670103644684240.4659792710631530.232989635531576
150.682174767565830.6356504648683410.317825232434170
160.747762686626910.504474626746180.25223731337309
170.7335672826503090.5328654346993820.266432717349691
180.7071616401870110.5856767196259780.292838359812989
190.640500110957330.718999778085340.35949988904267
200.6317806837702620.7364386324594770.368219316229738
210.6261655839016060.7476688321967880.373834416098394
220.5966121651084330.8067756697831350.403387834891567
230.6069975656785490.7860048686429020.393002434321451
240.5602113504628420.8795772990743160.439788649537158
250.4891357806963710.9782715613927420.510864219303629
260.4252439131597620.8504878263195240.574756086840238
270.3583366927049330.7166733854098660.641663307295067
280.3501492453845010.7002984907690010.6498507546155
290.3002239001834150.6004478003668290.699776099816585
300.2450310102244820.4900620204489650.754968989775518
310.2258909881549450.4517819763098910.774109011845055
320.2958568758668340.5917137517336690.704143124133166
330.2654293081536960.5308586163073920.734570691846304
340.2674352557403890.5348705114807770.732564744259611
350.219759691277470.439519382554940.78024030872253
360.2393137335573950.4786274671147890.760686266442605
370.2365893116416210.4731786232832420.763410688358379
380.6347382083659530.7305235832680940.365261791634047
390.5827399115426920.8345201769146160.417260088457308
400.5476859878707550.904628024258490.452314012129245
410.5070240750039630.9859518499920750.492975924996037
420.4727159136306710.9454318272613420.527284086369329
430.4237691848346610.8475383696693230.576230815165339
440.3735546473549320.7471092947098630.626445352645068
450.3231741980414250.6463483960828510.676825801958575
460.3031170804642950.6062341609285910.696882919535705
470.292507468833780.585014937667560.70749253116622
480.2689861105901890.5379722211803770.731013889409811
490.2700775437639350.5401550875278710.729922456236065
500.3348933119178150.6697866238356290.665106688082185
510.3825001264165180.7650002528330350.617499873583482
520.3533652474797410.7067304949594820.646634752520259
530.327863349137230.655726698274460.67213665086277
540.3457248731196740.6914497462393480.654275126880326
550.3671108550969010.7342217101938010.6328891449031
560.3221244927458650.644248985491730.677875507254135
570.2837028088181130.5674056176362260.716297191181887
580.2479980537189920.4959961074379840.752001946281008
590.2353731896775730.4707463793551450.764626810322427
600.3710157876636070.7420315753272130.628984212336393
610.3296366767299310.6592733534598630.670363323270069
620.2875802643339870.5751605286679740.712419735666013
630.2667263978300430.5334527956600850.733273602169957
640.2760650348218510.5521300696437020.723934965178149
650.2510459755281340.5020919510562680.748954024471866
660.2188536465731360.4377072931462720.781146353426864
670.3968920995747430.7937841991494860.603107900425257
680.3515304520856160.7030609041712310.648469547914384
690.4381569425764850.876313885152970.561843057423515
700.3939873725363520.7879747450727040.606012627463648
710.5197333252264620.9605333495470760.480266674773538
720.497665514017520.995331028035040.50233448598248
730.5323744454002420.9352511091995160.467625554599758
740.5320185756484260.9359628487031480.467981424351574
750.5193836289324370.9612327421351270.480616371067563
760.491644260649010.983288521298020.50835573935099
770.6411321417770.7177357164460010.358867858223000
780.6044025236980380.7911949526039240.395597476301962
790.5640485987966260.8719028024067470.435951401203374
800.5207820062465790.9584359875068430.479217993753421
810.5202608294641740.9594783410716510.479739170535826
820.6930131418771240.6139737162457530.306986858122876
830.6541042660771260.6917914678457470.345895733922873
840.6371810556054340.7256378887891320.362818944394566
850.608016395654620.783967208690760.39198360434538
860.5630723638938910.8738552722122180.436927636106109
870.5164153471917390.9671693056165220.483584652808261
880.5828649082474880.8342701835050240.417135091752512
890.5375435953310190.9249128093379610.462456404668981
900.4966062260605560.9932124521211120.503393773939444
910.4564870594154570.9129741188309150.543512940584543
920.516285475505230.967429048989540.48371452449477
930.4720972636724550.944194527344910.527902736327545
940.4248279617447550.849655923489510.575172038255245
950.4217983286393870.8435966572787740.578201671360613
960.3918313309246370.7836626618492740.608168669075363
970.3756750073772010.7513500147544020.624324992622799
980.3312725251599570.6625450503199130.668727474840043
990.3078332506766090.6156665013532170.692166749323391
1000.2782135547046480.5564271094092950.721786445295352
1010.2446786046770050.489357209354010.755321395322995
1020.2367062034165040.4734124068330070.763293796583496
1030.2027105071554820.4054210143109630.797289492844519
1040.1930162650167380.3860325300334760.806983734983262
1050.1646590001436530.3293180002873060.835340999856347
1060.1600015316294510.3200030632589010.83999846837055
1070.1730039229480020.3460078458960040.826996077051998
1080.1770264245807090.3540528491614180.822973575419291
1090.1644946933071680.3289893866143350.835505306692832
1100.1880392539335750.3760785078671490.811960746066425
1110.1679044586847100.3358089173694190.83209554131529
1120.3835543546663790.7671087093327590.61644564533362
1130.4409965730816880.8819931461633760.559003426918312
1140.4049916028638030.8099832057276050.595008397136197
1150.3968739257348740.7937478514697480.603126074265126
1160.3547030972686670.7094061945373330.645296902731333
1170.3399748844436020.6799497688872030.660025115556399
1180.2985608250647330.5971216501294660.701439174935267
1190.2774925854982950.5549851709965890.722507414501705
1200.2341964649196180.4683929298392370.765803535080382
1210.2068155010252200.4136310020504390.79318449897478
1220.1936409981060290.3872819962120570.806359001893971
1230.2037070357507080.4074140715014150.796292964249292
1240.215573061642070.431146123284140.78442693835793
1250.7595760463563070.4808479072873850.240423953643693
1260.7195770043767090.5608459912465820.280422995623291
1270.6685456072185080.6629087855629830.331454392781492
1280.6084194666727660.7831610666544680.391580533327234
1290.5463886159291110.9072227681417780.453611384070889
1300.4832203521051920.9664407042103840.516779647894808
1310.4261791365584550.852358273116910.573820863441545
1320.3711183851188900.7422367702377810.62888161488111
1330.3105412937076840.6210825874153680.689458706292316
1340.2720873550841230.5441747101682460.727912644915877
1350.2416358017098900.4832716034197810.75836419829011
1360.2193882203966630.4387764407933260.780611779603337
1370.2499627285021380.4999254570042760.750037271497862
1380.2557517406035620.5115034812071240.744248259396438
1390.2716357294093380.5432714588186770.728364270590662
1400.2128619426413840.4257238852827680.787138057358616
1410.1614101141545920.3228202283091840.838589885845408
1420.1178495881841480.2356991763682960.882150411815852
1430.1365698955056850.2731397910113700.863430104494315
1440.1249000087882240.2498000175764480.875099991211776
1450.1082675864647610.2165351729295230.891732413535239
1460.1949193323427840.3898386646855680.805080667657216
1470.1617518446079490.3235036892158970.838248155392051
1480.09642425972723260.1928485194544650.903575740272767
1490.05992754753323360.1198550950664670.940072452466766


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 level00OK
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Dec/02/t12913153002pgdwc7e3efvq6y/10hxb11291315386.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/02/t12913153002pgdwc7e3efvq6y/10hxb11291315386.ps (open in new window)


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


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


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


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


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


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


http://www.freestatistics.org/blog/date/2010/Dec/02/t12913153002pgdwc7e3efvq6y/7oocy1291315386.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/02/t12913153002pgdwc7e3efvq6y/7oocy1291315386.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/02/t12913153002pgdwc7e3efvq6y/8oocy1291315386.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/02/t12913153002pgdwc7e3efvq6y/8oocy1291315386.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/02/t12913153002pgdwc7e3efvq6y/9hxb11291315386.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/02/t12913153002pgdwc7e3efvq6y/9hxb11291315386.ps (open in new window)


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