Home » date » 2010 » Dec » 03 »

*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:02:12 +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/t12913920844a42e8ahwz9l2ab.htm/, Retrieved Fri, 03 Dec 2010 17:01:24 +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/t12913920844a42e8ahwz9l2ab.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 «
2 13 13 14 13 3 1 12 12 8 13 5 0 15 10 12 16 6 3 12 9 7 12 6 3 10 10 10 11 5 1 12 12 7 12 3 3 15 13 16 18 8 1 9 12 11 11 4 4 12 12 14 14 4 0 11 6 6 9 4 3 11 5 16 14 6 2 11 12 11 12 6 4 15 11 16 11 5 3 7 14 12 12 4 1 11 14 7 13 6 1 11 12 13 11 4 2 10 12 11 12 6 3 14 11 15 16 6 1 10 11 7 9 4 1 6 7 9 11 4 2 11 9 7 13 2 3 15 11 14 15 7 4 11 11 15 10 5 2 12 12 7 11 4 1 14 12 15 13 6 2 15 11 17 16 6 2 9 11 15 15 7 4 13 8 14 14 5 2 13 9 14 14 6 3 16 12 8 14 4 3 13 10 8 8 4 3 12 10 14 13 7 4 14 12 14 15 7 2 11 8 8 13 4 2 9 12 11 11 4 4 16 11 16 15 6 3 12 12 10 15 6 4 10 7 8 9 5 2 13 11 14 13 6 5 16 11 16 16 7 3 14 12 13 13 6 1 15 9 5 11 3 1 5 15 8 12 3 1 8 11 10 12 4 2 11 11 8 12 6 3 16 11 13 14 7 9 17 11 15 14 5 0 9 15 6 8 4 0 9 11 12 13 5 2 13 12 16 16 6 2 10 12 5 13 6 3 6 9 15 11 6 1 12 12 12 14 5 2 8 12 8 13 4 0 14 13 13 13 5 5 12 11 14 13 5 2 11 9 12 12 4 4 16 9 16 16 6 3 8 11 10 15 2 0 15 11 15 15 8 0 7 12 8 12 3 4 16 12 16 14 6 1 14 9 19 12 6 1 16 etc...
 
Output produced by software:

Enter (or paste) a matrix (table) containing all data (time) series. Every column represents a different variable and must be delimited by a space or Tab. Every row represents a period in time (or category) and must be delimited by hard returns. The easiest way to enter data is to copy and paste a block of spreadsheet cells. Please, do not use commas or spaces to seperate groups of digits!


Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time7 seconds
R Server'Sir Ronald Aylmer Fisher' @ 193.190.124.24
R Framework
error message
The field 'Names of X columns' contains a hard return which cannot be interpreted.
Please, resubmit your request without hard returns in the 'Names of X columns'.


Multiple Linear Regression - Estimated Regression Equation
aantalVrienden[t] = + 1.23901678587798 + 0.0963160831939473Popularity[t] -0.064095320981191FindingFriends[t] + 0.128730344656522KnowingPeople[t] -0.0742946234905387Liked[t] + 0.0388673886095459`Celebrity `[t] -0.000136327489515622t + e[t]


Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STAT
H0: parameter = 0
2-tail p-value1-tail p-value
(Intercept)1.239016785877980.9565071.29540.1972010.0986
Popularity0.09631608319394730.0545921.76430.0797330.039867
FindingFriends-0.0640953209811910.064855-0.98830.3246170.162309
KnowingPeople0.1287303446565220.0432872.97390.0034310.001715
Liked-0.07429462349053870.068054-1.09170.276730.138365
`Celebrity `0.03886738860954590.110140.35290.7246680.362334
t-0.0001363274895156220.002557-0.05330.9575520.478776


