Home » date » 2010 » Dec » 18 »

statistiek Multiple Regression.

*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: Sat, 18 Dec 2010 19:03:25 +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/18/t1292699168dm9w06zjgiqs6aq.htm/, Retrieved Sat, 18 Dec 2010 20:06:19 +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/18/t1292699168dm9w06zjgiqs6aq.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 «
6.5 8.9 9 6.3 8.4 11 5.9 8.1 13 5.5 8.3 12 5.2 8.1 13 4.9 8 15 5.4 8.7 13 5.8 9.2 16 5.7 9 10 5.6 8.9 14 5.5 8.5 14 5.4 8.1 15 5.4 7.5 13 5.4 7.1 8 5.5 6.9 7 5.8 7.1 3 5.7 7 3 5.4 6.7 4 5.6 7 4 5.8 7.3 0 6.2 7.7 -4 6.8 8.4 -14 6.7 8.4 -18 6.7 8.8 -8 6.4 9.1 -1 6.3 9 1 6.3 8.6 2 6.4 7.9 0 6.3 7.7 1 6 7.8 0 6.3 9.2 -1 6.3 9.4 -3 6.6 9.2 -3 7.5 8.7 -3 7.8 8.4 -4 7.9 8.6 -8 7.8 9 -9 7.6 9.1 -13 7.5 8.7 -18 7.6 8.2 -11 7.5 7.9 -9 7.3 7.9 -10 7.6 9.1 -13 7.5 9.4 -11 7.6 9.4 -5 7.9 9.1 -15 7.9 9 -6 8.1 9.3 -6 8.2 9.9 -3 8 9.8 -1 7.5 9.3 -3 6.8 8.3 -4 6.5 8 -6 6.6 8.5 0 7.6 10.4 -4 8 11.1 -2 8.1 10.9 -2 7.7 10 -6 7.5 9.2 -7 7.6 9.2 -6 7.8 9.5 -6 7.8 9.6 -3 7.8 9.5 -2 7.5 9.1 -5 7.5 8.9 -11 7.1 9 -11 7.5 10.1 -11 7.5 10.3 -10 7.6 10.2 -14 7.7 9.6 -8 7.7 9.2 -9 7.9 9.3 -5 8.1 9.4 -1 8.2 9.4 -2 8.2 9.2 -5 8.2 9 -4 7.9 9 -6 7.3 9 -2 6.9 9.8 -2 6.6 10 -2 6.7 9.8 -2 6.9 9.3 2 7 9 1 7.1 9 -8 7.2 9.1 -1 7.1 9.1 1 6.9 9.1 -1 7 9.2 2 6.8 8. 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


Multiple Linear Regression - Estimated Regression Equation
Mannen[t] = + 2.18740827895666 + 0.523700805492581Vrouwen[t] -0.055791873033909Consumvertr[t] + e[t]


Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STAT
H0: parameter = 0
2-tail p-value1-tail p-value
(Intercept)2.187408278956660.4577054.77915e-063e-06
Vrouwen0.5237008054925810.052839.912900
Consumvertr-0.0557918730339090.005352-10.423700


