Home » date » 2010 » Dec » 17 »

Time Series Analysis Multiple Linear Regression (verleden)

*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, 17 Dec 2010 12:25:38 +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/17/t12925886525esubilo0lalgu9.htm/, Retrieved Fri, 17 Dec 2010 13:24:24 +0100
 
BibTeX entries for LaTeX users:
@Manual{KEY,
    author = {{YOUR NAME}},
    publisher = {Office for Research Development and Education},
    title = {Statistical Computations at FreeStatistics.org, URL http://www.freestatistics.org/blog/date/2010/Dec/17/t12925886525esubilo0lalgu9.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'George Udny Yule' @ 72.249.76.132


Multiple Linear Regression - Estimated Regression Equation
OPENVAC[t] = + 1842.18557079189 + 1.17683534632143Y1[t] -0.0681417804041687Y2[t] -0.194231091231271Y3[t] + 0.0268886495538088Y4[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.18557079189832.1913192.21370.0287430.014371
Y11.176835346321430.0913612.881300
Y2-0.06814178040416870.139838-0.48730.6269410.313471
Y3-0.1942310912312710.139921-1.38810.1676630.083832
Y40.02688864955380880.0910440.29530.7682470.384123


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


Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolation
Forecast
Residuals
Prediction Error
14039943590.476744309-3191.47674430903
23676338892.4061838999-2129.40618389993
33790334971.73905846722931.26094153278
43553237283.4478936571-1751.44789365708
53553335020.478140015512.521859984981
63211034864.0285629183-2754.02856291833
73337431326.82800848032047.17199151966
83546232983.64998137082478.35001862921
93350836019.6308879933-2511.63088799327
103608033240.26663705832839.73336294173
113456036028.6689212519-1468.66892125186
123873734500.2895881784236.71041182198
133814438967.403548102-823.403548102015
143759438349.3008363091-755.30083630912
153642436890.2754562172-466.275456217195
163684335778.34900652981064.65099347019
173724636442.0510307032803.94896929684
183866137100.22588876731560.77411123266
194045438625.14421910541828.85578089456
204492840571.78059018474356.21940981529
214844145450.76284904012990.23715095993
224814048969.91018768-829.910187679996
234599847555.5221203587-1557.52212035867
244736944493.21747904812875.7825209519
254955446405.54181682373148.45818317634
264751049291.4541815036-1781.45418150357
274487346413.2266300171-1540.22663001711
284534443061.66302511162282.33697488845
294241344251.4023979065-1838.40239790653
303691241227.2302071569-4315.23020715692
314345234790.7943125648661.205687436
324214243444.1012938482-1302.10129384822
334438242446.45434734491935.54565265512
344363643753.6454575863-117.645457586344
354416743153.38319872011013.61680127991
364442343358.81476052471064.18523947525
374286843829.0282928475-961.02829284748
384390841858.40939152322049.59060847676
394201343152.8333337839-1139.83333378388
403884641160.7757420348-2314.77574203482
413508737319.0546891640-2232.05468916404
423302633507.167754301-481.167754300992
433464631902.03093309682743.96906690325
443713534593.90272235192541.09727764810
453798537711.8920604461273.107939553917
464312138172.52533886834948.47466113173
474372243718.94959043423.05040956584889
484363043978.0808706104-348.080870610374
494223442854.1432762828-620.143276282826
503935141238.9173948937-1887.91739489366
513932737975.25635566831351.74364433171
523570438412.1379078617-2708.1379078617
533046634672.5305321115-4206.53053211148
542815528682.28622801-527.286228010027
552925727022.60030435982234.39969564017
562999829396.9133890560601.086610943969
573252930501.88144414742027.11855585256
583478733153.77631475181633.22368524821
593385535524.3097337486-1669.30973374856
603455633801.9606482374754.039351762602
613134834319.9117333659-2971.91173336589
623080530738.594502023566.4054979765514
632835330156.9555241702-1803.95552417021
642451427950.2985257567-3436.29852575665
652110623618.7199715496-2512.71997154965
662134620331.31550524921014.68449475084
672333521525.70536651461809.29463348538
682437924408.7908763301-29.7908763300542
692629025363.6209970909926.379002909145
703008427161.54096060312922.45903939692
712942931346.9395869113-1917.93958691132
723063229974.4786550086657.52134499142
732734930749.3158919639-3400.31589196388
742726427033.0277893280230.972210671969
752747426905.4341817486568.56581825137
762448227828.369373736-3346.36937373598
772145324221.2024499269-2768.20244992687
781878820817.3743285179-2029.37432851788
791928218474.2956247857807.704375214252
801971319745.1252665202-32.1252665201696
812191720654.85939989791262.14060010210
822381223051.626985707760.373014293006
832378525061.1148755342-1276.11487553423
842469624483.7153302016212.284669798376
852456225248.8468245047-686.8468245047
862358025085.2719565171-1505.27195651714
872493923761.0801273541177.91987264599
882389925477.8371173302-1578.83711733024
892145424348.4555301356-2894.45553013558
901976121251.5958531549-1490.59585315488
911981519664.3622745450150.637725454974
922078020290.2062399951489.793760004865
932346221685.26318234901776.73681765102
942500524719.7678004720285.232199528046
952472526166.8874688397-1441.88746883968
962619825237.2505648432960.7494351568
972754326762.2255128213780.774487178695
982647128340.5701028946-1869.57010289458
992655826693.7206977357-135.720697735664
1002531726647.5195245456-1330.51952454560
1012289625425.5194883153-2529.51948831533
1022224822615.2423270939-367.242327093904
1032340622261.00436976531144.99563023470
1042507324104.8002322821968.19976771795
1052769126048.44089943991642.55910056005
1063059928773.4600396191825.53996038097
1073194831724.6558727244223.344127275565
1083294632650.3768394595295.623160540539
1093401233238.5057245544773.494275445636
1103293634241.1811577211-1305.18115772115
1113297432744.6973463677229.302653632283
1123095132682.522174245-1731.52217424498
1132981230536.8508355706-724.85083557057
1142901029297.9732294814-287.973229481402
1153106828825.71603585592242.28396414414
1163244731469.1263613346977.873638665416
1173484433076.89368316581767.10631683425
1183567635382.5082104248293.491789575225
1193538735985.7915369092-598.791536909233
1203648835160.49968257941327.50031742058
1213565236378.7401984922-726.740198492183
1223348835398.3858905371-1910.38589053708
1233291432687.0614783487226.938521651301
1242978132350.9983977829-2569.9983977829
1252795129100.9238101073-1149.92381010733


Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
80.703389739425150.59322052114970.296610260574850
90.563774899010370.872450201979260.43622510098963
100.5961302822289330.8077394355421340.403869717771067
110.4694554307574280.9389108615148560.530544569242572
120.6583536110777240.6832927778445520.341646388922276
130.6493539497511430.7012921004977140.350646050248857
140.5509365671750160.8981268656499670.449063432824984
150.4575187760518610.9150375521037220.542481223948139
160.3787347371064780.7574694742129550.621265262893522
170.3242709368241350.648541873648270.675729063175865
180.3280785854641960.6561571709283930.671921414535804
190.4118303963760970.8236607927521950.588169603623903
200.807011403505750.3859771929885010.192988596494251
210.8970103357072070.2059793285855860.102989664292793
220.862891099039740.274217801920520.13710890096026
230.8304965362752980.3390069274494040.169503463724702
240.8855432482944580.2289135034110840.114456751705542
250.9293567056513380.1412865886973240.0706432943486618
260.9164525346298130.1670949307403740.0835474653701872
270.9029439218667840.1941121562664320.097056078133216
280.8998836362829040.2002327274341910.100116363717096
290.8860034848741730.2279930302516550.113996515125827
300.9452289177225320.1095421645549350.0547710822774676
310.9997211058446680.0005577883106630170.000278894155331509
320.9996269486214930.0007461027570145020.000373051378507251
330.9996939488716950.0006121022566098900.000306051128304945
340.99949867629970.001002647400600910.000501323700300457
350.9992980439829540.001403912034092190.000701956017046096
360.9990239899890.001952020022000300.000976010011000151
370.998531298187460.002937403625080810.00146870181254040
380.9986576370159260.002684725968147550.00134236298407378
390.998088541694320.003822916611359180.00191145830567959
400.9982764491116830.003447101776633740.00172355088831687
410.9987532208819450.002493558236109920.00124677911805496
420.9983348270719280.003330345856143220.00166517292807161
430.9987229005004920.002554198999015780.00127709949950789
440.9988782582702730.00224348345945420.0011217417297271
450.9982548285556750.003490342888649940.00174517144432497
460.9998291844881510.0003416310236978890.000170815511848944
470.9997164957559750.0005670084880492380.000283504244024619
480.9995677380704950.0008645238590103150.000432261929505157
490.9993911727948910.001217654410217190.000608827205108595
500.9992581411629630.001483717674073790.000741858837036896
510.9994021857455450.001195628508910580.000597814254455291
520.9994950202874360.001009959425129010.000504979712564503
530.9998853274984670.0002293450030665790.000114672501533290
540.9998598948250380.0002802103499240240.000140105174962012
550.999897514225820.0002049715483611860.000102485774180593
560.99983423001010.0003315399798020740.000165769989901037
570.9998272652414310.0003454695171373360.000172734758568668
580.9997911521122450.0004176957755095570.000208847887754779
590.9998007353985920.000398529202816080.00019926460140804
600.9997529200155380.0004941599689250680.000247079984462534
610.9998747335007740.0002505329984519610.000125266499225981
620.999837254013010.0003254919739801840.000162745986990092
630.9998288972713050.0003422054573903480.000171102728695174
640.9999319074229030.0001361851541947866.80925770973931e-05
650.9999466783197720.0001066433604551955.33216802275974e-05
660.999929151198990.0001416976020207217.08488010103607e-05
670.9999192125942560.0001615748114875068.07874057437528e-05
680.9998646492263170.0002707015473650960.000135350773682548
690.9997860240450330.0004279519099347820.000213975954967391
700.9998787674301680.0002424651396631610.000121232569831581
710.9999113328268470.0001773343463068038.86671731534016e-05
720.9998725535945830.0002548928108346020.000127446405417301
730.9999729110456035.41779087938425e-052.70889543969213e-05
740.9999684422363956.31155272103652e-053.15577636051826e-05
750.9999435494491140.0001129011017726835.64505508863413e-05
760.9999866127077452.67745845103121e-051.33872922551560e-05
770.999989307076812.13858463785590e-051.06929231892795e-05
780.9999879183811782.41632376447028e-051.20816188223514e-05
790.9999819970407963.60059184081912e-051.80029592040956e-05
800.9999668972144276.62055711451267e-053.31027855725633e-05
810.999953252331239.34953375419370e-054.67476687709685e-05
820.999914748952460.0001705020950784128.5251047539206e-05
830.999901048386630.0001979032267395579.89516133697787e-05
840.9998237559778870.0003524880442251660.000176244022112583
850.9997272428403230.0005455143193537070.000272757159676854
860.9996601898705960.0006796202588088330.000339810129404417
870.9995874143300240.0008251713399529450.000412585669976473
880.999667072349610.0006658553007776620.000332927650388831
890.999855328073870.0002893438522606950.000144671926130347
900.9997987340355710.0004025319288580960.000201265964429048
910.9996225481498460.000754903700308390.000377451850154195
920.9993117697058340.001376460588332070.000688230294166036
930.9990975070005820.001804985998836020.00090249299941801
940.9984758235569860.003048352886028810.00152417644301441
950.9988802015331060.002239596933787240.00111979846689362
960.9981496036346750.003700792730649490.00185039636532474
970.996797540977710.00640491804458060.0032024590222903
980.9984237855788120.003152428842376380.00157621442118819
990.9971168223090230.005766355381953230.00288317769097661
1000.9967583218773770.006483356245246570.00324167812262329
1010.9993174344335340.001365131132932490.000682565566466246
1020.999061026325050.00187794734989870.00093897367494935
1030.9981169840950030.003766031809993410.00188301590499671
1040.9966900447150.006619910570000680.00330995528500034
1050.9940039990390120.0119920019219750.0059960009609875
1060.9890800299832230.02183994003355390.0109199700167769
1070.9874445946448920.02511081071021530.0125554053551076
1080.9861426799593470.02771464008130680.0138573200406534
1090.9755764305051020.04884713898979530.0244235694948977
1100.9782030695705520.04359386085889510.0217969304294476
1110.958783242878110.08243351424378070.0412167571218904
1120.9608923980419970.07821520391600650.0391076019580032
1130.9343435467790950.1313129064418100.0656564532209049
1140.9260039659740930.1479920680518130.0739960340259067
1150.9233160123424360.1533679753151280.0766839876575639
1160.8618304381410170.2763391237179650.138169561858983
1170.956868462750740.08626307449851950.0431315372492597


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/17/t12925886525esubilo0lalgu9/10fn5p1292588728.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/17/t12925886525esubilo0lalgu9/10fn5p1292588728.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/17/t12925886525esubilo0lalgu9/1848w1292588728.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/17/t12925886525esubilo0lalgu9/1848w1292588728.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/17/t12925886525esubilo0lalgu9/2848w1292588728.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/17/t12925886525esubilo0lalgu9/2848w1292588728.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/17/t12925886525esubilo0lalgu9/31vpy1292588728.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/17/t12925886525esubilo0lalgu9/31vpy1292588728.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/17/t12925886525esubilo0lalgu9/41vpy1292588728.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/17/t12925886525esubilo0lalgu9/41vpy1292588728.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/17/t12925886525esubilo0lalgu9/51vpy1292588728.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/17/t12925886525esubilo0lalgu9/51vpy1292588728.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/17/t12925886525esubilo0lalgu9/6tm611292588728.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/17/t12925886525esubilo0lalgu9/6tm611292588728.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/17/t12925886525esubilo0lalgu9/74v641292588728.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/17/t12925886525esubilo0lalgu9/74v641292588728.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/17/t12925886525esubilo0lalgu9/84v641292588728.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/17/t12925886525esubilo0lalgu9/84v641292588728.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/17/t12925886525esubilo0lalgu9/94v641292588728.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/17/t12925886525esubilo0lalgu9/94v641292588728.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