Home » date » 2010 » Dec » 12 »

MR geslacht

*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, 12 Dec 2010 20:16:35 +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/12/t1292184868kn0y233bma23v3x.htm/, Retrieved Sun, 12 Dec 2010 21:14:28 +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/12/t1292184868kn0y233bma23v3x.htm/},
    year = {2010},
}
@Manual{R,
    title = {R: A Language and Environment for Statistical Computing},
    author = {{R Development Core Team}},
    organization = {R Foundation for Statistical Computing},
    address = {Vienna, Austria},
    year = {2010},
    note = {{ISBN} 3-900051-07-0},
    url = {http://www.R-project.org},
}
 
Original text written by user:
 
IsPrivate?
No (this computation is public)
 
User-defined keywords:
 
Dataseries X:
» Textbox « » Textfile « » CSV «
1 26 9 15 6 25 25 13 1 20 9 15 6 25 24 16 1 21 9 14 13 19 21 19 0 31 14 10 8 18 23 15 1 21 8 10 7 18 17 14 1 18 8 12 9 22 19 13 1 26 11 18 5 29 18 19 1 22 10 12 8 26 27 15 1 22 9 14 9 25 23 14 1 29 15 18 11 23 23 15 0 15 14 9 8 23 29 16 1 16 11 11 11 23 21 16 0 24 14 11 12 24 26 16 1 17 6 17 8 30 25 17 0 19 20 8 7 19 25 15 0 22 9 16 9 24 23 15 1 31 10 21 12 32 26 20 0 28 8 24 20 30 20 18 1 38 11 21 7 29 29 16 0 26 14 14 8 17 24 16 1 25 11 7 8 25 23 19 1 25 16 18 16 26 24 16 0 29 14 18 10 26 30 17 1 28 11 13 6 25 22 17 0 15 11 11 8 23 22 16 1 18 12 13 9 21 13 15 0 21 9 13 9 19 24 14 1 25 7 18 11 35 17 15 0 23 13 14 12 19 24 12 1 23 10 12 8 20 21 14 1 19 9 9 7 21 23 16 0 18 9 12 8 21 24 14 0 18 13 8 9 24 24 7 0 26 16 5 4 23 24 10 0 18 12 10 8 19 23 14 1 18 6 11 8 17 26 16 0 28 14 11 8 24 24 16 0 17 14 12 6 15 21 16 1 29 10 12 8 25 23 14 0 12 4 15 4 27 28 20 1 28 12 16 14 27 22 14 1 20 14 14 10 18 24 11 1 17 9 17 9 25 21 15 1 17 9 13 6 22 23 16 0 20 10 10 8 26 23 14 1 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


Multiple Linear Regression - Estimated Regression Equation
Gender[t] = + 0.597949944197336 + 0.00437351222682402Concern_mistakes[t] -0.0173002748928004Doubts_actions[t] + 0.0141160678171409Parental_expectations[t] + 0.006185694746909Parental_criticism[t] + 0.0199299315322437Personal_standards[t] -0.0432498272067169Organization[t] + 0.0262634935492487PLC[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.5979499441973360.4115351.4530.1485340.074267
Concern_mistakes0.004373512226824020.0085980.50860.6118230.305912
Doubts_actions-0.01730027489280040.016643-1.03950.3004080.150204
Parental_expectations0.01411606781714090.0141810.99540.3212870.160643
Parental_criticism0.0061856947469090.0177730.3480.7283490.364174
Personal_standards0.01992993153224370.0114921.73420.0851520.042576
Organization-0.04324982720671690.011566-3.73940.0002710.000135
PLC0.02626349354924870.0186691.40680.1617580.080879


Multiple Linear Regression - Regression Statistics
Multiple R0.424855834673263
R-squared0.180502480255915
Adjusted R-squared0.138322460857322
F-TEST (value)4.27933611291648
F-TEST (DF numerator)7
F-TEST (DF denominator)136
p-value0.000264199339875648
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation0.455533348009159
Sum Squared Residuals28.2214458361869


Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolation
Forecast
Residuals
Prediction Error
110.5632419980765280.436758001923472
210.6590412325700460.340958767429954
310.7815589132825270.218441086717473
400.439916355940984-0.439916355940984
510.727032657973690.272967342026310
610.721472224587610.27852777541239
711.10485343486693-0.104853434866925
810.4844281245361340.515571875463866
910.66295211355550.3370478864445
1010.6450043410336080.354995658966392
1100.222238280464825-0.222238280464825
1210.6713004548987940.328699545101206
1300.464254218280553-0.464254218280553
1410.8210883696998260.178911630300174
1500.182645006599913-0.182645006599913
1600.697517811206787-0.697517811206787
1710.9697240080658760.0302759919341237
1801.25014989567502-1.25014989567502
1910.6575165946124220.342483405387578
2000.437596800885716-0.437596800885716
2110.667791398729720.33220860127028
2210.683941951907320.316058048092680
2300.46568691242771-0.46568691242771
2410.7439597929274380.256040207072562
2500.605120031224526-0.605120031224526
2610.9584832116401040.0415167883598956
2700.481633117111356-0.481633117111356
2811.26457063289594-0.264570632895941
2900.401325206953173-0.401325206953173
3010.6024575172605480.397542482739452
3110.5396871092650280.460312890734972
3200.488070680931322-0.488070680931322
3300.244536344590455-0.244536344590455
3400.213207489656181-0.213207489656181
3500.411327684760868-0.411327684760868
3610.4121630443486710.587836955651329
3700.543505142613647-0.543505142613647
3800.447521284271863-0.447521284271863
3910.6418485938692770.358151406130723
4000.670097648160253-0.670097648160253
4110.7795626618780740.220437338121926
4210.312339580804590.68766041919541
4310.7961959038354850.203804096164515
4410.6011485928652780.398851407134722
4500.594184779725823-0.594184779725823
4610.8129485477323150.187051452267685
4700.427491112264492-0.427491112264492
4800.703362344690401-0.703362344690401
4910.452421556519720.54757844348028
5000.726305289335162-0.726305289335162
5110.8901877933991890.109812206600811
5210.6620170933251410.337982906674859
5310.5619504675351030.438049532464897
5400.582481678983905-0.582481678983905
5510.7104849363648890.289515063635111
5600.255725157830062-0.255725157830062
5700.650969543247306-0.650969543247306
5810.3120454694351210.68795453056488
5910.7057792663129450.294220733687055
6010.9427740667148470.0572259332851525
6100.459264310678517-0.459264310678517
6210.7638938383968060.236106161603194
6300.340975934073361-0.340975934073361
6410.4569287654085430.543071234591457
6500.558949817939918-0.558949817939918
6600.150740781722405-0.150740781722405
6710.5873801474123930.412619852587607
6810.4370568382050210.562943161794979
6900.353091636185009-0.353091636185009
7000.597952402737545-0.597952402737545
7110.5296554697081480.470344530291852
7210.7586938704643130.241306129535687
7300.664098903192731-0.664098903192731
7400.780016463815995-0.780016463815995
7500.398280480114844-0.398280480114844
7600.518530994510164-0.518530994510164
7710.7694938919010170.230506108098983
7800.723582245908354-0.723582245908354
7910.4476547215147740.552345278485226
8010.4712155691047750.528784430895225
8100.414992418804905-0.414992418804905
8210.3938264837685170.606173516231483
8310.5015303281524740.498469671847526
8410.7441824686528830.255817531347117
8510.5370979738029830.462902026197017
8610.7238000013671210.276199998632879
8710.6710372261401110.328962773859889
8810.6971008961665230.302899103833477
8910.4663041518809090.533695848119091
9010.637544679731790.362455320268210
9100.620567465586434-0.620567465586434
9200.587068923098296-0.587068923098296
9310.579484931913750.420515068086249
9400.817833910378806-0.817833910378806
9510.8202543284646190.179745671535381
9600.277061828745541-0.277061828745541
9710.6952955799981290.304704420001871
9800.650094385662007-0.650094385662007
9910.3653786707808040.634621329219196
10000.684208630877617-0.684208630877617
10111.2244021243924-0.224402124392400
10210.763697496361030.236302503638970
10310.8853743755565750.114625624443425
10410.9964517165229520.00354828347704763
10500.307060546042081-0.307060546042081
10610.5940632160842990.405936783915701
10700.509438199494678-0.509438199494678
10810.5081695230592860.491830476940714
10910.5975128091583340.402487190841666
11010.5133741440794330.486625855920567
11110.7690648942526390.230935105747361
11210.6827759651794480.317224034820552
11310.8913902623931370.108609737606863
11410.6232517580985380.376748241901462
11500.559710125442704-0.559710125442704
11610.3499253248363560.650074675163644
11700.432762613857539-0.432762613857539
11810.5379959167017220.462004083298278
11910.735900687724240.264099312275760
12010.6435422919177780.356457708082222
12100.399874907176162-0.399874907176162
12200.0737521932105159-0.0737521932105159
12310.6788637496902440.321136250309756
12400.518987979009612-0.518987979009612
12510.6484301541808190.351569845819181
12600.483782758550231-0.483782758550231
12700.602310815441038-0.602310815441038
12810.6830309567644370.316969043235563
12910.7245997768145060.275400223185494
13000.34306676049017-0.34306676049017
13100.211776615261537-0.211776615261537
13210.5712043845026370.428795615497363
13300.549466299914101-0.549466299914101
13410.6842567283944370.315743271605563
13511.10561751359219-0.105617513592191
13600.420154639207281-0.420154639207281
13710.8491895834971660.150810416502834
13800.605120031224526-0.605120031224526
13910.5561651419453240.443834858054676
14010.5853096132303410.414690386769659
14110.7714165061976610.228583493802339
14210.7441824686528830.255817531347117
14310.735900687724240.264099312275760
14410.5447099020453850.455290097954615


Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
110.1529731219688940.3059462439377890.847026878031106
120.08668853537566630.1733770707513330.913311464624334
130.09559979562839770.1911995912567950.904400204371602
140.1056229649749020.2112459299498030.894377035025098
150.05860418837693780.1172083767538760.941395811623062
160.4888182732308760.9776365464617520.511181726769124
170.3905457667521230.7810915335042460.609454233247877
180.6559938259928730.6880123480142540.344006174007127
190.5842923860506630.8314152278986740.415707613949337
200.5757178299719580.8485643400560840.424282170028042
210.4976709900926520.9953419801853040.502329009907348
220.6482734674881430.7034530650237130.351726532511857
230.6173779447850540.7652441104298930.382622055214946
240.5467704509676740.9064590980646530.453229549032326
250.6241141810402790.7517716379194430.375885818959721
260.5540619486962980.8918761026074040.445938051303702
270.5401511307326970.9196977385346060.459848869267303
280.5480693625424320.9038612749151360.451930637457568
290.5021724223183140.9956551553633720.497827577681686
300.4782542193070620.9565084386141250.521745780692938
310.4484012870592770.8968025741185530.551598712940723
320.4662364488440210.9324728976880430.533763551155979
330.4235007136920240.8470014273840480.576499286307976
340.4041363169760680.8082726339521360.595863683023932
350.3847184340985150.769436868197030.615281565901485
360.3918844209533050.783768841906610.608115579046695
370.4167869938740580.8335739877481170.583213006125942
380.4040885054948210.8081770109896420.595911494505179
390.3721539471114710.7443078942229420.627846052888529
400.4920791964482880.9841583928965760.507920803551712
410.4606410919521050.921282183904210.539358908047895
420.5840562208260280.8318875583479430.415943779173972
430.5487545615808880.9024908768382250.451245438419113
440.53501749981940.92996500036120.4649825001806
450.5717409925654010.8565180148691990.428259007434599
460.5266340409982260.9467319180035470.473365959001774
470.5279382623003660.9441234753992690.472061737699634
480.5923868938288910.8152262123422180.407613106171109
490.631362682174470.737274635651060.36863731782553
500.6773701189596430.6452597620807150.322629881040357
510.6341273807683160.7317452384633690.365872619231685
520.6036891671760390.7926216656479230.396310832823961
530.605505409350260.788989181299480.39449459064974
540.6303731865765550.7392536268468890.369626813423445
550.5973550336952260.8052899326095490.402644966304774
560.5608791392024290.8782417215951420.439120860797571
570.597820251603770.8043594967924590.402179748396229
580.6596445430771120.6807109138457760.340355456922888
590.6242352426277040.7515295147445920.375764757372296
600.5752089885156720.8495820229686560.424791011484328
610.6012312331579140.7975375336841710.398768766842086
620.5647459768579380.8705080462841230.435254023142062
630.5434494078248720.9131011843502570.456550592175128
640.5562235500623210.8875528998753580.443776449937679
650.5765350980990190.8469298038019620.423464901900981
660.53912894905580.92174210188840.4608710509442
670.5418434031647990.9163131936704010.458156596835201
680.5653058361739940.8693883276520120.434694163826006
690.546083767413330.907832465173340.45391623258667
700.5812164247453670.8375671505092670.418783575254633
710.5802495850781830.8395008298436330.419750414921817
720.5453990815088920.9092018369822170.454600918491108
730.602093577305160.7958128453896810.397906422694841
740.6906854985638470.6186290028723050.309314501436153
750.6812962325533330.6374075348933350.318703767446667
760.6999382383827260.6001235232345490.300061761617274
770.6657345125746470.6685309748507060.334265487425353
780.729325352238850.54134929552230.27067464776115
790.7426747414103620.5146505171792760.257325258589638
800.753660112918480.4926797741630410.246339887081520
810.7485593994124180.5028812011751650.251440600587582
820.7760236565312930.4479526869374140.223976343468707
830.7833033304896440.4333933390207110.216696669510356
840.7600342039087630.4799315921824740.239965796091237
850.7532026707717720.4935946584564570.246797329228228
860.7240266407596720.5519467184806550.275973359240328
870.704759945298620.5904801094027590.295240054701379
880.6851102529292420.6297794941415160.314889747070758
890.7060208396188930.5879583207622140.293979160381107
900.6921268786856450.615746242628710.307873121314355
910.7685591850096430.4628816299807150.231440814990357
920.7949088271662760.4101823456674480.205091172833724
930.8118155933039610.3763688133920770.188184406696039
940.862375989096180.2752480218076410.137624010903821
950.834424633510580.3311507329788410.165575366489421
960.813622237148720.3727555257025610.186377762851281
970.7944117866450430.4111764267099150.205588213354957
980.8425508880656170.3148982238687660.157449111934383
990.8781840474689980.2436319050620050.121815952531002
1000.9409640697713250.1180718604573510.0590359302286753
1010.9309357834520050.1381284330959900.0690642165479951
1020.9158712304544510.1682575390910980.0841287695455489
1030.8925874474819880.2148251050360240.107412552518012
1040.8743866906394620.2512266187210750.125613309360538
1050.847173861840630.3056522763187390.152826138159370
1060.8396340192335670.3207319615328660.160365980766433
1070.8449338008381740.3101323983236520.155066199161826
1080.8369865744934350.3260268510131290.163013425506565
1090.8376167303579920.3247665392840160.162383269642008
1100.8748150108117150.2503699783765700.125184989188285
1110.8402657356668370.3194685286663250.159734264333163
1120.8180669321624710.3638661356750580.181933067837529
1130.7832037597469620.4335924805060760.216796240253038
1140.748183576317140.5036328473657210.251816423682861
1150.8099453944712110.3801092110575780.190054605528789
1160.8914160857127680.2171678285744650.108583914287232
1170.8618267818027360.2763464363945290.138173218197264
1180.8926671559987930.2146656880024150.107332844001207
1190.85695943632530.28608112734940.1430405636747
1200.8770195100798850.2459609798402300.122980489920115
1210.8372019157533480.3255961684933040.162798084246652
1220.7941851803809430.4116296392381150.205814819619057
1230.7886207906917470.4227584186165070.211379209308253
1240.760545112598260.4789097748034790.239454887401740
1250.6870178471316260.6259643057367470.312982152868374
1260.6506232293315490.6987535413369010.349376770668451
1270.6613534643057420.6772930713885160.338646535694258
1280.6215044920925290.7569910158149420.378495507907471
1290.5125377333319650.974924533336070.487462266668035
1300.4389633151270230.8779266302540470.561036684872977
1310.3463554728918200.6927109457836390.65364452710818
1320.3027526256360180.6055052512720370.697247374363982
1330.5416877056882980.9166245886234030.458312294311702


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/12/t1292184868kn0y233bma23v3x/10939l1292184984.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/12/t1292184868kn0y233bma23v3x/10939l1292184984.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/12/t1292184868kn0y233bma23v3x/122c91292184984.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/12/t1292184868kn0y233bma23v3x/122c91292184984.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/12/t1292184868kn0y233bma23v3x/222c91292184984.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/12/t1292184868kn0y233bma23v3x/222c91292184984.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/12/t1292184868kn0y233bma23v3x/3vbbu1292184984.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/12/t1292184868kn0y233bma23v3x/3vbbu1292184984.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/12/t1292184868kn0y233bma23v3x/4vbbu1292184984.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/12/t1292184868kn0y233bma23v3x/4vbbu1292184984.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/12/t1292184868kn0y233bma23v3x/5vbbu1292184984.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/12/t1292184868kn0y233bma23v3x/5vbbu1292184984.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/12/t1292184868kn0y233bma23v3x/66lsf1292184984.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/12/t1292184868kn0y233bma23v3x/66lsf1292184984.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/12/t1292184868kn0y233bma23v3x/76lsf1292184984.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/12/t1292184868kn0y233bma23v3x/76lsf1292184984.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/12/t1292184868kn0y233bma23v3x/8ycsi1292184984.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/12/t1292184868kn0y233bma23v3x/8ycsi1292184984.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/12/t1292184868kn0y233bma23v3x/9ycsi1292184984.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/12/t1292184868kn0y233bma23v3x/9ycsi1292184984.ps (open in new window)


 
Parameters (Session):
par1 = 6 ; par2 = quantiles ; par3 = 2 ; par4 = no ;
 
Parameters (R input):
par1 = 1 ; 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