Multiple Linear Regression - Regression Statistics
Multiple R0.79967583384841
R-squared0.639481439241151
Adjusted R-squared0.633318728800829
F-TEST (value)103.766264119285
F-TEST (DF numerator)2
F-TEST (DF denominator)117
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation0.52329703002799
Sum Squared Residuals32.0392544514255


Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolation
Forecast
Residuals
Prediction Error
16.56.346218590535450.153781409464553
26.35.972784441721340.327215558278656
35.95.704090454005750.195909545994253
45.55.86462248813817-0.364622488138174
55.25.70409045400575-0.504090454005748
64.95.54013662738867-0.640136627388672
75.46.01831093730130-0.618310937301296
85.86.11278572094586-0.31278572094586
95.76.3427967980508-0.642796798050798
105.66.06725922536590-0.467259225365905
115.55.85777890316887-0.357778903168871
125.45.59250670793793-0.192506707937930
135.45.38986997071020.0101300292898011
145.45.45934901368271-0.0593490136827114
155.55.41040072561810.0895992743818949
165.85.738308378852260.0616916211477428
175.75.6859382983030.0140617016970011
185.45.47303618362132-0.0730361836213155
195.65.63014642526909-0.0301464252690904
205.86.0104241590525-0.210424159052501
216.26.44307197338517-0.243071973385169
226.87.36758126756907-0.567581267569067
236.77.5907487597047-0.890748759704703
246.77.24231035156265-0.542310351562645
256.47.00887748197306-0.608877481973056
266.36.84492365535598-0.54492365535598
276.36.57965146012504-0.279651460125038
286.46.324644642348050.0753553576519507
296.36.164112608215620.135887391784376
3066.27227456179879-0.272274561798791
316.37.06124756252231-0.761247562522314
326.37.27757146968865-0.97757146968865
336.67.17283130859013-0.572831308590132
347.56.910980905843840.589019094156159
357.86.809662537229980.990337462770023
367.97.137570190464130.762429809535872
377.87.402842385695070.397157614304929
387.67.67837995837996-0.0783799583799649
397.57.74785900135248-0.247859001352477
407.67.095465487368820.504534512631177
417.56.826771499653230.673228500346769
427.36.882563372687140.417436627312860
437.67.67837995837996-0.0783799583799649
447.57.72390645395992-0.223906453959921
457.67.389155215756470.210844784243533
467.97.789963704447780.110036295552218
477.97.235466766593340.664533233406657
488.17.392577008241120.707422991758882
498.27.539421872434940.66057812756506
5087.375468045817860.624531954182137
517.57.225201389139390.274798610860609
526.86.757292456680720.0427075433192812
536.56.71176596110076-0.211765961100762
546.66.6388651256436-0.0388651256435986
557.67.85706414821514-0.257064148215140
5688.11207096599213-0.112070965992127
578.18.007330804893610.0926691951063881
587.77.75916757208593-0.0591675720859244
597.57.395998800725770.104001199274232
607.67.340206927691860.259793072308140
617.87.497317169339630.302682830660366
627.87.382311630787160.417688369212835
637.87.2741496772040.525850322796002
647.57.23204497410870.267955025891308
657.57.462056051213630.0379439487863695
667.17.51442613176289-0.414426131762889
677.58.09049701780473-0.590497017804728
687.58.13944530586934-0.639445305869335
697.68.31024271745571-0.710242717455713
707.77.661270995956710.0387290040432903
717.77.507582546793590.192417453206414
727.97.336785135207210.563214864792791
738.17.165987723620830.934012276379169
748.27.221779596654740.97822040334526
758.27.284415054657950.915584945342049
768.27.123883020525531.07611697947447
777.97.235466766593340.664533233406657
787.37.01229927445770.287700725542293
796.97.43125991885177-0.531259918851772
806.67.53600007995029-0.936000079950289
816.77.43125991885177-0.731259918851772
826.96.94624202396985-0.0462420239698452
8376.844923655355980.15507634464402
847.17.34705051266116-0.247050512661162
857.27.008877481973060.191122518026944
867.16.897293735905240.202706264094762
876.97.00887748197306-0.108877481973056
8876.893871943420590.106128056579413
896.86.684391621223560.115608378776445
906.46.47833309151117-0.078333091511173
916.76.642286918128250.0577130818717508
926.66.540968549514380.059031450485616
936.46.331488227317350.0685117726826489
946.36.38043651538196-0.0804365153819589
956.26.77097962661932-0.570979626619322
966.56.60018221503294-0.100182215032944
976.86.65939588055150.140604119448496
986.86.3349100198020.465089980197998
996.46.073059617055710.326940382944289
1006.16.13911686754357-0.0391168675435737
1015.86.09359037196362-0.293590371963617
1026.16.41465444022847-0.314654440228468
1037.27.20704923343664-0.007049233436641
1047.37.35731589011511-0.0573158901151138
1056.97.03625182185026-0.136251821850263
1066.17.2731064839245-1.17310648392450
1075.87.34258552689702-1.54258552689702
1086.27.66707138764652-1.46707138764652
1097.17.64996242522326-0.549962425223264
1107.77.92549999790816-0.225499997908157
11187.820759836809640.179240163190359
1127.87.394955607446270.405044392553726
1137.47.018099666147510.381900333852486
1147.47.119418034761380.280581965238621
1157.77.692067128318570.007932871681432
1167.87.514426131762890.285573868237111
1177.87.304945809565860.495054190434144
11886.994147118754961.00585288124504
1198.16.830193292137881.26980670786212
1208.47.318632979504461.08136702049554


Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
60.275864732789790.551729465579580.72413526721021
70.1541028843383350.308205768676670.845897115661665
80.2087798317416330.4175596634832670.791220168258367
90.2923134549296300.5846269098592590.70768654507037
100.1990430417285070.3980860834570140.800956958271493
110.1287411223621530.2574822447243060.871258877637847
120.08627101918050940.1725420383610190.91372898081949
130.05264767269693160.1052953453938630.947352327303068
140.03658724463751340.07317448927502680.963412755362487
150.02052216461723550.04104432923447110.979477835382764
160.01204385190062340.02408770380124670.987956148099377
170.006828355844000250.01365671168800050.993171644156
180.004075756046581610.008151512093163220.995924243953418
190.002123982265269520.004247964530539050.99787601773473
200.001504161089926580.003008322179853150.998495838910073
210.0008903103793749650.001780620758749930.999109689620625
220.0005933871879053950.001186774375810790.999406612812095
230.0005558597615984260.001111719523196850.999444140238402
240.0003000246852328960.0006000493704657920.999699975314767
250.0001685925297383260.0003371850594766510.999831407470262
269.39627936863505e-050.0001879255873727010.999906037206314
275.46361428820218e-050.0001092722857640440.999945363857118
285.46455234964045e-050.0001092910469928090.999945354476504
295.03541628946294e-050.0001007083257892590.999949645837105
302.70706713750271e-055.41413427500542e-050.999972929328625
312.20637959159082e-054.41275918318165e-050.999977936204084
322.95286438601444e-055.90572877202888e-050.99997047135614
331.92611639519459e-053.85223279038918e-050.999980738836048
340.001308503976661230.002617007953322470.99869149602334
350.04204033836596170.08408067673192330.957959661634038
360.1304341640986360.2608683281972720.869565835901364
370.1619762882018970.3239525764037930.838023711798103
380.1322110188776850.2644220377553710.867788981122315
390.1038288702649610.2076577405299220.896171129735039
400.1160113553075970.2320227106151940.883988644692403
410.1424949443642400.2849898887284810.85750505563576
420.1298781479515030.2597562959030060.870121852048497
430.1026361559206320.2052723118412630.897363844079368
440.08022743167116970.1604548633423390.91977256832883
450.07618160423339120.1523632084667820.923818395766609
460.06143783919606930.1228756783921390.93856216080393
470.09061508575729730.1812301715145950.909384914242703
480.136180811679250.27236162335850.86381918832075
490.1869413014045800.3738826028091610.81305869859542
500.2213763797283880.4427527594567770.778623620271612
510.1949603041054740.3899206082109480.805039695894526
520.1604636903759520.3209273807519030.839536309624048
530.1391941668499920.2783883336999840.860805833150008
540.1147671284872710.2295342569745410.88523287151273
550.0944289202085710.1888578404171420.905571079791429
560.07431226164218780.1486245232843760.925687738357812
570.05916204533063660.1183240906612730.940837954669363
580.04499447776304260.08998895552608530.955005522236957
590.03399563777520370.06799127555040740.966004362224796
600.02699787508774850.05399575017549710.973002124912251
610.02203854509176340.04407709018352690.977961454908236
620.01980319761652840.03960639523305680.980196802383472
630.01987999436488600.03975998872977190.980120005635114
640.01533476787619110.03066953575238220.984665232123809
650.01097527272132850.02195054544265700.989024727278671
660.01007207300163810.02014414600327610.989927926998362
670.01094676182084090.02189352364168180.98905323817916
680.01247224030544150.02494448061088290.987527759694559
690.01574758304537420.03149516609074840.984252416954626
700.01122459474004360.02244918948008720.988775405259956
710.00818663009467370.01637326018934740.991813369905326
720.008491151033674230.01698230206734850.991508848966326
730.01707336586056550.0341467317211310.982926634139434
740.03512347425199560.07024694850399110.964876525748004
750.06118614154470480.1223722830894100.938813858455295
760.1303007973099750.2606015946199510.869699202690025
770.1520440824821780.3040881649643560.847955917517822
780.1309366780984510.2618733561969030.869063321901549
790.1234845454386150.246969090877230.876515454561385
800.1808883773611210.3617767547222410.81911162263888
810.2234109561529640.4468219123059280.776589043847036
820.1894567909864710.3789135819729430.810543209013529
830.1550616250790240.3101232501580480.844938374920976
840.1333434667170420.2666869334340850.866656533282958
850.1061815955171380.2123631910342770.893818404482862
860.08356784695342690.1671356939068540.916432153046573
870.06868839611990220.1373767922398040.931311603880098
880.05410581115628570.1082116223125710.945894188843714
890.04206424709016130.08412849418032260.957935752909839
900.03497513630640890.06995027261281790.965024863693591
910.02692123207342150.0538424641468430.973078767926578
920.02003436089940650.0400687217988130.979965639100594
930.01433486881998260.02866973763996510.985665131180017
940.01216504420218840.02433008840437690.987834955797812
950.01749243142854280.03498486285708560.982507568571457
960.01639544124058980.03279088248117970.98360455875941
970.01183487606402290.02366975212804580.988165123935977
980.008259711585318460.01651942317063690.991740288414682
990.005413625173555670.01082725034711130.994586374826444
1000.003630535729736670.007261071459473350.996369464270263
1010.003240126611958350.00648025322391670.996759873388042
1020.00432003367709290.00864006735418580.995679966322907
1030.002846542003433800.005693084006867590.997153457996566
1040.002211285108814680.004422570217629360.997788714891185
1050.004448877109606280.008897754219212550.995551122890394
1060.04609363804916060.09218727609832130.95390636195084
1070.3810176844565870.7620353689131740.618982315543413
1080.860300206997160.279399586005680.13969979300284
1090.934042626358210.1319147472835790.0659573736417893
1100.88539839796270.2292032040746010.114601602037301
1110.861108777955470.2777824440890610.138891222044530
1120.8235062646732530.3529874706534950.176493735326747
1130.7357653152018970.5284693695962050.264234684798103
1140.8611924447690530.2776151104618950.138807555230947


Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level230.211009174311927NOK
5% type I error level470.431192660550459NOK
10% type I error level570.522935779816514NOK
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Dec/18/t1292699168dm9w06zjgiqs6aq/10jnhf1292698995.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/18/t1292699168dm9w06zjgiqs6aq/10jnhf1292698995.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/18/t1292699168dm9w06zjgiqs6aq/1um241292698995.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/18/t1292699168dm9w06zjgiqs6aq/1um241292698995.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/18/t1292699168dm9w06zjgiqs6aq/2um241292698995.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/18/t1292699168dm9w06zjgiqs6aq/2um241292698995.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/18/t1292699168dm9w06zjgiqs6aq/35v1p1292698995.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/18/t1292699168dm9w06zjgiqs6aq/35v1p1292698995.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/18/t1292699168dm9w06zjgiqs6aq/45v1p1292698995.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/18/t1292699168dm9w06zjgiqs6aq/45v1p1292698995.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/18/t1292699168dm9w06zjgiqs6aq/55v1p1292698995.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/18/t1292699168dm9w06zjgiqs6aq/55v1p1292698995.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/18/t1292699168dm9w06zjgiqs6aq/6ym0r1292698995.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/18/t1292699168dm9w06zjgiqs6aq/6ym0r1292698995.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/18/t1292699168dm9w06zjgiqs6aq/7reid1292698995.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/18/t1292699168dm9w06zjgiqs6aq/7reid1292698995.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/18/t1292699168dm9w06zjgiqs6aq/8reid1292698995.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/18/t1292699168dm9w06zjgiqs6aq/8reid1292698995.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/18/t1292699168dm9w06zjgiqs6aq/9reid1292698995.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/18/t1292699168dm9w06zjgiqs6aq/9reid1292698995.ps (open in new window)


 
Parameters (Session):
 
