Home » date » 2010 » Dec » 03 »

minitutorial ws 7 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: Fri, 03 Dec 2010 16:43:09 +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/03/t1291394545usmxjjor8sh2nea.htm/, Retrieved Fri, 03 Dec 2010 17:42:35 +0100
 
BibTeX entries for LaTeX users:
@Manual{KEY,
    author = {{YOUR NAME}},
    publisher = {Office for Research Development and Education},
    title = {Statistical Computations at FreeStatistics.org, URL http://www.freestatistics.org/blog/date/2010/Dec/03/t1291394545usmxjjor8sh2nea.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 12 3 7 13 5 2 0 15 3 10 16 6 1 3 12 4 9 12 6 1 3 10 3 10 11 5 1 1 12 2 6 12 3 2 3 15 3 15 18 8 2 1 9 4 10 11 4 1 4 12 2 14 14 4 1 0 11 3 5 9 4 1 3 11 4 15 14 6 1 2 11 3 10 12 6 2 4 15 3 16 11 5 1 3 7 4 13 12 4 1 1 11 2 6 13 6 2 1 11 2 12 11 4 2 2 10 3 10 12 6 1 3 14 2 15 16 6 1 1 10 4 6 9 4 2 1 6 2 8 11 4 1 2 11 1 8 13 2 2 3 15 3 13 15 7 1 4 11 4 15 10 5 2 2 12 2 7 11 4 1 1 14 3 12 13 6 2 2 15 3 15 16 6 1 2 9 4 13 15 7 2 4 13 3 15 14 5 2 2 13 3 13 14 6 1 3 16 4 9 14 4 2 3 13 4 9 8 4 1 3 12 4 15 13 7 1 4 14 3 14 15 7 2 2 11 4 9 13 4 1 2 9 3 9 11 4 2 4 16 2 16 15 6 1 3 12 4 12 15 6 2 4 10 3 10 9 5 1 2 13 2 13 13 6 2 5 16 4 17 16 7 1 3 14 4 13 13 6 1 1 15 4 5 11 3 2 1 5 4 6 12 3 1 1 8 2 9 12 4 1 2 11 2 9 12 6 2 3 16 3 13 14 7 1 9 17 4 20 14 5 2 0 9 5 5 8 4 1 0 9 2 8 13 5 2 2 13 3 14 16 6 1 2 10 3 6 13 6 1 3 6 2 14 11 6 1 1 12 2 9 14 5 2 2 8 3 8 13 4 2 0 14 2 9 13 5 2 5 12 4 16 13 5 2 2 11 3 12 12 4 1 4 16 3 16 16 6 1 3 8 4 11 15 2 1 0 15 1 11 15 8 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 time9 seconds
R Server'George Udny Yule' @ 72.249.76.132


Multiple Linear Regression - Estimated Regression Equation
IHaveManyFriends[t] = + 3.86540692440484 + 0.0137282387328047sum[t] + 0.0117110183160170Popularity[t] + 0.0248224514529821KnowingPeople[t] -0.0377884298430325Liked[t] -0.065730911728197Celebrity[t] -0.265177385683451Gender[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.865406924404840.4395428.794200
sum0.01372823873280470.0713510.19240.8476890.423845
Popularity0.01171101831601700.0346490.3380.7358530.367927
KnowingPeople0.02482245145298210.0374860.66220.508890.254445
Liked-0.03778842984303250.040237-0.93920.3491820.174591
Celebrity-0.0657309117281970.070786-0.92860.3546170.177309
Gender-0.2651773856834510.149707-1.77130.0785660.039283


Multiple Linear Regression - Regression Statistics
Multiple R0.203330174641508
R-squared0.0413431599197461
Adjusted R-squared0.00247869343000606
F-TEST (value)1.06377788385852
F-TEST (DF numerator)6
F-TEST (DF denominator)148
p-value0.386976896365664
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation0.893084065341476
Sum Squared Residuals118.044673869495


Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolation
Forecast
Residuals
Prediction Error
132.843165625133340.156834374866657
233.02511898013376-0.0251189801337584
343.157501909303270.842498090696731
433.26242166569545-0.262421665695448
522.98759342697985-0.987593426979854
632.718199884771170.281800115228826
743.288985081642020.711014918357981
823.35122736907131-1.35122736907131
933.2501434819624-0.250143481962402
1043.219148740019080.780851259980919
1132.891707718023980.108292281976020
1233.48363970472623-0.48363970472623
1343.329698446991510.670301553008492
1422.74090124363621-0.740901243636214
1523.09687463549657-1.09687463549657
1633.14517408539141-0.145174085391414
1723.17870493528107-1.17870493528107
1843.011805768148720.98819423185128
1923.20420712378800-1.20420712378800
2013.06719803218777-2.06719803218777
2133.11282856880596-0.112828568805956
2243.184584224168760.815415775831238
2323.26337902096393-1.26337902096393
2432.924969007302160.0750309926978423
2533.17668771486428-0.176687714864279
2642.763656834493601.23634316550640
2733.05685254142867-0.0568525414286655
2833.17919763501235-0.179197635012346
2942.995053560654221.00494643934578
3043.451828470447810.548171529552189
3143.202917276449930.797082723550066
3232.874490854992270.125509145007726
3343.225736045867810.77426395413219
3433.01271348323839-0.0127134832383897
3523.27846609194192-1.27846609194192
3642.853426588449671.14657341155033
3733.35172676411432-0.351726764114318
3822.95180867917193-0.951808679171928
3943.213497440556480.786502559443522
4043.24242532190420.7575746780958
4143.035692460317960.964307539682044
4243.170793684451190.829206315548814
4323.21466318202999-1.21466318202999
4422.86688526657100-0.866885266570997
4533.16232801696500-0.162328016965005
4643.296450065621670.703549934378332
4753.26450987517341.7354901248266
4822.81912678290554-0.819126782905536
4933.12844322677926-0.128443226779263
5033.00809584973645-0.00809584973645293
5123.24913648651511-1.24913648651511
5222.85502209819634-0.855022098196342
5332.900603153783330.0993968462166744
5422.90250432593860-0.902504325938604
5543.121480643141470.878519356858532
5633.33799183006979-0.337991830069789
5733.24067766209889-0.240677662098888
5843.309861096328860.690138903671143
5912.69109065228993-1.69109065228993
6043.180487482350420.819512517649584
6123.05107713610150-1.05107713610150
6243.037224791504140.962775208495864
6343.113169118478600.886830881521404
6443.201828004816220.798171995183779
6523.26960554344661-1.26960554344661
6643.308453838437950.691546161562049
6722.89266507329246-0.89266507329246
6843.027509644722550.972490355277447
6943.489949392360430.510050607639567
7013.13179124663654-2.13179124663654
7143.310173454049190.689826545950815
7243.248962987574120.751037012425881
7332.829511852086350.170488147913645
7432.967554138321520.0324458616784802
7533.24382573672515-0.243825736725148
7633.32252262684340-0.322522626843396
7733.25991174554738-0.259911745547381
7833.22308067097283-0.223080670972829
7943.261201592885450.738798407114549
8013.15330726080800-2.15330726080800
8133.09213774643536-0.0921377464353552
8243.167610722560890.83238927743911
8333.21090499711961-0.210904997119611
8433.31676075989791-0.316760759897914
8542.928241187792981.07175881220702
8633.02567946162844-0.0256794616284401
8722.85578435853910-0.855784358539096
8833.02025798520799-0.0202579852079889
8943.290364147580610.709635852419388
9032.77568705359990.224312946400099
9143.120004388954070.879995611045933
9233.17494675037069-0.174946750370691
9343.303781243126180.696218756873818
9443.248055272484450.75194472751555
9532.922500669729850.077499330270149
9622.92130067146565-0.92130067146565
9713.32005428927109-2.32005428927109
9822.89371824312904-0.893718243129044
9922.91589201499877-0.915892014998768
10033.19976920182367-0.199769201823673
10143.187912728760740.812087271239258
10243.075671598129390.924328401870607
10332.926999766100630.0730002338993726
10433.28929622482925-0.289296224829254
10512.68277592032929-1.68277592032929
10633.35624051405572-0.356240514055724
10733.06020909021472-0.0602090902147237
10843.204817234072120.795182765927881
10923.10129789250089-1.10129789250089
11023.15813336846974-1.15813336846974
11133.10099344462538-0.100993444625378
11232.967527939133880.0324720608661216
11333.08974708184656-0.0897470818465619
11443.050217687509940.94978231249006
11542.987703994462731.01229600553727
11643.112406858135840.887593141864158
11742.956086481429341.04391351857066
11823.04138333820227-1.04138333820227
11933.05830259642842-0.0583025964284245
12043.060465271592130.939534728407873
12133.39558956638139-0.395589566381394
12243.054043654183720.945956345816282
12322.99112162970047-0.991121629700468
12443.05107713610150.948922863898498
12542.717181602198631.28281839780137
12633.04584269700373-0.0458426970037253
12743.128173666167790.871826333832212
12833.14703915574956-0.147039155749563
12933.35710850296545-0.357108502965445
13013.18631721901407-2.18631721901407
13143.204491437314250.795508562685747
13243.037286596383930.962713403616073
13323.24596706300650-1.24596706300650
13433.1777972201914-0.177797220191398
13542.933718988314591.06628101168541
13633.22945934351415-0.22945934351415
13743.053150592664680.94684940733532
13823.21167531506542-1.21167531506542
13953.31031890879611.6896810912039
14033.32300863126295-0.323008631262951
14142.889197797875911.11080220212409
14232.916225869359680.0837741306403156
14343.595596521831330.404403478168671
14422.99709212995336-0.997092129953358
14532.944722708097680.0552772919023161
14633.02371050770976-0.0237105077097607
14722.94302259636237-0.943022596362367
148NANA1.34684323230002
14943.140160940407000.859839059592996
15044.11157360873192-0.111573608731922
15132.163001058707240.836998941292765
15245.07865286912638-1.07865286912638
15321.116960197888340.883039802111663
15443.11558797501970.884412024980298
15544.67049564861749-0.670495648617487
1563NANA


Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
100.194386669777340.388773339554680.80561333022266
110.1003109832631910.2006219665263820.899689016736809
120.1176898406700920.2353796813401830.882310159329908
130.06741015207859160.1348203041571830.932589847921408
140.1224315166362030.2448630332724060.877568483363797
150.1150889047006590.2301778094013190.88491109529934
160.1262773921607980.2525547843215960.873722607839202
170.1681366691465570.3362733382931140.831863330853443
180.2353419865634160.4706839731268330.764658013436584
190.3789311004246720.7578622008493440.621068899575328
200.3507405830610220.7014811661220430.649259416938978
210.2781192572781670.5562385145563340.721880742721833
220.2362253859622520.4724507719245030.763774614037748
230.2175290819806770.4350581639613540.782470918019323
240.1652653987398010.3305307974796020.834734601260199
250.1273364309316090.2546728618632180.87266356906839
260.1113432974770910.2226865949541820.888656702522909
270.08526983503925690.1705396700785140.914730164960743
280.06101441733284230.1220288346656850.938985582667158
290.2425775810111130.4851551620222270.757422418988887
300.2086103878909280.4172207757818560.791389612109072
310.1724151563182890.3448303126365780.827584843681711
320.1430271163620980.2860542327241950.856972883637902
330.2079629725113210.4159259450226420.792037027488679
340.1655380413481130.3310760826962260.834461958651887
350.1969797083694770.3939594167389540.803020291630523
360.2194099723888270.4388199447776540.780590027611173
370.2064200064125630.4128400128251270.793579993587437
380.2393466532762380.4786933065524760.760653346723762
390.2254670388077300.4509340776154590.77453296119227
400.2118093441321320.4236186882642630.788190655867868
410.2777425898750890.5554851797501780.722257410124911
420.3107635783854490.6215271567708970.689236421614551
430.3276776169777390.6553552339554770.672322383022261
440.3686461698505860.7372923397011710.631353830149414
450.3239978964433650.647995792886730.676002103556635
460.2907242507752880.5814485015505760.709275749224712
470.4295587621969190.8591175243938370.570441237803081
480.411187571416490.822375142832980.58881242858351
490.3636970231866600.7273940463733210.63630297681334
500.3220523945152290.6441047890304570.677947605484772
510.3884212592904390.7768425185808790.61157874070956
520.3730021698746170.7460043397492340.626997830125383
530.3293425156756760.6586850313513520.670657484324324
540.3174274182176530.6348548364353060.682572581782347
550.3130127384699810.6260254769399630.686987261530019
560.2735007534949230.5470015069898450.726499246505077
570.2343850765705920.4687701531411830.765614923429408
580.2512196326605110.5024392653210220.748780367339489
590.3394183660751570.6788367321503150.660581633924843
600.3469203700321650.6938407400643310.653079629967835
610.356298474035420.712596948070840.64370152596458
620.3997912397024110.7995824794048220.600208760297589
630.4163215105987030.8326430211974050.583678489401297
640.4000524121961660.8001048243923320.599947587803834
650.4408577659793840.8817155319587680.559142234020616
660.4165686755664610.8331373511329210.583431324433539
670.4168663589961750.833732717992350.583133641003825
680.4205527357916210.8411054715832430.579447264208379
690.3883040510224340.7766081020448690.611695948977566
700.6156917766924180.7686164466151630.384308223307582
710.5973358621276590.8053282757446820.402664137872341
720.5862370809612440.8275258380775110.413762919038756
730.5408916391360810.9182167217278370.459108360863919
740.4936757018842910.9873514037685820.506324298115709
750.4498196414000810.8996392828001610.550180358599919
760.40860630460560.81721260921120.5913936953944
770.3664274696857940.7328549393715890.633572530314206
780.3250796049777790.6501592099555570.674920395022221
790.3141709103695350.6283418207390710.685829089630465
800.534764597187570.930470805624860.46523540281243
810.4888925992682150.977785198536430.511107400731785
820.4878531874885270.9757063749770540.512146812511473
830.4428404545604610.8856809091209210.55715954543954
840.4006634276827900.8013268553655790.59933657231721
850.4155018164846220.8310036329692450.584498183515378
860.3693978299623470.7387956599246930.630602170037653
870.3683992643366530.7367985286733060.631600735663347
880.3240171549036980.6480343098073950.675982845096302
890.3124985707834340.6249971415668690.687501429216566
900.2749254159059930.5498508318119870.725074584094007
910.2791214853337380.5582429706674760.720878514666262
920.2407590008998990.4815180017997980.7592409991001
930.2279055764872280.4558111529744560.772094423512772
940.2224374671053230.4448749342106470.777562532894677
950.1923918144684490.3847836289368970.807608185531551
960.1960361841209670.3920723682419340.803963815879033
970.4272456420510160.8544912841020320.572754357948984
980.4428581049309950.8857162098619910.557141895069005
990.458950058736140.917900117472280.54104994126386
1000.410709798684490.821419597368980.58929020131551
1010.4181133738707010.8362267477414020.581886626129299
1020.4241801821009550.848360364201910.575819817899045
1030.3838004644255380.7676009288510770.616199535574462
1040.3420266386474470.6840532772948930.657973361352553
1050.5394216272832610.9211567454334780.460578372716739
1060.4902483115139970.9804966230279940.509751688486003
1070.4386296011855850.877259202371170.561370398814415
1080.4330387834966160.8660775669932320.566961216503384
1090.4705392678508060.9410785357016120.529460732149194
1100.5240930879597940.951813824080410.475906912040205
1110.4744855838886220.9489711677772440.525514416111378
1120.4343585126460010.8687170252920020.565641487353999
1130.3866635904017830.7733271808035670.613336409598217
1140.396782243023640.793564486047280.60321775697636
1150.3984446833154950.796889366630990.601555316684505
1160.3897510402054130.7795020804108250.610248959794587
1170.3865615693268560.7731231386537120.613438430673144
1180.4127078431679740.8254156863359490.587292156832026
1190.368624338097130.737248676194260.63137566190287
1200.3472956476777090.6945912953554180.652704352322291
1210.2969288280241280.5938576560482570.703071171975872
1220.2850659880159710.5701319760319420.714934011984029
1230.3274914263055930.6549828526111860.672508573694407
1240.3171178926007310.6342357852014620.682882107399269
1250.3052667573048780.6105335146097550.694733242695122
1260.2519525450836170.5039050901672350.748047454916383
1270.2255241598889030.4510483197778050.774475840111097
1280.1799749035510050.359949807102010.820025096448995
1290.1778722248426160.3557444496852330.822127775157384
1300.3409911989924590.6819823979849180.659008801007541
1310.3530377841495280.7060755682990560.646962215850472
1320.3832688535057210.7665377070114430.616731146494279
1330.3764836456547380.7529672913094760.623516354345262
1340.3055894177643590.6111788355287180.694410582235641
1350.294600181988060.589200363976120.70539981801194
1360.2339572669201660.4679145338403330.766042733079834
1370.1837657771880060.3675315543760130.816234222811994
1380.2270099529355140.4540199058710280.772990047064486
1390.4019766594163570.8039533188327150.598023340583643
1400.3374834030852080.6749668061704160.662516596914792
1410.289290664081210.578581328162420.71070933591879
1420.2137153624455090.4274307248910170.786284637554491
1430.1651775655407860.3303551310815710.834822434459214
1440.2075936344904010.4151872689808030.792406365509599
1450.1288360895609950.257672179121990.871163910439005
1460.1137120650060300.2274241300120590.88628793499397


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/03/t1291394545usmxjjor8sh2nea/10coxd1291394578.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/03/t1291394545usmxjjor8sh2nea/10coxd1291394578.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/03/t1291394545usmxjjor8sh2nea/1nn011291394578.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/03/t1291394545usmxjjor8sh2nea/1nn011291394578.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/03/t1291394545usmxjjor8sh2nea/2nn011291394578.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/03/t1291394545usmxjjor8sh2nea/2nn011291394578.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/03/t1291394545usmxjjor8sh2nea/3ffz41291394578.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/03/t1291394545usmxjjor8sh2nea/3ffz41291394578.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/03/t1291394545usmxjjor8sh2nea/4ffz41291394578.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/03/t1291394545usmxjjor8sh2nea/4ffz41291394578.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/03/t1291394545usmxjjor8sh2nea/5ffz41291394578.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/03/t1291394545usmxjjor8sh2nea/5ffz41291394578.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/03/t1291394545usmxjjor8sh2nea/686hp1291394578.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/03/t1291394545usmxjjor8sh2nea/686hp1291394578.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/03/t1291394545usmxjjor8sh2nea/786hp1291394578.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/03/t1291394545usmxjjor8sh2nea/786hp1291394578.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/03/t1291394545usmxjjor8sh2nea/8jfgs1291394578.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/03/t1291394545usmxjjor8sh2nea/8jfgs1291394578.ps (open in new window)


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