Home » date » 2010 » Nov » 23 »

ws 7 deterministische trend

*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: Tue, 23 Nov 2010 15:23:13 +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/Nov/23/t12905258211bk6hwg42fb95hb.htm/, Retrieved Tue, 23 Nov 2010 16:23:57 +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/Nov/23/t12905258211bk6hwg42fb95hb.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 «
13 13 14 13 3 12 12 8 13 5 15 10 12 16 6 12 9 7 12 6 10 10 10 11 5 12 12 7 12 3 15 13 16 18 8 9 12 11 11 4 12 12 14 14 4 11 6 6 9 4 11 5 16 14 6 11 12 11 12 6 15 11 16 11 5 7 14 12 12 4 11 14 7 13 6 11 12 13 11 4 10 12 11 12 6 14 11 15 16 6 10 11 7 9 4 6 7 9 11 4 11 9 7 13 2 15 11 14 15 7 11 11 15 10 5 12 12 7 11 4 14 12 15 13 6 15 11 17 16 6 9 11 15 15 7 13 8 14 14 5 13 9 14 14 6 16 12 8 14 4 13 10 8 8 4 12 10 14 13 7 14 12 14 15 7 11 8 8 13 4 9 12 11 11 4 16 11 16 15 6 12 12 10 15 6 10 7 8 9 5 13 11 14 13 6 16 11 16 16 7 14 12 13 13 6 15 9 5 11 3 5 15 8 12 3 8 11 10 12 4 11 11 8 12 6 16 11 13 14 7 17 11 15 14 5 9 15 6 8 4 9 11 12 13 5 13 12 16 16 6 10 12 5 13 6 6 9 15 11 6 12 12 12 14 5 8 12 8 13 4 14 13 13 13 5 12 11 14 13 5 11 9 12 12 4 16 9 16 16 6 8 11 10 15 2 15 11 15 15 8 7 12 8 12 3 16 12 16 14 6 14 9 19 12 6 16 11 14 15 6 9 9 6 12 5 14 12 13 13 5 11 12 15 12 6 13 12 7 12 5 15 12 13 13 6 5 14 4 5 2 15 11 14 13 5 13 12 13 13 5 11 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'Gwilym Jenkins' @ 72.249.127.135
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
Celebrity [t] = + 0.417809867381582 + 0.154188016815281Popularity[t] -0.0205821634162743FindingFriends[t] + 0.103572657945756KnowingPeople[t] + 0.145905397542057Liked[t] + 0.000485950422142418t + e[t]


Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STAT
H0: parameter = 0
2-tail p-value1-tail p-value
(Intercept)0.4178098673815820.7082650.58990.5561410.278071
Popularity0.1541880168152810.0384634.00889.6e-054.8e-05
FindingFriends-0.02058216341627430.04805-0.42840.669010.334505
KnowingPeople0.1035726579457560.0309553.34590.0010370.000518
Liked0.1459053975420570.0490242.97620.0034030.001702
t0.0004859504221424180.0018950.25640.797980.39899