Parameters (R input):
par1 = 1 ; par2 = Do not include Seasonal Dummies ; par3 = No Linear Trend ;
 
R code (references can be found in the software module):
library(lattice)
library(lmtest)
n25 <- 25 #minimum number of obs. for Goldfeld-Quandt test
par1 <- as.numeric(par1)
x <- t(y)
k <- length(x[1,])
n <- length(x[,1])
x1 <- cbind(x[,par1], x[,1:k!=par1])
mycolnames <- c(colnames(x)[par1], colnames(x)[1:k!=par1])
colnames(x1) <- mycolnames #colnames(x)[par1]
x <- x1
if (par3 == 'First Differences'){
x2 <- array(0, dim=c(n-1,k), dimnames=list(1:(n-1), paste('(1-B)',colnames(x),sep='')))
for (i in 1:n-1) {
for (j in 1:k) {
x2[i,j] <- x[i+1,j] - x[i,j]
}
}
x <- x2
}
if (par2 == 'Include Monthly Dummies'){
x2 <- array(0, dim=c(n,11), dimnames=list(1:n, paste('M', seq(1:11), sep ='')))
for (i in 1:11){
x2[seq(i,n,12),i] <- 1
}
x <- cbind(x, x2)
}
if (par2 == 'Include Quarterly Dummies'){
x2 <- array(0, dim=c(n,3), dimnames=list(1:n, paste('Q', seq(1:3), sep ='')))
for (i in 1:3){
x2[seq(i,n,4),i] <- 1
}
x <- cbind(x, x2)
}
k <- length(x[1,])
if (par3 == 'Linear Trend'){
x <- cbind(x, c(1:n))
colnames(x)[k+1] <- 't'
}
x
k <- length(x[1,])
df <- as.data.frame(x)
(mylm <- lm(df))
(mysum <- summary(mylm))
if (n > n25) {
kp3 <- k + 3
nmkm3 <- n - k - 3
gqarr <- array(NA, dim=c(nmkm3-kp3+1,3))
numgqtests <- 0
numsignificant1 <- 0
numsignificant5 <- 0
numsignificant10 <- 0
for (mypoint in kp3:nmkm3) {
j <- 0
numgqtests <- numgqtests + 1
for (myalt in c('greater', 'two.sided', 'less')) {
j <- j + 1
gqarr[mypoint-kp3+1,j] <- gqtest(mylm, point=mypoint, alternative=myalt)$p.value
}
if (gqarr[mypoint-kp3+1,2] < 0.01) numsignificant1 <- numsignificant1 + 1
if (gqarr[mypoint-kp3+1,2] < 0.05) numsignificant5 <- numsignificant5 + 1
if (gqarr[mypoint-kp3+1,2] < 0.10) numsignificant10 <- numsignificant10 + 1
}
gqarr
}
bitmap(file='test0.png')
plot(x[,1], type='l', main='Actuals and Interpolation', ylab='value of Actuals and Interpolation (dots)', xlab='time or index')
points(x[,1]-mysum$resid)
grid()
dev.off()
bitmap(file='test1.png')
plot(mysum$resid, type='b', pch=19, main='Residuals', ylab='value of Residuals', xlab='time or index')
grid()
dev.off()
bitmap(file='test2.png')
hist(mysum$resid, main='Residual Histogram', xlab='values of Residuals')
grid()
dev.off()
bitmap(file='test3.png')
densityplot(~mysum$resid,col='black',main='Residual Density Plot', xlab='values of Residuals')
dev.off()
bitmap(file='test4.png')
qqnorm(mysum$resid, main='Residual Normal Q-Q Plot')
qqline(mysum$resid)
grid()
dev.off()
(myerror <- as.ts(mysum$resid))
bitmap(file='test5.png')
dum <- cbind(lag(myerror,k=1),myerror)
dum
dum1 <- dum[2:length(myerror),]
dum1
z <- as.data.frame(dum1)
z
plot(z,main=paste('Residual Lag plot, lowess, and regression line'), ylab='values of Residuals', xlab='lagged values of Residuals')
lines(lowess(z))
abline(lm(z))
grid()
dev.off()
bitmap(file='test6.png')
acf(mysum$resid, lag.max=length(mysum$resid)/2, main='Residual Autocorrelation Function')
grid()
dev.off()
bitmap(file='test7.png')
pacf(mysum$resid, lag.max=length(mysum$resid)/2, main='Residual Partial Autocorrelation Function')
grid()
dev.off()
bitmap(file='test8.png')
opar <- par(mfrow = c(2,2), oma = c(0, 0, 1.1, 0))
plot(mylm, las = 1, sub='Residual Diagnostics')
par(opar)
dev.off()
if (n > n25) {
bitmap(file='test9.png')
plot(kp3:nmkm3,gqarr[,2], main='Goldfeld-Quandt test',ylab='2-sided p-value',xlab='breakpoint')
grid()
dev.off()
}
load(file='createtable')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a, 'Multiple Linear Regression - Estimated Regression Equation', 1, TRUE)
a<-table.row.end(a)
myeq <- colnames(x)[1]
myeq <- paste(myeq, '[t] = ', sep='')
for (i in 1:k){
if (mysum$coefficients[i,1] > 0) myeq <- paste(myeq, '+', '')
myeq <- paste(myeq, mysum$coefficients[i,1], sep=' ')
if (rownames(mysum$coefficients)[i] != '(Intercept)') {
myeq <- paste(myeq, rownames(mysum$coefficients)[i], sep='')
if (rownames(mysum$coefficients)[i] != 't') myeq <- paste(myeq, '[t]', sep='')
}
}
myeq <- paste(myeq, ' + e[t]')
a<-table.row.start(a)
a<-table.element(a, myeq)
a<-table.row.end(a)
a<-table.end(a)
table.save(a,file='mytable1.tab')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a,hyperlink('http://www.xycoon.com/ols1.htm','Multiple Linear Regression - Ordinary Least Squares',''), 6, TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'Variable',header=TRUE)
a<-table.element(a,'Parameter',header=TRUE)
a<-table.element(a,'S.D.',header=TRUE)
a<-table.element(a,'T-STAT<br />H0: parameter = 0',header=TRUE)
a<-table.element(a,'2-tail p-value',header=TRUE)
a<-table.element(a,'1-tail p-value',header=TRUE)
a<-table.row.end(a)
for (i in 1:k){
a<-table.row.start(a)
a<-table.element(a,rownames(mysum$coefficients)[i],header=TRUE)
a<-table.element(a,mysum$coefficients[i,1])
a<-table.element(a, round(mysum$coefficients[i,2],6))
a<-table.element(a, round(mysum$coefficients[i,3],4))
a<-table.element(a, round(mysum$coefficients[i,4],6))
a<-table.element(a, round(mysum$coefficients[i,4]/2,6))
a<-table.row.end(a)
}
a<-table.end(a)
table.save(a,file='mytable2.tab')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a, 'Multiple Linear Regression - Regression Statistics', 2, TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'Multiple R',1,TRUE)
a<-table.element(a, sqrt(mysum$r.squared))
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'R-squared',1,TRUE)
a<-table.element(a, mysum$r.squared)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'Adjusted R-squared',1,TRUE)
a<-table.element(a, mysum$adj.r.squared)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'F-TEST (value)',1,TRUE)
a<-table.element(a, mysum$fstatistic[1])
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'F-TEST (DF numerator)',1,TRUE)
a<-table.element(a, mysum$fstatistic[2])
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'F-TEST (DF denominator)',1,TRUE)
a<-table.element(a, mysum$fstatistic[3])
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'p-value',1,TRUE)
a<-table.element(a, 1-pf(mysum$fstatistic[1],mysum$fstatistic[2],mysum$fstatistic[3]))
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'Multiple Linear Regression - Residual Statistics', 2, TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'Residual Standard Deviation',1,TRUE)
a<-table.element(a, mysum$sigma)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'Sum Squared Residuals',1,TRUE)
a<-table.element(a, sum(myerror*myerror))
a<-table.row.end(a)
a<-table.end(a)
table.save(a,file='mytable3.tab')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a, 'Multiple Linear Regression - Actuals, Interpolation, and Residuals', 4, TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'Time or Index', 1, TRUE)
a<-table.element(a, 'Actuals', 1, TRUE)
a<-table.element(a, 'Interpolation<br />Forecast', 1, TRUE)
a<-table.element(a, 'Residuals<br />Prediction Error', 1, TRUE)
a<-table.row.end(a)
for (i in 1:n) {
a<-table.row.start(a)
a<-table.element(a,i, 1, TRUE)
a<-table.element(a,x[i])
a<-table.element(a,x[i]-mysum$resid[i])
a<-table.element(a,mysum$resid[i])
a<-table.row.end(a)
}
a<-table.end(a)
table.save(a,file='mytable4.tab')
if (n > n25) {
a<-table.start()
a<-table.row.start(a)
a<-table.element(a,'Goldfeld-Quandt test for Heteroskedasticity',4,TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'p-values',header=TRUE)
a<-table.element(a,'Alternative Hypothesis',3,header=TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'breakpoint index',header=TRUE)
a<-table.element(a,'greater',header=TRUE)
a<-table.element(a,'2-sided',header=TRUE)
a<-table.element(a,'less',header=TRUE)
a<-table.row.end(a)
for (mypoint in kp3:nmkm3) {
a<-table.row.start(a)
a<-table.element(a,mypoint,header=TRUE)
a<-table.element(a,gqarr[mypoint-kp3+1,1])
a<-table.element(a,gqarr[mypoint-kp3+1,2])
a<-table.element(a,gqarr[mypoint-kp3+1,3])
a<-table.row.end(a)
}
a<-table.end(a)
table.save(a,file='mytable5.tab')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a,'Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity',4,TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'Description',header=TRUE)
a<-table.element(a,'# significant tests',header=TRUE)
a<-table.element(a,'% significant tests',header=TRUE)
a<-table.element(a,'OK/NOK',header=TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'1% type I error level',header=TRUE)
a<-table.element(a,numsignificant1)
a<-table.element(a,numsignificant1/numgqtests)
if (numsignificant1/numgqtests < 0.01) dum <- 'OK' else dum <- 'NOK'
a<-table.element(a,dum)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'5% type I error level',header=TRUE)
a<-table.element(a,numsignificant5)
a<-table.element(a,numsignificant5/numgqtests)
if (numsignificant5/numgqtests < 0.05) dum <- 'OK' else dum <- 'NOK'
a<-table.element(a,dum)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'10% type I error level',header=TRUE)
a<-table.element(a,numsignificant10)
a<-table.element(a,numsignificant10/numgqtests)
if (numsignificant10/numgqtests < 0.1) dum <- 'OK' else dum <- 'NOK'
a<-table.element(a,dum)
a<-table.row.end(a)
a<-table.end(a)
table.save(a,file='mytable6.tab')
}
 





