Home » date » 2010 » Dec » 24 »

Time Series Analaysis Multiple Lineair Regression (verleden2)

*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, 24 Dec 2010 09:37:57 +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/24/t1293183417ronw9pp61k6yne4.htm/, Retrieved Fri, 24 Dec 2010 10:36: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/Dec/24/t1293183417ronw9pp61k6yne4.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 «
40399 44164 44496 43110 43880 36763 40399 44164 44496 43110 37903 36763 40399 44164 44496 35532 37903 36763 40399 44164 35533 35532 37903 36763 40399 32110 35533 35532 37903 36763 33374 32110 35533 35532 37903 35462 33374 32110 35533 35532 33508 35462 33374 32110 35533 36080 33508 35462 33374 32110 34560 36080 33508 35462 33374 38737 34560 36080 33508 35462 38144 38737 34560 36080 33508 37594 38144 38737 34560 36080 36424 37594 38144 38737 34560 36843 36424 37594 38144 38737 37246 36843 36424 37594 38144 38661 37246 36843 36424 37594 40454 38661 37246 36843 36424 44928 40454 38661 37246 36843 48441 44928 40454 38661 37246 48140 48441 44928 40454 38661 45998 48140 48441 44928 40454 47369 45998 48140 48441 44928 49554 47369 45998 48140 48441 47510 49554 47369 45998 48140 44873 47510 49554 47369 45998 45344 44873 47510 49554 47369 42413 45344 44873 47510 49554 36912 42413 45344 44873 47510 43452 36912 42413 45344 44873 42142 43452 36912 42413 45344 44382 42142 43452 36912 42413 4 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'Sir Ronald Aylmer Fisher' @ 193.190.124.24


Multiple Linear Regression - Estimated Regression Equation
OPENVAC[t] = + 1842.18557079188 + 1.17683534632143X1[t] -0.0681417804041668X2[t] -0.194231091231273X3[t] + 0.0268886495538095X4[t] + e[t]


Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STAT
H0: parameter = 0
2-tail p-value1-tail p-value
(Intercept)1842.18557079188832.1913192.21370.0287430.014371
X11.176835346321430.0913612.881300
X2-0.06814178040416680.139838-0.48730.6269410.313471
X3-0.1942310912312730.139921-1.38810.1676630.083832
X40.02688864955380950.0910440.29530.7682470.384123