Multiple Linear Regression - Regression Statistics
Multiple R0.404585261523168
R-squared0.163689233841770
Adjusted R-squared0.130012290238083
F-TEST (value)4.86057273391784
F-TEST (DF numerator)6
F-TEST (DF denominator)149
p-value0.000145740995116217
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation1.41229152671296
Sum Squared Residuals297.190536107357


Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolation
Forecast
Residuals
Prediction Error
122.61074725279724-0.610747252797238
211.88374287237493-0.883742872374926
302.63165033319365-2.63165033319365
432.060187847783030.939812152216968
532.224942301774990.775057698225012
611.75102706403179-0.751027064031788
732.882885969156120.117114030843882
812.08988955019709-1.08988955019709
942.542008635787361.45799136421264
1002.17175851119156-2.17175851119156
1133.22928261101486-0.229282611014857
1222.28541656035547-0.285416560355473
1343.413718844786540.586281155213461
1431.82268449807571.1773155019243
1511.56760093380792-0.567600933807918
1612.5388917859819-1.5388917859819
1722.18841883971395-0.188418839713948
1832.855385050645340.144614949354656
1911.88246922034254-0.882469220342544
2011.86232128633397-0.86232128633397
2121.731790019338600.268209980661404
2232.935587491324790.064412508675208
2342.972655515949611.02734448405039
2421.861735181320590.138264818679408
2513.01321930770916-2.01321930770916
2623.20807120323621-1.20807120323621
2722.48573969937005-0.485739699370052
2842.930983169214821.06901683078518
2922.90561890935366-0.905618909353663
3032.152028023344190.847971976655807
3132.436901829178450.56309817082155
3232.857960534810060.142039465189937
3342.773676484764981.22632351523502
3422.00057820483170-0.000578204831697277
3522.08620870798017-0.086208707980166
3643.248588290369020.751411709630982
3732.026710241183390.973289758816608
3842.303858015232581.69614198476742
3922.85035961598666-0.850359615986663
4053.212615745529961.78738425447004
4132.753577378563870.246422621436133
4212.04418742111214-1.04418742111214
4311.00821474627503-0.00821474627502893
4411.84973603021471-0.849736030214708
4521.958822040213080.0411779597869168
4632.974195993604380.0258040063956187
4793.250101661402765.74989833859724
4801.47138263486190-1.47138263486190
4902.16740393039313-2.16740393039313
5022.81934151146223-0.819341511462228
5121.337107013640750.662892986359253
5232.579885009865310.420114990134689
5312.31741692554518-1.31741692554518
5421.452522121534780.547477878465221
5502.64870608411991-2.64870608411991
5652.712858576861402.28714142313860
5722.52256335370827-0.522563353708273
5843.299485104071520.700514895928482
5931.547072470181271.45292752981873
6003.09800477998927-3.09800477998927
6101.39067898079522-1.39067898079522
6243.255243078150960.74475692184904
6313.78954082816776-2.78954082816776
6412.98731043134954-1.98731043134954
6541.595325888074672.40467411192533
6622.71130180271643-0.71130180271643
6742.79283992705821.2071600729418
6811.91662562009486-0.91662562009486
6942.846076292051381.15392370794862
7021.034902822237440.965097177762564
7152.999761914100512.00023808589949
7242.614167754585391.38583224541461
7342.153739268885591.84626073111441
7442.676254098409521.32374590159048
7542.55577037483831.4442296251617
7632.813634439355970.186365560644031
7732.656099681109730.343900318890267
7832.773414990379110.226585009620888
7921.952715809970030.0472841900299665
8011.06973922086842-0.0697392208684202
8111.29808947495793-0.298089474957927
8253.206854500871411.79314549912859
8342.589063074513791.41093692548621
8422.26860815126924-0.268608151269237
8531.579112586240961.42088741375904
8622.43627943300060-0.436279433000595
8721.831318589027520.168681410972482
8822.43009710017103-0.430097100171026
8923.06163702133074-1.06163702133074
9031.907366787428361.09263321257164
9122.20178142062810-0.201781420628095
9232.276866417822890.723133582177106
9343.141295067604440.858704932395556
9433.35704978074543-0.357049780745433
9532.395645394291270.604354605708731
9601.78801778034409-1.78801778034409
9711.32995004298457-0.329950042984567
9821.437714528220450.562285471779551
9922.65437712758078-0.654377127580781
10032.391757284175450.608242715824546
10143.333030113326030.666969886673968
10243.085632399032820.91436760096718
10312.76038269342491-1.76038269342491
10421.437786216024110.56221378397589
10520.8187234433825131.18127655661749
10632.149280643542070.85071935645793
10732.01712713510680.9828728648932
10832.995144977298570.00485502270143094
10911.71751342878676-0.717513428786761
11011.74550548470330-0.745505484703303
11112.34138448992171-1.34138448992171
11213.10397532226772-2.10397532226772
11301.68243148179777-1.68243148179777
11412.59503622484815-1.59503622484815
11532.527058401015070.472941598984934
11633.05451602538526-0.0545160253852636
11702.99028437691456-2.99028437691456
11821.587596318535100.412403681464903
11952.926109900204152.07389009979585
12022.67473232948825-0.674732329488248
12132.343573891139110.656426108860891
12233.22824844174485-0.22824844174485
12351.710235813886453.28976418611355
12442.765016858581441.23498314141856
12543.117924101654950.882075898345047
12601.53508295087141-1.53508295087141
12732.918066632257420.0819333677425846
12802.80654540990116-2.80654540990116
12922.20966054775976-0.209660547759764
13001.72446910558237-1.72446910558237
13162.917521322299353.08247867770065
13232.772852636536560.227147363463439
13311.41150054577932-0.411500545779323
13462.174437581569663.82556241843034
13522.76278405425281-0.762784054252807
13611.95533794482681-0.955337944826809
13732.987751326374060.0122486736259372
13812.02383348738512-1.02383348738512
13923.33066914289304-1.33066914289304
14042.691207765232741.30879223476726
14112.91986404095607-1.91986404095607
14222.69792794009482-0.697927940094825
14302.66409975479303-2.66409975479303
14452.345966343187572.65403365681243
14522.08284134207769-0.0828413420776901
14611.13133023649905-0.131330236499050
14711.40441643012883-0.404416430128833
14842.27031148379831.7296885162017
14933.21116182435034-0.211161824350344
15002.73176503417605-2.73176503417605
15132.616497636457420.383502363542584
15233.0045214010665-0.0045214010665006
15301.80246207239493-1.80246207239493
15422.58904342257338-0.589043422573384
15553.005156333887341.99484366611266
15622.1221380046211-0.122138004621100


Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
100.8684983617365350.263003276526930.131501638263465
110.7765731872168130.4468536255663740.223426812783187
120.6784458806340210.6431082387319580.321554119365979
130.5889605430914860.8220789138170270.411039456908514
140.4762138132511860.9524276265023710.523786186748814
150.3743755348532990.7487510697065990.6256244651467
160.3984786079772160.7969572159544310.601521392022784
170.3072861261372390.6145722522744780.692713873862761
180.2617947123216110.5235894246432210.73820528767839
190.1939744243903190.3879488487806380.806025575609681
200.1411297397580820.2822594795161640.858870260241918
210.1614401189535990.3228802379071970.838559881046401
220.1159307197979950.2318614395959890.884069280202005
230.09157820969532820.1831564193906560.908421790304672
240.06564898170168640.1312979634033730.934351018298314
250.1228925561526860.2457851123053720.877107443847314
260.1073604815451010.2147209630902020.892639518454899
270.08298383345132590.1659676669026520.917016166548674
280.09413146667383240.1882629333476650.905868533326168
290.073485939010960.146971878021920.92651406098904
300.0716722632890310.1433445265780620.928327736710969
310.05686066653492120.1137213330698420.943139333465079
320.04046413927842020.08092827855684040.95953586072158
330.03656829547624610.07313659095249230.963431704523754
340.02528917286926450.05057834573852910.974710827130735
350.01815814198444500.03631628396888990.981841858015555
360.01273746252925750.0254749250585150.987262537470743
370.009289592093708440.01857918418741690.990710407906292
380.01093333492331270.02186666984662540.989066665076687
390.01139785620266640.02279571240533270.988602143797334
400.01185357749075750.02370715498151510.988146422509242
410.00820990649355340.01641981298710680.991790093506447
420.00855836038483420.01711672076966840.991441639615166
430.006197254744844870.01239450948968970.993802745255155
440.00575931828965880.01151863657931760.994240681710341
450.003846400327288770.007692800654577530.996153599672711
460.002609291955771620.005218583911543240.997390708044228
470.1721991653429150.3443983306858310.827800834657085
480.1932774237562230.3865548475124460.806722576243777
490.2819746968722110.5639493937444220.718025303127789
500.2799318287669660.5598636575339320.720068171233034
510.2517018823062070.5034037646124150.748298117693793
520.2150853566815310.4301707133630620.784914643318469
530.2325417456712470.4650834913424940.767458254328753
540.2020552495867430.4041104991734860.797944750413257
550.3649562596612580.7299125193225150.635043740338742
560.4071880184093810.8143760368187620.592811981590619
570.3758020324434560.7516040648869120.624197967556544
580.3333210908678960.6666421817357910.666678909132104
590.324924870498370.649849740996740.67507512950163
600.5545288142901280.8909423714197450.445471185709872
610.5665556453961250.866888709207750.433444354603875
620.521553001960410.956893996079180.47844699803959
630.691526612544540.6169467749109190.308473387455459
640.7509981504607930.4980036990784150.249001849539207
650.8066339053031160.3867321893937680.193366094696884
660.7894401298792520.4211197402414960.210559870120748
670.7751485104330770.4497029791338450.224851489566923
680.7645798771622910.4708402456754170.235420122837709
690.7428896778312660.5142206443374680.257110322168734
700.717476187330590.5650476253388190.282523812669410
710.730443092947340.5391138141053190.269556907052659
720.7102313861650920.5795372276698150.289768613834908
730.7127072748002850.574585450399430.287292725199715
740.6943482066825060.6113035866349880.305651793317494
750.6771496611342450.645700677731510.322850338865755
760.6340669015036440.7318661969927110.365933098496356
770.5884783049000570.8230433901998860.411521695099943
780.5443347050266340.9113305899467320.455665294973366
790.5011902477725250.997619504454950.498809752227475
800.4592967234102640.9185934468205280.540703276589736
810.4236415761631330.8472831523262670.576358423836867
820.4478604173812020.8957208347624040.552139582618798
830.4331429268066490.8662858536132990.56685707319335
840.3948796403909830.7897592807819670.605120359609017
850.3830924544832860.7661849089665710.616907545516714
860.3551372295013160.7102744590026320.644862770498684
870.3122761304883060.6245522609766130.687723869511694
880.2876516650146360.5753033300292720.712348334985364
890.2803874572509660.5607749145019320.719612542749034
900.2551249389747640.5102498779495280.744875061025236
910.2220800434183580.4441600868367160.777919956581642
920.1904658816043310.3809317632086630.809534118395669
930.1662695888421200.3325391776842410.83373041115788
940.142898047366670.285796094733340.85710195263333
950.1202237288755310.2404474577510630.879776271124469
960.1498070315209250.2996140630418500.850192968479075
970.1247237474134190.2494474948268390.87527625258658
980.1016197989873130.2032395979746250.898380201012687
990.08784278547941470.1756855709588290.912157214520585
1000.07066588110855840.1413317622171170.929334118891442
1010.05906123510885330.1181224702177070.940938764891147
1020.05018812239662850.1003762447932570.949811877603371
1030.06598090726937310.1319618145387460.934019092730627
1040.05810292642379640.1162058528475930.941897073576204
1050.052736311840770.105472623681540.94726368815923
1060.04267574404005030.08535148808010050.95732425595995
1070.03990464550906130.07980929101812260.960095354490939
1080.03020654512820260.06041309025640520.969793454871797
1090.02449505094773740.04899010189547480.975504949052263
1100.02046013687301130.04092027374602260.979539863126989
1110.01831808267300650.0366361653460130.981681917326994
1120.02505437667495110.05010875334990210.974945623325049
1130.0285726550492320.0571453100984640.971427344950768
1140.03277455217643380.06554910435286750.967225447823566
1150.02433252048747190.04866504097494380.975667479512528
1160.01769760574863030.03539521149726060.98230239425137
1170.0510266858924640.1020533717849280.948973314107536
1180.03854275082370560.07708550164741120.961457249176294
1190.04073695896540440.08147391793080890.959263041034596
1200.03134227666561890.06268455333123780.968657723334381
1210.02362030745940150.0472406149188030.976379692540599
1220.017060030448040.034120060896080.98293996955196
1230.0569768740859640.1139537481719280.943023125914036
1240.04712294314706130.09424588629412260.952877056852939
1250.03923037460697090.07846074921394180.96076962539303
1260.03458002633641070.06916005267282150.96541997366359
1270.02449352379641530.04898704759283060.975506476203585
1280.07886598763399430.1577319752679890.921134012366006
1290.06148521719046760.1229704343809350.938514782809532
1300.1110229443375450.2220458886750890.888977055662455
1310.1928868851325450.385773770265090.807113114867455
1320.1487643510389750.297528702077950.851235648961025
1330.1170436114476560.2340872228953110.882956388552344
1340.6514763100380780.6970473799238430.348523689961922
1350.5796353987797350.8407292024405290.420364601220264
1360.5094050247372910.981189950525420.49059497526271
1370.4515585286863050.903117057372610.548441471313695
1380.4340807067798780.8681614135597550.565919293220122
1390.3709269243291840.7418538486583670.629073075670816
1400.6691506096447660.6616987807104670.330849390355234
1410.6501563124107360.6996873751785290.349843687589264
1420.5416382652450330.9167234695099340.458361734754967
1430.5028178867940390.9943642264119230.497182113205961
1440.3965459038075070.7930918076150140.603454096192493
1450.2715902935053610.5431805870107220.728409706494639
1460.394832238478930.789664476957860.60516776152107


Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level20.0145985401459854NOK
5% type I error level200.145985401459854NOK
10% type I error level350.255474452554745NOK
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Dec/03/t12913920844a42e8ahwz9l2ab/10s0n21291392121.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/03/t12913920844a42e8ahwz9l2ab/10s0n21291392121.ps (open in new window)


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


http://www.freestatistics.org/blog/date/2010/Dec/03/t12913920844a42e8ahwz9l2ab/24zqq1291392121.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/03/t12913920844a42e8ahwz9l2ab/24zqq1291392121.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/03/t12913920844a42e8ahwz9l2ab/34zqq1291392121.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/03/t12913920844a42e8ahwz9l2ab/34zqq1291392121.ps (open in new window)


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


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


http://www.freestatistics.org/blog/date/2010/Dec/03/t12913920844a42e8ahwz9l2ab/6x8pb1291392121.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/03/t12913920844a42e8ahwz9l2ab/6x8pb1291392121.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/03/t12913920844a42e8ahwz9l2ab/770ow1291392121.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/03/t12913920844a42e8ahwz9l2ab/770ow1291392121.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/03/t12913920844a42e8ahwz9l2ab/870ow1291392121.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/03/t12913920844a42e8ahwz9l2ab/870ow1291392121.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/03/t12913920844a42e8ahwz9l2ab/909oh1291392121.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/03/t12913920844a42e8ahwz9l2ab/909oh1291392121.ps (open in new window)


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