Copyright

Creative Commons License

This work is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 License.

Software written by Ed van Stee & Patrick Wessa


Disclaimer

Information provided on this web site is provided "AS IS" without warranty of any kind, either express or implied, including, without limitation, warranties of merchantability, fitness for a particular purpose, and noninfringement. We use reasonable efforts to include accurate and timely information and periodically update the information, and software without notice. However, we make no warranties or representations as to the accuracy or completeness of such information (or software), and we assume no liability or responsibility for errors or omissions in the content of this web site, or any software bugs in online applications. Your use of this web site is AT YOUR OWN RISK. Under no circumstances and under no legal theory shall we be liable to you or any other person for any direct, indirect, special, incidental, exemplary, or consequential damages arising from your access to, or use of, this web site.


Privacy Policy

We may request personal information to be submitted to our servers in order to be able to:

  • personalize online software applications according to your needs
  • enforce strict security rules with respect to the data that you upload (e.g. statistical data)
  • manage user sessions of online applications
  • alert you about important changes or upgrades in resources or applications

We NEVER allow other companies to directly offer registered users information about their products and services. Banner references and hyperlinks of third parties NEVER contain any personal data of the visitor.

We do NOT sell, nor transmit by any means, personal information, nor statistical data series uploaded by you to third parties.

We carefully protect your data from loss, misuse, alteration, and destruction. However, at any time, and under any circumstance you are solely responsible for managing your passwords, and keeping them secret.

We store a unique ANONYMOUS USER ID in the form of a small 'Cookie' on your computer. This allows us to track your progress when using this website which is necessary to create state-dependent features. The cookie is used for NO OTHER PURPOSE. At any time you may opt to disallow cookies from this website - this will not affect other features of this website.

We examine cookies that are used by third-parties (banner and online ads) very closely: abuse from third-parties automatically results in termination of the advertising contract without refund. We have very good reason to believe that the cookies that are produced by third parties (banner ads) do NOT cause any privacy or security risk.

FreeStatistics.org is safe. There is no need to download any software to use the applications and services contained in this website. Hence, your system's security is not compromised by their use, and your personal data - other than data you submit in the account application form, and the user-agent information that is transmitted by your browser - is never transmitted to our servers.

As a general rule, we do not log on-line behavior of individuals (other than normal logging of webserver 'hits'). However, in cases of abuse, hacking, unauthorized access, Denial of Service attacks, illegal copying, hotlinking, non-compliance with international webstandards (such as robots.txt), or any other harmful behavior, our system engineers are empowered to log, track, identify, publish, and ban misbehaving individuals - even if this leads to ban entire blocks of IP addresses, or disclosing user's identity.


FreeStatistics.org is powered by