Multiple Linear Regression - Regression Statistics
Multiple R0.677621027970981
R-squared0.459170257548449
Adjusted R-squared0.441142599466730
F-TEST (value)25.4703220721769
F-TEST (DF numerator)5
F-TEST (DF denominator)150
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation1.04697227686073
Sum Squared Residuals164.422642277242


Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolation
Forecast
Residuals
Prediction Error
135.50195929127812-2.50195929127812
254.747403440626730.252596559373271
366.10362459273646-0.103624592736458
464.560643776232031.43935622376797
554.396984105902540.603015894097457
634.49986918682749-1.49986918682749
786.749923331043341.25007666895666
844.30666227146690-0.306662271466895
945.51814643879832-1.51814643879832
1043.92982910162650.0701708983735044
1165.716150782632750.283849217367246
1264.762887504328081.23711249567192
1355.77266557761435-0.772665577614346
1444.20951566902445-0.209515669024452
1564.4547957945211.54520420547900
1644.82607122436611-0.826071224366108
1764.611129239623511.38887076037649
1866.2468616426743-0.246861642674306
1943.780676479474880.21932352052512
2043.745695127276620.254304872723378
2124.56062231413522-2.56062231413522
2276.153515405690340.846484594309657
2354.911294959086830.0887050409131663
2444.36271089688399-0.362710896883994
2565.791964939586860.208035060413142
2666.61208257875824-0.612082578758238
2775.334389714855131.66561028514487
2855.7638961672994-0.763896167299403
2965.743799954305270.256200045694729
3045.5236675172499-1.5236675172499
3144.22732135880640-0.227321358806405
3275.424582227798091.57541777220191
3375.984090680102361.01590931989764
3444.6910944909851-0.691094490985104
3544.31978293286474-0.319782932864741
3666.52165204430713-0.52165204430713
3765.263367816377340.73663218362266
3853.975810849106441.02418915089356
3965.561589734152090.438410265847911
4076.669501243537760.330498756462243
4165.592594830449620.407405169550375
4234.68862322928571-1.68862322928571
4333.48035940243672-0.480359402436723
4444.23288337286132-0.232883372861317
4564.488788057837791.51121194216221
4676.069888177149230.93011182285077
4756.43170746027817-1.43170746027816
4843.308774315748820.69122568425118
4954.742551855220880.257448144779122
5066.19121453389706-0.191214533897064
5164.152121003843881.84787899615612
5264.341517161627161.65848283837284
5355.33238294148107-0.332382941481073
5444.15592079531701-0.155920795317012
5555.57881597294334-0.578815972943344
5655.41566287451323-0.415662874513229
5744.95007442151907-0.950074421519071
5866.71941267796887-0.719412677968869
5924.67788882181962-2.67788882181962
6086.275554179677511.72444582032249
6133.85922903391467-0.859229033914671
6266.3677991943245-0.367799194324501
6366.14056278011806-0.140562780118058
6466.3281133402356-0.328113340235606
6554.024150043591110.975849956408886
6655.60474359100319-0.604743591003185
6765.203905409328940.79609459067106
6854.68418612981560.315813870184402
6965.760389459084890.239610540915107
7022.07843381267342-0.0784338126734208
7155.88551618129121-0.885516181291208
7255.45347127672076-0.453471276720759
7355.10492343857916-0.104923438579159
7465.956754372546110.0432456274538886
7565.23833278005870.761667219941302
7665.508372377485560.491627622514441
7755.23879810900361-0.238798109003615
7855.38452761610343-0.38452761610343
7945.23910305430431-1.23910305430432
8023.36122336168653-1.36122336168653
8143.765375384411760.234624615588236
8265.590106380713050.409893619286947
8366.07130310422205-0.0713031042220515
8454.684852244739610.315147755260394
8534.48530197110051-1.48530197110051
8665.036026346911380.963973653088615
8743.909011146853100.0909888531469036
8855.49463476293373-0.494634762933731
8986.340262100789171.65973789921083
9044.46004046796467-0.460040467964674
9165.764472733761920.235527266238076
9265.313019193218150.686980806781847
9376.674674452495030.325325547504970
9466.12442052030827-0.124420520308270
9554.977991569597460.0220084304025405
9644.19289595159344-0.192895951593442
9763.865436848767482.13456315123252
9833.61543159990308-0.615431599903077
9955.63592801118301-0.635928011183009
10065.259932572649240.740067427350765
10176.80271687723420.1972831227658
10276.42956995080650.570430049193501
10366.72537704928321-0.725377049283214
10434.37322871986526-1.37322871986526
10522.75310970200851-0.753109702008507
10685.730597663261512.26940233673849
10734.68774648517566-1.68774648517566
10886.144691783125071.85530821687493
10934.57686310880096-1.57686310880096
11044.68142828906823-0.681428289068229
11155.2475443759826-0.247544375982601
11275.608195246347781.39180475365222
11364.54358326272351.45641673727650
11465.919880006350130.080119993649865
11576.116886713183860.88311328681614
11666.20747736464496-0.207477364644955
11766.18738115165082-0.187381151650823
11865.087301865406140.91269813459386
11965.98354967681030.0164503231896983
12045.40208902172734-1.40208902172734
12145.2195221726447-1.2195221726447
12255.81735155435465-0.817351554354645
12344.16770079826481-0.167700798264812
12465.811209248689460.188790751310541
12566.29484141297372-0.294841412973718
12654.746421374622940.253578625377065
12786.484051450956361.51594854904364
12865.533641799436960.466358200563035
12955.0903104945222-0.090310494522202
13042.138135720033791.86186427996621
13186.485995252644931.51400474735507
13265.708013841150380.291986158849616
13344.940403104923-0.940403104922996
13465.547683518669920.452316481330083
13565.938367584488350.0616324155116501
13644.91609345513957-0.91609345513957
13766.01287894782514-0.0128789478251396
13834.41451050614842-1.41451050614842
13966.91011416687161-0.910114166871612
14055.62297027093152-0.622970270931524
14145.66411397628685-1.66411397628685
14265.736965861758540.263034138241459
14346.33763864089536-2.33763864089536
14443.426628193239490.573371806760509
14545.02403966688461-1.02403966688461
14664.074131472585381.92586852741462
14754.347019582118310.652980417881686
14865.465049079084540.534950920915458
14966.27647102765189-0.276471027651885
15086.142177597232071.85782240276793
15175.408870865540531.59112913445947
15276.599772869455680.400227130544323
15344.33646732774437-0.336467327744365
15465.876909692122620.123090307877375
15565.626242602393830.373757397606167
15625.29944534043226-3.29944534043226


Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
90.5869903871889910.8260192256220180.413009612811009
100.4944740233872470.9889480467744950.505525976612752
110.6720414613632180.6559170772735640.327958538636782
120.7928979641694860.4142040716610270.207102035830514
130.805276099632270.3894478007354590.194723900367729
140.7434304218892130.5131391562215740.256569578110787
150.6686436899615520.6627126200768950.331356310038448
160.6122245853885140.7755508292229720.387775414611486
170.5598199365934630.8803601268130730.440180063406537
180.6109074690410910.7781850619178180.389092530958909
190.5403620836565040.9192758326869910.459637916343496
200.5453959226733520.9092081546532960.454604077326648
210.948037101511310.1039257969773800.0519628984886898
220.941501563816050.1169968723679010.0584984361839504
230.9211772456461370.1576455087077260.078822754353863
240.897175504873330.2056489902533410.102824495126671
250.865798461971260.2684030760574810.134201538028740
260.8403762920708650.3192474158582700.159623707929135
270.8488024248445860.3023951503108280.151197575155414
280.8329457772625070.3341084454749850.167054222737493
290.7914405096101620.4171189807796760.208559490389838
300.8074434802975840.3851130394048320.192556519702416
310.7728873005012540.4542253989974920.227112699498746
320.8077881846341450.384423630731710.192211815365855
330.791988194212940.4160236115741180.208011805787059
340.7824202255885140.4351595488229730.217579774411487
350.7525453991537680.4949092016924630.247454600846232
360.7126837476000310.5746325047999380.287316252399969
370.6734563353776020.6530873292447970.326543664622399
380.6629936597473890.6740126805052220.337006340252611
390.614792825111880.7704143497762410.385207174888120
400.5636456713236230.8727086573527530.436354328676377
410.5136150075991070.9727699848017850.486384992400893
420.5680998028005350.863800394398930.431900197199465
430.5759107704878650.848178459024270.424089229512135
440.5354541242104630.9290917515790740.464545875789537
450.5829159712370580.8341680575258830.417084028762942
460.5689299841308810.8621400317382380.431070015869119
470.6098039088584680.7803921822830650.390196091141532
480.5801862068723870.8396275862552250.419813793127613
490.5351002552431770.9297994895136460.464899744756823
500.4943694843566150.988738968713230.505630515643385
510.5592030202303760.8815939595392480.440796979769624
520.5963996919802890.8072006160394220.403600308019711
530.5646001659555230.8707996680889530.435399834044477
540.538507348558890.922985302882220.46149265144111
550.5036672476465170.9926655047069660.496332752353483
560.4683614999539930.9367229999079870.531638500046007
570.4730989075796540.9461978151593080.526901092420346
580.4447629997545460.8895259995090910.555237000245454
590.7323971779364080.5352056441271840.267602822063592
600.800486849163230.3990263016735380.199513150836769
610.790014209102160.4199715817956790.209985790897839
620.7571989367451850.4856021265096290.242801063254815
630.7186773065180010.5626453869639970.281322693481999
640.681061776374250.63787644725150.31893822362575
650.6720756763762870.6558486472474260.327924323623713
660.641545557995210.7169088840095820.358454442004791
670.6228265951627090.7543468096745810.377173404837291
680.5824590163291340.8350819673417310.417540983670866
690.5386145939222470.9227708121555060.461385406077753
700.4933730303621310.9867460607242610.506626969637869
710.4801619332481310.9603238664962620.519838066751869
720.4418811363802820.8837622727605650.558118863619718
730.3960089327184990.7920178654369970.603991067281501
740.3519960661046350.7039921322092690.648003933895365
750.3301033463379680.6602066926759360.669896653662032
760.2981141447072760.5962282894145530.701885855292724
770.2601428289105230.5202856578210470.739857171089477
780.2283725779197280.4567451558394570.771627422080272
790.2490890146713520.4981780293427030.750910985328648
800.2765914578320710.5531829156641410.723408542167929
810.2402671102145520.4805342204291050.759732889785448
820.2098867488951030.4197734977902070.790113251104897
830.1783459368614810.3566918737229630.821654063138519
840.1513167312614530.3026334625229070.848683268738547
850.2135882083252760.4271764166505510.786411791674724
860.2046197538192740.4092395076385470.795380246180726
870.1736319865090110.3472639730180210.82636801349099
880.1516539960353810.3033079920707630.848346003964619
890.1903465891223990.3806931782447980.8096534108776
900.1687538921796270.3375077843592530.831246107820373
910.1438483509584720.2876967019169440.856151649041528
920.1333581924274580.2667163848549150.866641807572542
930.1110082706512690.2220165413025370.888991729348731
940.0905577578748560.1811155157497120.909442242125144
950.07301961633659460.1460392326731890.926980383663405
960.06058977377604980.1211795475521000.93941022622395
970.1098147185133140.2196294370266270.890185281486686
980.1058996688378670.2117993376757330.894100331162133
990.09179186047794020.1835837209558800.90820813952206
1000.07798752551368370.1559750510273670.922012474486316
1010.06242806812060130.1248561362412030.937571931879399
1020.05099490998230530.1019898199646110.949005090017695
1030.04341542490378560.08683084980757130.956584575096214
1040.06563246124544170.1312649224908830.934367538754558
1050.06390732245746330.1278146449149270.936092677542537
1060.1106645261825510.2213290523651010.88933547381745
1070.1481099916351730.2962199832703450.851890008364827
1080.2237831751669530.4475663503339060.776216824833047
1090.2608725711955250.521745142391050.739127428804475
1100.2314332104598400.4628664209196790.76856678954016
1110.1962560434920410.3925120869840820.803743956507959
1120.2605281640860710.5210563281721430.739471835913929
1130.2570282466768570.5140564933537150.742971753323143
1140.2160600530453680.4321201060907350.783939946954632
1150.2018492226651840.4036984453303690.798150777334816
1160.1668200701245870.3336401402491740.833179929875413
1170.1366691831410360.2733383662820720.863330816858964
1180.1285577929407330.2571155858814660.871442207059267
1190.1036552304272750.2073104608545510.896344769572725
1200.1377788879189120.2755577758378240.862221112081088
1210.1565218245769530.3130436491539060.843478175423047
1220.1462193121610220.2924386243220450.853780687838978
1230.1171255083137350.2342510166274700.882874491686265
1240.09063462724207050.1812692544841410.90936537275793
1250.07615382265682650.1523076453136530.923846177343174
1260.0639845151543380.1279690303086760.936015484845662
1270.07539989712706020.1507997942541200.92460010287294
1280.06061757966933810.1212351593386760.939382420330662
1290.04947050090765440.09894100181530880.950529499092346
1300.06874269062316960.1374853812463390.93125730937683
1310.1126731969133820.2253463938267630.887326803086618
1320.08837882551750560.1767576510350110.911621174482494
1330.0672607093192960.1345214186385920.932739290680704
1340.0512586457372930.1025172914745860.948741354262707
1350.03609028629297180.07218057258594350.963909713707028
1360.03296868244050010.06593736488100030.9670313175595
1370.02783362055196660.05566724110393310.972166379448034
1380.02133214609331890.04266429218663770.97866785390668
1390.02114948940501970.04229897881003940.97885051059498
1400.01914071492332760.03828142984665510.980859285076672
1410.01319935245840730.02639870491681470.986800647541593
1420.008607958094315590.01721591618863120.991392041905684
1430.03846742100843730.07693484201687460.961532578991563
1440.02177519306124940.04355038612249880.97822480693875
1450.1704763802338950.3409527604677910.829523619766105
1460.1647050022184420.3294100044368840.835294997781558
1470.09133935429342820.1826787085868560.908660645706572


Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level00OK
5% type I error level60.0431654676258993OK
10% type I error level120.0863309352517986OK
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Nov/23/t12905258211bk6hwg42fb95hb/10sxzw1290525782.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/23/t12905258211bk6hwg42fb95hb/10sxzw1290525782.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Nov/23/t12905258211bk6hwg42fb95hb/1v5151290525782.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/23/t12905258211bk6hwg42fb95hb/1v5151290525782.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Nov/23/t12905258211bk6hwg42fb95hb/2v5151290525782.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/23/t12905258211bk6hwg42fb95hb/2v5151290525782.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Nov/23/t12905258211bk6hwg42fb95hb/3v5151290525782.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/23/t12905258211bk6hwg42fb95hb/3v5151290525782.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Nov/23/t12905258211bk6hwg42fb95hb/4oej81290525782.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/23/t12905258211bk6hwg42fb95hb/4oej81290525782.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Nov/23/t12905258211bk6hwg42fb95hb/5oej81290525782.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/23/t12905258211bk6hwg42fb95hb/5oej81290525782.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Nov/23/t12905258211bk6hwg42fb95hb/6oej81290525782.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/23/t12905258211bk6hwg42fb95hb/6oej81290525782.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Nov/23/t12905258211bk6hwg42fb95hb/7hn0b1290525782.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/23/t12905258211bk6hwg42fb95hb/7hn0b1290525782.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Nov/23/t12905258211bk6hwg42fb95hb/8sxzw1290525782.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/23/t12905258211bk6hwg42fb95hb/8sxzw1290525782.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Nov/23/t12905258211bk6hwg42fb95hb/9sxzw1290525782.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/23/t12905258211bk6hwg42fb95hb/9sxzw1290525782.ps (open in new window)


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