Home » date » 2010 » Dec » 19 »

Multiple Regression Gender

*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: Sun, 19 Dec 2010 15:50:49 +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/19/t1292774037r35z7cfj4n2rysb.htm/, Retrieved Sun, 19 Dec 2010 16:54:11 +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/19/t1292774037r35z7cfj4n2rysb.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 1 4 4 2 0 1 2 2 2 0 1 5 5 4 1 1 4 5 3 0 2 1 1 2 0 1 2 4 1 0 4 5 6 4 0 1 1 5 3 0 1 3 4 1 0 2 5 5 4 1 1 2 7 4 0 1 2 2 4 1 2 2 7 3 0 1 2 5 4 0 1 1 5 1 1 1 4 7 4 1 1 3 3 1 0 1 6 6 4 1 1 1 2 4 0 2 3 6 3 1 1 2 1 2 0 2 5 5 6 0 1 5 4 5 0 2 3 4 4 1 1 3 7 6 0 1 5 7 1 1 1 5 5 2 0 2 4 6 4 1 1 2 5 4 0 1 1 1 1 1 2 4 6 2 0 1 6 4 1 0 1 2 2 2 1 1 3 2 2 1 1 2 6 2 1 2 4 6 6 1 1 2 6 2 0 1 1 1 1 1 1 5 6 4 1 1 5 6 3 0 1 1 1 3 1 1 1 1 1 1 1 2 7 4 0 1 4 2 3 0 1 5 3 4 0 1 3 5 3 0 1 3 3 2 1 1 1 4 1 0 1 2 2 5 1 1 3 3 4 1 2 2 7 1 0 2 5 7 2 1 1 4 5 4 0 1 4 1 3 0 1 2 2 2 0 2 3 5 3 1 1 6 2 3 0 1 2 4 2 1 2 3 7 2 1 1 2 2 4 0 1 5 5 4 0 1 5 6 2 0 1 5 3 2 1 1 6 7 5 0 2 4 4 4 1 1 2 3 5 0 1 5 5 5 1 2 2 3 2 1 1 1 2 3 0 1 6 6 4 0 1 6 6 2 1 1 3 5 2 1 1 4 2 2 0 3 5 3 5 0 2 2 4 2 0 2 4 6 3 1 1 3 5 2 1 1 2 2 2 1 1 2 5 2 1 1 3 2 2 0 1 3 1 2 1 1 7 2 1 0 1 2 4 3 0 1 2 5 3 1 1 2 5 3 0 1 5 3 3 0 1 1 2 1 0 3 5 7 4 0 1 2 1 1 0 1 1 5 1 0 1 2 5 1 0 1 2 2 3 0 1 0 6 2 0 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 time12 seconds
R Server'Gwilym Jenkins' @ 72.249.127.135


Multiple Linear Regression - Estimated Regression Equation
Depressed[t] = + 0.752742283284845 -0.0807424499953264Gender[t] + 0.0476668071066975Cannotdo[t] + 0.0527632072156886Worrytoomuch[t] + 0.0627476309907595Limitactivity[t] + e[t]


Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STAT
H0: parameter = 0
2-tail p-value1-tail p-value
(Intercept)0.7527422832848450.147685.09711e-061e-06
Gender-0.08074244999532640.093204-0.86630.3877390.19387
Cannotdo0.04766680710669750.0295381.61370.1087310.054366
Worrytoomuch0.05276320721568860.027411.9250.0561640.028082
Limitactivity0.06274763099075950.0360821.7390.0841270.042064