Multiple Linear Regression - Regression Statistics
Multiple R0.965335002681266
R-squared0.93187166740164
Adjusted R-squared0.929600722981695
F-TEST (value)410.345431273956
F-TEST (DF numerator)4
F-TEST (DF denominator)120
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation2074.32861480788
Sum Squared Residuals516340704.265296


Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolation
Forecast
Residuals
Prediction Error
14039943590.4767443088-3191.47674430885
23676338892.4061838999-2129.40618389992
33790334971.73905846722931.26094153278
43553237283.4478936571-1751.44789365708
53553335020.478140015512.521859984974
63211034864.0285629183-2754.02856291833
73337431326.82800848032047.17199151966
83546232983.64998137082478.35001862922
93350836019.6308879933-2511.63088799327
103608033240.26663705832839.73336294173
113456036028.6689212519-1468.66892125186
123873734500.2895881784236.71041182197
133814438967.403548102-823.403548102012
143759438349.3008363091-755.30083630913
153642436890.2754562172-466.275456217194
163684335778.34900652981064.65099347019
173724636442.0510307032803.948969296838
183866137100.22588876731560.77411123265
194045438625.14421910541828.85578089456
204492840571.78059018474356.21940981528
214844145450.76284904012990.23715095992
224814048969.91018768-829.910187680002
234599847555.5221203587-1557.52212035868
244736944493.21747904812875.7825209519
254955446405.54181682373148.45818317634
264751049291.4541815036-1781.45418150357
274487346413.2266300171-1540.22663001712
284534443061.66302511162282.33697488844
294241344251.4023979065-1838.40239790653
303691241227.2302071569-4315.23020715693
314345234790.7943125648661.205687436
324214243444.1012938482-1302.10129384821
334438242446.45434734491935.5456526551
344363643753.6454575863-117.645457586340
354416743153.38319872011013.61680127990
364442343358.81476052471064.18523947525
374286843829.0282928475-961.028292847484
384390841858.40939152322049.59060847676
394201343152.8333337839-1139.83333378388
403884641160.7757420348-2314.77574203483
413508737319.0546891640-2232.05468916405
423302633507.167754301-481.167754300994
433464631902.03093309682743.96906690325
443713534593.90272235192541.09727764810
453798537711.8920604461273.107939553911
464312138172.52533886834948.47466113173
474372243718.94959043423.05040956584811
484363043978.0808706104-348.080870610382
494223442854.1432762828-620.143276282828
503935141238.9173948937-1887.91739489366
513932737975.25635566831351.74364433170
523570438412.1379078617-2708.1379078617
533046634672.5305321115-4206.53053211149
542815528682.28622801-527.286228010026
552925727022.60030435982234.39969564017
562999829396.9133890560601.086610943967
573252930501.88144414742027.11855585256
583478733153.77631475181633.22368524821
593385535524.3097337486-1669.30973374857
603455633801.9606482374754.039351762598
613134834319.9117333659-2971.91173336589
623080530738.594502023566.4054979765466
632835330156.9555241702-1803.95552417021
642451427950.2985257567-3436.29852575666
652110623618.7199715496-2512.71997154965
662134620331.31550524921014.68449475084
672333521525.70536651461809.29463348538
682437924408.7908763301-29.7908763300550
692629025363.6209970909926.379002909143
703008427161.54096060312922.45903939692
712942931346.9395869113-1917.93958691132
723063229974.4786550086657.521344991415
732734930749.3158919639-3400.31589196388
742726427033.0277893280230.972210671965
752747426905.4341817486568.565818251373
762448227828.369373736-3346.36937373598
772145324221.2024499269-2768.20244992688
781878820817.3743285179-2029.37432851788
791928218474.2956247857807.704375214255
801971319745.1252665202-32.125266520164
812191720654.85939989791262.14060010210
822381223051.626985707760.373014293007
832378525061.1148755342-1276.11487553423
842469624483.7153302016212.284669798377
852456225248.8468245047-686.846824504697
862358025085.2719565171-1505.27195651714
872493923761.0801273541177.91987264599
882389925477.8371173302-1578.83711733024
892145424348.4555301356-2894.45553013559
901976121251.5958531549-1490.59585315487
911981519664.3622745450150.637725454978
922078020290.2062399951489.793760004867
932346221685.26318234901776.73681765103
942500524719.7678004720285.232199528048
952472526166.8874688397-1441.88746883968
962619825237.2505648432960.749435156801
972754326762.2255128213780.774487178698
982647128340.5701028946-1869.57010289458
992655826693.7206977357-135.720697735664
1002531726647.5195245456-1330.51952454560
1012289625425.5194883153-2529.51948831533
1022224822615.2423270939-367.242327093903
1032340622261.00436976531144.99563023471
1042507324104.8002322821968.199767717951
1052769126048.44089943991642.55910056005
1063059928773.46003961901825.53996038097
1073194831724.6558727244223.344127275563
1083294632650.3768394595295.623160540536
1093401233238.5057245544773.494275445634
1103293634241.1811577211-1305.18115772115
1113297432744.6973463677229.302653632280
1123095132682.522174245-1731.52217424498
1132981230536.8508355706-724.850835570573
1142901029297.9732294814-287.973229481402
1153106828825.71603585592242.28396414413
1163244731469.1263613346977.873638665416
1173484433076.89368316581767.10631683424
1183567635382.5082104248293.491789575223
1193538735985.7915369092-598.791536909237
1203648835160.49968257941327.50031742058
1213565236378.7401984922-726.740198492184
1223348835398.3858905371-1910.38589053708
1233291432687.0614783487226.938521651299
1242978132350.9983977829-2569.99839778290
1252795129100.9238101073-1149.92381010733


Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
80.7033897394251480.5932205211497040.296610260574852
90.563774899010370.872450201979260.43622510098963
100.5961302822289340.8077394355421320.403869717771066
110.4694554307574280.9389108615148570.530544569242572
120.6583536110777240.6832927778445520.341646388922276
130.6493539497511440.7012921004977120.350646050248856
140.5509365671750180.8981268656499650.449063432824982
150.4575187760518590.9150375521037180.542481223948141
160.3787347371064780.7574694742129560.621265262893522
170.3242709368241340.6485418736482670.675729063175866
180.3280785854641950.656157170928390.671921414535805
190.4118303963760980.8236607927521960.588169603623902
200.8070114035057490.3859771929885030.192988596494251
210.8970103357072070.2059793285855870.102989664292793
220.862891099039740.274217801920520.13710890096026
230.83049653627530.3390069274494010.169503463724701
240.8855432482944570.2289135034110860.114456751705543
250.9293567056513380.1412865886973240.0706432943486622
260.9164525346298110.1670949307403770.0835474653701886
270.9029439218667840.1941121562664320.097056078133216
280.8998836362829050.200232727434190.100116363717095
290.8860034848741740.2279930302516520.113996515125826
300.9452289177225330.1095421645549330.0547710822774666
310.9997211058446680.0005577883106630040.000278894155331502
320.9996269486214930.0007461027570145030.000373051378507251
330.9996939488716950.000612102256609890.000306051128304945
340.99949867629970.001002647400600920.000501323700300459
350.9992980439829540.001403912034092190.000701956017046093
360.9990239899890.001952020022000340.000976010011000172
370.998531298187460.002937403625080830.00146870181254041
380.9986576370159260.002684725968147580.00134236298407379
390.998088541694320.003822916611359190.00191145830567960
400.9982764491116830.003447101776633870.00172355088831693
410.9987532208819450.002493558236109880.00124677911805494
420.9983348270719280.003330345856143260.00166517292807163
430.9987229005004920.002554198999015660.00127709949950783
440.9988782582702730.002243483459454220.00112174172972711
450.9982548285556750.003490342888649770.00174517144432489
460.9998291844881510.0003416310236978850.000170815511848943
470.9997164957559750.0005670084880492430.000283504244024621
480.9995677380704950.0008645238590103150.000432261929505158
490.9993911727948910.001217654410217180.000608827205108589
500.9992581411629630.001483717674073820.000741858837036912
510.9994021857455450.001195628508910570.000597814254455285
520.9994950202874360.001009959425128950.000504979712564474
530.9998853274984670.0002293450030665770.000114672501533289
540.9998598948250380.0002802103499240320.000140105174962016
550.999897514225820.0002049715483611830.000102485774180592
560.9998342300100990.0003315399798020760.000165769989901038
570.9998272652414310.0003454695171373160.000172734758568658
580.9997911521122450.0004176957755095590.000208847887754779
590.9998007353985920.0003985292028160740.000199264601408037
600.9997529200155380.0004941599689250580.000247079984462529
610.9998747335007740.0002505329984519540.000125266499225977
620.999837254013010.0003254919739801800.000162745986990090
630.9998288972713050.0003422054573903590.000171102728695179
640.9999319074229030.0001361851541947876.80925770973937e-05
650.9999466783197720.0001066433604551955.33216802275977e-05
660.999929151198990.0001416976020207227.08488010103608e-05
670.9999192125942560.0001615748114875058.07874057437523e-05
680.9998646492263170.0002707015473650900.000135350773682545
690.9997860240450330.0004279519099347890.000213975954967394
700.9998787674301680.0002424651396631670.000121232569831583
710.9999113328268470.0001773343463067998.86671731533997e-05
720.9998725535945830.000254892810834610.000127446405417305
730.9999729110456035.41779087938436e-052.70889543969218e-05
740.9999684422363956.31155272103675e-053.15577636051838e-05
750.9999435494491140.0001129011017726825.64505508863409e-05
760.9999866127077452.67745845103111e-051.33872922551555e-05
770.999989307076812.13858463785583e-051.06929231892791e-05
780.9999879183811782.41632376447024e-051.20816188223512e-05
790.9999819970407963.600591840819e-051.8002959204095e-05
800.9999668972144276.62055711451256e-053.31027855725628e-05
810.999953252331239.34953375419386e-054.67476687709693e-05
820.999914748952460.0001705020950784068.5251047539203e-05
830.999901048386630.0001979032267395569.8951613369778e-05
840.9998237559778870.0003524880442251620.000176244022112581
850.9997272428403230.0005455143193537230.000272757159676861
860.9996601898705960.0006796202588088420.000339810129404421
870.9995874143300240.0008251713399529720.000412585669976486
880.9996670723496110.0006658553007776590.000332927650388830
890.999855328073870.0002893438522606890.000144671926130344
900.999798734035570.0004025319288580870.000201265964429044
910.9996225481498460.0007549037003083840.000377451850154192
920.9993117697058340.001376460588332070.000688230294166033
930.9990975070005820.001804985998836000.000902492999417999
940.9984758235569860.003048352886028820.00152417644301441
950.9988802015331060.002239596933787260.00111979846689363
960.9981496036346750.00370079273064950.00185039636532475
970.996797540977710.006404918044580920.00320245902229046
980.9984237855788120.003152428842376410.00157621442118821
990.9971168223090230.005766355381953180.00288317769097659
1000.9967583218773770.006483356245246660.00324167812262333
1010.9993174344335340.001365131132932530.000682565566466265
1020.999061026325050.001877947349898720.000938973674949358
1030.9981169840950030.003766031809993420.00188301590499671
1040.9966900447150.006619910570000680.00330995528500034
1050.9940039990390120.01199200192197500.00599600096098749
1060.9890800299832230.02183994003355430.0109199700167771
1070.9874445946448920.02511081071021550.0125554053551077
1080.9861426799593460.02771464008130720.0138573200406536
1090.9755764305051020.04884713898979550.0244235694948977
1100.9782030695705520.04359386085889540.0217969304294477
1110.9587832428781090.08243351424378270.0412167571218913
1120.9608923980419970.07821520391600670.0391076019580034
1130.9343435467790930.1313129064418140.065656453220907
1140.9260039659740940.1479920680518120.0739960340259062
1150.9233160123424360.1533679753151280.0766839876575639
1160.8618304381410170.2763391237179660.138169561858983
1170.956868462750740.08626307449851920.0431315372492596


Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level740.672727272727273NOK
5% type I error level800.727272727272727NOK
10% type I error level830.754545454545455NOK
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Dec/24/t1293183417ronw9pp61k6yne4/1008z91293183464.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/24/t1293183417ronw9pp61k6yne4/1008z91293183464.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/24/t1293183417ronw9pp61k6yne4/1tpkf1293183464.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/24/t1293183417ronw9pp61k6yne4/1tpkf1293183464.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/24/t1293183417ronw9pp61k6yne4/2tpkf1293183464.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/24/t1293183417ronw9pp61k6yne4/2tpkf1293183464.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/24/t1293183417ronw9pp61k6yne4/3mgj01293183464.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/24/t1293183417ronw9pp61k6yne4/3mgj01293183464.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/24/t1293183417ronw9pp61k6yne4/4mgj01293183464.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/24/t1293183417ronw9pp61k6yne4/4mgj01293183464.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/24/t1293183417ronw9pp61k6yne4/5mgj01293183464.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/24/t1293183417ronw9pp61k6yne4/5mgj01293183464.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/24/t1293183417ronw9pp61k6yne4/6x81l1293183464.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/24/t1293183417ronw9pp61k6yne4/6x81l1293183464.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/24/t1293183417ronw9pp61k6yne4/7x81l1293183464.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/24/t1293183417ronw9pp61k6yne4/7x81l1293183464.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/24/t1293183417ronw9pp61k6yne4/88z0o1293183464.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/24/t1293183417ronw9pp61k6yne4/88z0o1293183464.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/24/t1293183417ronw9pp61k6yne4/98z0o1293183464.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/24/t1293183417ronw9pp61k6yne4/98z0o1293183464.ps (open in new window)


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