Multiple Linear Regression - Regression Statistics
Multiple R0.314529135026514
R-squared0.0989285767805273
Adjusted R-squared0.0744096264888409
F-TEST (value)4.03478026602432
F-TEST (DF numerator)4
F-TEST (DF denominator)147
p-value0.00391177248966845
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation0.555793587493188
Sum Squared Residuals45.4092572490866


Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolation
Forecast
Residuals
Prediction Error
111.27995760255589-0.279957602555887
211.07909757391114-0.0790975739111352
311.50588287885981-0.50588287885981
411.31472599076703-0.314725990767028
520.9786675595887461.02133244041125
611.12187635735175-0.121876357351752
741.55864608607552.4413539139245
811.25246801944226-0.252468019442262
911.16954316445845-0.169543164458450
1021.505882878859810.494117121140189
1111.38766642197577-0.38766642197577
1211.20459283589265-0.204592835892653
1321.324918790985010.67508120901499
1411.36288245753972-0.362882457539719
1511.12697275746074-0.126972757460744
1611.48300003618916-0.483000036189165
1711.03603750724743-0.0360375072474348
1811.60631289318220-0.606312893182197
1911.07618357879063-0.0761835787906293
2021.400564840871350.599435159128654
2110.945591916700120.0544080832998805
2221.631378140841330.36862185915867
2311.51586730263488-0.515867302634882
2421.357786057430730.642213942569272
2511.56082849106399-0.560828491063986
2611.42316640031891-0.423166400318911
2711.29964516688297-0.299645166882966
2821.510979278968800.489020721031197
2911.28214000754439-0.282140007544393
3010.915919928597990.0840800714020108
3121.304741566991960.695258433008043
3211.31254358577854-0.312543585778542
3311.07909757391113-0.0790975739111346
3411.04602193102251-0.0460219310225055
3511.20940795277856-0.209407952778562
3621.555732090954990.444267909045005
3711.20940795277856-0.209407952778562
3810.915919928597990.0840800714020108
3911.47790363608017-0.477903636080173
4011.41515600508941-0.415156005089414
4111.04141519057951-0.0414151905795079
4210.8351774786026630.164822521397337
4311.38766642197577-0.38766642197577
4411.23717881911529-0.237178819115289
4511.40035646442843-0.400356464428434
4611.34780163365566-0.347801633655657
4711.17952758823352-0.179527588233521
4810.9934671002497280.00653289975027157
4911.26734046688341-0.267340466883413
5011.22428040021971-0.224280400219713
5121.199423529003490.800576470996508
5221.485914031309670.51408596869033
5311.37747362175779-0.377473621757787
5411.1844156118996-0.184415611899600
5511.07909757391113-0.0790975739111346
5621.347801633655660.652198366344343
5711.25176998333336-0.251769983333357
5811.18462398834251-0.184623988342512
5921.309837967100950.690162032899052
6011.12385038589733-0.123850385897327
6111.50588287885981-0.505882878859811
6211.43315082409398-0.433150824093981
6311.27486120244692-0.274861202446916
6411.64108128139332-0.641081281393319
6521.405452864537430.594547135462575
6611.23936122410377-0.239361224103775
6711.56863050985057-0.56863050985057
6821.051118331131500.948881668868503
6911.01343594779987-0.0134359477998699
7011.60631289318220-0.606312893182197
7111.48081763120068-0.480817631200679
7211.20431155266957-0.204311552669571
7311.09368873812920-0.093688738129203
7431.463104095419191.53689590458081
7521.184623988342510.815376011657488
7621.448231647978040.551768352021957
7711.20431155266957-0.204311552669571
7810.9983551239158080.00164487608419195
7911.15664474556287-0.156644745562874
8011.04602193102251-0.0460219310225055
8111.07400117380214-0.0740011738021434
8211.17394152845854-0.173941528458536
8311.24737161933327-0.247371619333271
8411.30013482654896-0.30013482654896
8511.21939237655363-0.219392376553633
8611.33760883343767-0.337608833437675
8710.9686831358136780.0313168641863222
8831.611409293291191.38859070670881
8910.9635867357046870.0364132642953134
9011.12697275746074-0.126972757460744
9111.17463956456744-0.174639564567441
9211.14184520490189-0.141845204901894
9311.19481678856049-0.194816788560494
9411.28484562622199-0.284845626221986
9511.47329689563718-0.473296895637176
9611.19460841211758-0.194608412117582
9711.14645194534489-0.146451945344892
9811.15664474556287-0.156644745562874
9911.30013482654896-0.30013482654896
10021.377473621757790.622526378242213
10111.36797885764871-0.36797885764871
10211.36239279787373-0.362392797873726
10311.33272080977160-0.332720809771595
10421.462822812196110.537177187803888
10511.14184520490189-0.141845204901894
10621.425140428864480.574859571135515
10721.108977938456180.891022061543824
10831.452911295201211.54708870479879
10921.380387616878290.619612383121708
11021.337817209880590.662182790119414
11111.51097927896880-0.510979278968803
11211.33469483831717-0.334694838317170
11311.00636551914530-0.00636551914530451
11410.940703893034040.0592961069659602
11511.67904494794803-0.679044947948027
11611.26997317878084-0.269973178780836
11711.07909757391113-0.0790975739111346
11821.307447185669550.692552814330449
11911.35268965732174-0.352689657321737
12011.38548401698728-0.385484016987284
12111.45821607175311-0.458216071753114
12211.01634994292038-0.0163499429203752
12311.45311967164412-0.453119671644123
12411.10876956201326-0.108769562013265
12511.01634994292038-0.0163499429203752
12611.28505400266490-0.285054002664898
12711.52096370274387-0.520963702743873
12821.309629590658040.690370409341963
12921.347311973989660.652688026010336
13011.02633436669545-0.026334366695446
13111.28214000754439-0.282140007544393
13211.28214000754439-0.282140007544393
13311.36288245753972-0.362882457539719
13441.334903214760082.66509678523992
13511.42514042886448-0.425140428864485
13621.362882457539720.637117542460281
13711.33781720988059-0.337817209880586
13811.47280723597118-0.472807235971182
13911.33272080977160-0.332720809771595
14011.40517158131434-0.405171581314343
14110.915919928597990.0840800714020108
14211.11386596212226-0.113865962122256
14311.2373871955582-0.237387195558200
14411.17463956456744-0.174639564567441
14511.46282281219611-0.462822812196112
14611.16662916933794-0.166629169337945
14711.07909757391113-0.0790975739111346
14821.325200074208090.674799925791908
14911.29964516688297-0.299645166882966
15011.47329689563718-0.473296895637176
15131.553549685966511.44645031403349
15211.12697275746074-0.126972757460744


Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
80.999830870042260.0003382599154802760.000169129957740138
90.9994920356120660.00101592877586850.00050796438793425
100.9988924775236710.002215044952657810.00110752247632890
110.9975580187206190.004883962558762230.00244198127938111
120.9974258852591680.005148229481664570.00257411474083229
130.9982381299122830.003523740175433470.00176187008771673
140.9979689897053860.004062020589228650.00203101029461433
150.9961763771529650.007647245694069720.00382362284703486
160.995310406510270.009379186979461350.00468959348973067
170.992229558707410.01554088258518180.00777044129259088
180.9948559434744320.01028811305113580.00514405652556792
190.9914065689320970.01718686213580570.00859343106790285
200.9897125266797660.02057494664046810.0102874733202340
210.984294714999230.03141057000154120.0157052850007706
220.9771302554099040.04573948918019290.0228697445900964
230.9778789907766940.04424201844661230.0221210092233062
240.9758552067301860.04828958653962720.0241447932698136
250.9721378955206130.0557242089587750.0278621044793875
260.967483416067430.06503316786513890.0325165839325695
270.9554065102036680.08918697959266430.0445934897963322
280.9471647810378850.1056704379242310.0528352189621154
290.9306994400112940.1386011199774120.069300559988706
300.9084647449161760.1830705101676480.091535255083824
310.928293750991850.14341249801630.07170624900815
320.914434014202940.1711319715941190.0855659857970593
330.8910468333523480.2179063332953040.108953166647652
340.86204601622510.2759079675497990.137953983774900
350.8303319960053420.3393360079893160.169668003994658
360.8153425734321190.3693148531357620.184657426567881
370.7781984892530580.4436030214938840.221801510746942
380.7346812847662910.5306374304674180.265318715233709
390.7135024639584280.5729950720831430.286497536041572
400.6809843247348620.6380313505302750.319015675265138
410.635038688189210.7299226236215810.364961311810790
420.5937306477914250.812538704417150.406269352208575
430.5611877191406290.8776245617187420.438812280859371
440.5223899253482660.9552201493034690.477610074651734
450.4996263212158490.9992526424316980.500373678784151
460.4720871194038310.9441742388076610.527912880596169
470.4260496896380830.8520993792761660.573950310361917
480.3768204124261640.7536408248523280.623179587573836
490.3445583668616680.6891167337233350.655441633138332
500.3022051094593840.6044102189187680.697794890540616
510.352135966762240.704271933524480.64786403323776
520.3386068791981740.6772137583963470.661393120801826
530.3071506190879720.6143012381759430.692849380912028
540.2664544075186070.5329088150372130.733545592481393
550.2277699837119810.4555399674239620.77223001628802
560.2342152869760870.4684305739521750.765784713023912
570.2029754075296540.4059508150593080.797024592470346
580.1765618212628620.3531236425257240.823438178737138
590.1930310817165930.3860621634331860.806968918283407
600.1632510801905960.3265021603811930.836748919809404
610.1575749733560020.3151499467120050.842425026643998
620.1480802032968940.2961604065937880.851919796703106
630.1259126359588190.2518252719176370.874087364041181
640.1268400035612360.2536800071224710.873159996438764
650.1328720244270510.2657440488541010.86712797557295
660.1127160903965910.2254321807931820.88728390960341
670.1126455748483300.2252911496966590.88735442515167
680.1684742868616530.3369485737233060.831525713138347
690.1399999128753130.2799998257506270.860000087124687
700.1424141896039860.2848283792079720.857585810396014
710.1338607813593420.2677215627186840.866139218640658
720.1124183290121960.2248366580243920.887581670987804
730.09223699226715730.1844739845343150.907763007732843
740.3147102719783090.6294205439566180.685289728021691
750.3562499744344780.7124999488689570.643750025565522
760.3510906806975810.7021813613951620.648909319302419
770.3134337211243820.6268674422487640.686566278875618
780.2726238459589790.5452476919179570.727376154041022
790.2379325403202980.4758650806405960.762067459679702
800.2035015887610530.4070031775221060.796498411238947
810.1719087600975150.3438175201950310.828091239902485
820.1508486393260350.3016972786520700.849151360673965
830.1314654495269550.2629308990539100.868534550473045
840.1161865606360540.2323731212721070.883813439363946
850.09818913105789880.1963782621157980.901810868942101
860.08549733087176860.1709946617435370.914502669128231
870.06888459902490560.1377691980498110.931115400975094
880.1952293571669150.390458714333830.804770642833085
890.1636985294755920.3273970589511840.836301470524408
900.1395713103149520.2791426206299050.860428689685048
910.1176723264125330.2353446528250660.882327673587467
920.09714137678573360.1942827535714670.902858623214266
930.08191361348465280.1638272269693060.918086386515347
940.06988608355993030.1397721671198610.93011391644007
950.06454158779361770.1290831755872350.935458412206382
960.05218028165353580.1043605633070720.947819718346464
970.04258859789549460.08517719579098920.957411402104505
980.03353691880838220.06707383761676440.966463081191618
990.02725000557159050.0545000111431810.97274999442841
1000.02793493755853770.05586987511707540.972065062441462
1010.02315894532452120.04631789064904230.976841054675479
1020.02019096886566380.04038193773132750.979809031134336
1030.01630709906623320.03261419813246630.983692900933767
1040.01516774631428560.03033549262857120.984832253685714
1050.01130745047531670.02261490095063340.988692549524683
1060.01075809797049000.02151619594098000.98924190202951
1070.01668312113149130.03336624226298270.983316878868509
1080.08332298182208630.1666459636441730.916677018177914
1090.08948016732266260.1789603346453250.910519832677337
1100.09877402708642580.1975480541728520.901225972913574
1110.08927727594836870.1785545518967370.910722724051631
1120.07689554397929730.1537910879585950.923104456020703
1130.05930515540263880.1186103108052780.940694844597361
1140.04524938655920440.09049877311840890.954750613440795
1150.04674110425588040.09348220851176070.95325889574412
1160.03601657373069550.0720331474613910.963983426269305
1170.02639886026622010.05279772053244030.97360113973378
1180.03915273036997820.07830546073995630.960847269630022
1190.0308439434577080.0616878869154160.969156056542292
1200.02384888995975070.04769777991950150.97615111004025
1210.02021732993265030.04043465986530050.97978267006735
1220.01424495008982880.02848990017965750.985755049910171
1230.01172092504648740.02344185009297480.988279074953513
1240.008150831763698870.01630166352739770.9918491682363
1250.005398933379719280.01079786675943860.99460106662028
1260.003643776212575440.007287552425150880.996356223787425
1270.004064813563779870.008129627127559740.99593518643622
1280.00445979741964510.00891959483929020.995540202580355
1290.007129091749026210.01425818349805240.992870908250974
1300.004534709472088940.009069418944177880.995465290527911
1310.003818841335431110.007637682670862220.996181158664569
1320.003821276535370720.007642553070741440.99617872346463
1330.004867392355881990.009734784711763980.995132607644118
1340.7893262568545010.4213474862909970.210673743145499
1350.7441939278417750.5116121443164510.255806072158225
1360.7351080068810590.5297839862378820.264891993118941
1370.6636698657493530.6726602685012930.336330134250647
1380.6529563885923910.6940872228152170.347043611407609
1390.6258948209329750.748210358134050.374105179067025
1400.5202096480925320.9595807038149360.479790351907468
1410.4057463026380710.8114926052761420.594253697361929
1420.3006380000919470.6012760001838940.699361999908053
1430.2014663463825930.4029326927651860.798533653617407
1440.1128298846481040.2256597692962070.887170115351896


Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level160.116788321167883NOK
5% type I error level380.277372262773723NOK
10% type I error level510.372262773722628NOK
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Dec/19/t1292774037r35z7cfj4n2rysb/10o5c41292773836.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/19/t1292774037r35z7cfj4n2rysb/10o5c41292773836.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/19/t1292774037r35z7cfj4n2rysb/14p4g1292773836.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/19/t1292774037r35z7cfj4n2rysb/14p4g1292773836.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/19/t1292774037r35z7cfj4n2rysb/2rvxd1292773836.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/19/t1292774037r35z7cfj4n2rysb/2rvxd1292773836.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/19/t1292774037r35z7cfj4n2rysb/3rvxd1292773836.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/19/t1292774037r35z7cfj4n2rysb/3rvxd1292773836.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/19/t1292774037r35z7cfj4n2rysb/4rvxd1292773836.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/19/t1292774037r35z7cfj4n2rysb/4rvxd1292773836.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/19/t1292774037r35z7cfj4n2rysb/52mey1292773836.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/19/t1292774037r35z7cfj4n2rysb/52mey1292773836.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/19/t1292774037r35z7cfj4n2rysb/62mey1292773836.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/19/t1292774037r35z7cfj4n2rysb/62mey1292773836.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/19/t1292774037r35z7cfj4n2rysb/7vvdj1292773836.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/19/t1292774037r35z7cfj4n2rysb/7vvdj1292773836.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/19/t1292774037r35z7cfj4n2rysb/8vvdj1292773836.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/19/t1292774037r35z7cfj4n2rysb/8vvdj1292773836.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/19/t1292774037r35z7cfj4n2rysb/9o5c41292773836.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/19/t1292774037r35z7cfj4n2rysb/9o5c41292773836.ps (open in new window)


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