Home » date » 2010 » Dec » 12 »

Multiple Lineair Regression en Seizoenaliteit

*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: Sun, 12 Dec 2010 12:49:29 +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/12/t12921581515bpedysd8wwvujj.htm/, Retrieved Sun, 12 Dec 2010 13:49:21 +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/12/t12921581515bpedysd8wwvujj.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 «
43880 43110 44496 44164 40399 36763 37903 35532 35533 32110 33374 35462 33508 36080 34560 38737 38144 37594 36424 36843 37246 38661 40454 44928 48441 48140 45998 47369 49554 47510 44873 45344 42413 36912 43452 42142 44382 43636 44167 44423 42868 43908 42013 38846 35087 33026 34646 37135 37985 43121 43722 43630 42234 39351 39327 35704 30466 28155 29257 29998 32529 34787 33855 34556 31348 30805 28353 24514 21106 21346 23335 24379 26290 30084 29429 30632 27349 27264 27474 24482 21453 18788 19282 19713 21917 23812 23785 24696 24562 23580 24939 23899 21454 19761 19815 20780 23462 25005 24725 26198 27543 26471 26558 25317 22896 22248 23406 25073 27691 30599 31948 32946 34012 32936 32974 30951 29812 29010 31068 32447 34844 35676 35387 36488 35652 33488 32914 29781 27951
 
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 time8 seconds
R Server'Gwilym Jenkins' @ 72.249.127.135


Multiple Linear Regression - Estimated Regression Equation
OPENVAC[t] = + 31205.7 + 2878.75454545454M1[t] + 4617.02727272725M2[t] + 4437.20909090909M3[t] + 5506.93636363636M4[t] + 4582.02727272727M5[t] + 3309.75454545454M6[t] + 2771.75454545454M7[t] + 722.75454545454M8[t] -1622.33636363637M9[t] -3204.00000000001M10[t] -1396.80000000001M11[t] + e[t]


Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STAT
H0: parameter = 0
2-tail p-value1-tail p-value
(Intercept)31205.72460.79733112.681100
M12878.754545454543400.0801280.84670.3989060.199453
M24617.027272727253400.0801281.35790.1771030.088551
M34437.209090909093400.0801281.3050.1944430.097222
M45506.936363636363400.0801281.61960.1080.054
M54582.027272727273400.0801281.34760.1803830.090192
M63309.754545454543400.0801280.97340.3323460.166173
M72771.754545454543400.0801280.81520.4166130.208306
M8722.754545454543400.0801280.21260.8320320.416016
M9-1622.336363636373400.080128-0.47710.6341480.317074
M10-3204.000000000013480.09296-0.92070.359120.17956
M11-1396.800000000013480.09296-0.40140.6888810.34444


Multiple Linear Regression - Regression Statistics
Multiple R0.347257952103242
R-squared0.120588085298937
Adjusted R-squared0.0379083326347348
F-TEST (value)1.45849596077890
F-TEST (DF numerator)11
F-TEST (DF denominator)117
p-value0.156576377353524
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation7781.72442733709
Sum Squared Residuals7084962502.37273


Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolation
Forecast
Residuals
Prediction Error
14388034084.45454545459795.5454545455
24311035822.72727272737287.27272727272
34449635642.90909090918853.09090909094
44416436712.63636363647451.36363636363
54039935787.72727272734611.27272727273
63676334515.45454545462247.54545454545
73790333977.45454545453925.54545454546
83553231928.45454545463603.54545454545
93553329583.36363636365949.63636363636
103211028001.74108.3
113337429808.93565.1
123546231205.74256.3
133350834084.4545454545-576.454545454547
143608035822.7272727273257.272727272731
153456035642.9090909091-1082.90909090909
163873736712.63636363642024.36363636364
173814435787.72727272732356.27272727273
183759434515.45454545453078.54545454546
193642433977.45454545452446.54545454545
203684331928.45454545454914.54545454545
213724629583.36363636367662.63636363636
223866128001.710659.3
234045429808.910645.1
244492831205.713722.3
254844134084.454545454514356.5454545455
264814035822.727272727312317.2727272727
274599835642.909090909110355.0909090909
284736936712.636363636410656.3636363636
294955435787.727272727313766.2727272727
304751034515.454545454512994.5454545455
314487333977.454545454510895.5454545455
324534431928.454545454513415.5454545455
334241329583.363636363612829.6363636364
343691228001.78910.3
354345229808.913643.1
364214231205.710936.3
374438234084.454545454510297.5454545455
384363635822.72727272737813.27272727273
394416735642.90909090918524.0909090909
404442336712.63636363647710.36363636364
414286835787.72727272737080.27272727273
424390834515.45454545459392.54545454545
434201333977.45454545458035.54545454545
443884631928.45454545456917.54545454545
453508729583.36363636365503.63636363636
463302628001.75024.3
473464629808.94837.1
483713531205.75929.3
493798534084.45454545463900.54545454545
504312135822.72727272737298.27272727273
514372235642.90909090918079.0909090909
524363036712.63636363646917.36363636364
534223435787.72727272736446.27272727273
543935134515.45454545454835.54545454545
553932733977.45454545455349.54545454545
563570431928.45454545453775.54545454546
573046629583.3636363636882.636363636364
582815528001.7153.300000000001
592925729808.9-551.899999999999
602999831205.7-1207.70000000001
613252934084.4545454545-1555.45454545455
623478735822.7272727273-1035.72727272727
633385535642.9090909091-1787.90909090909
643455636712.6363636364-2156.63636363636
653134835787.7272727273-4439.72727272727
663080534515.4545454545-3710.45454545454
672835333977.4545454545-5624.45454545455
682451431928.4545454545-7414.45454545455
692110629583.3636363636-8477.36363636363
702134628001.7-6655.7
712333529808.9-6473.9
722437931205.7-6826.7
732629034084.4545454546-7794.45454545455
743008435822.7272727273-5738.72727272727
752942935642.9090909091-6213.9090909091
763063236712.6363636364-6080.63636363636
772734935787.7272727273-8438.72727272727
782726434515.4545454545-7251.45454545454
792747433977.4545454545-6503.45454545455
802448231928.4545454545-7446.45454545455
812145329583.3636363636-8130.36363636363
821878828001.7-9213.7
831928229808.9-10526.9
841971331205.7-11492.7
852191734084.4545454545-12167.4545454545
862381235822.7272727273-12010.7272727273
872378535642.9090909091-11857.9090909091
882469636712.6363636364-12016.6363636364
892456235787.7272727273-11225.7272727273
902358034515.4545454545-10935.4545454545
912493933977.4545454545-9038.45454545455
922389931928.4545454545-8029.45454545455
932145429583.3636363636-8129.36363636363
941976128001.7-8240.7
951981529808.9-9993.9
962078031205.7-10425.7
972346234084.4545454545-10622.4545454545
982500535822.7272727273-10817.7272727273
992472535642.9090909091-10917.9090909091
1002619836712.6363636364-10514.6363636364
1012754335787.7272727273-8244.72727272727
1022647134515.4545454545-8044.45454545454
1032655833977.4545454545-7419.45454545454
1042531731928.4545454545-6611.45454545455
1052289629583.3636363636-6687.36363636364
1062224828001.7-5753.7
1072340629808.9-6402.9
1082507331205.7-6132.70000000001
1092769134084.4545454546-6393.45454545455
1103059935822.7272727273-5223.72727272727
1113194835642.9090909091-3694.90909090910
1123294636712.6363636364-3766.63636363636
1133401235787.7272727273-1775.72727272727
1143293634515.4545454545-1579.45454545455
1153297433977.4545454545-1003.45454545455
1163095131928.4545454545-977.454545454545
1172981229583.3636363636228.636363636365
1182901028001.71008.30000000000
1193106829808.91259.1
1203244731205.71241.30000000000
1213484434084.4545454545759.545454545453
1223567635822.7272727273-146.727272727269
1233538735642.9090909091-255.909090909094
1243648836712.6363636364-224.636363636361
1253565235787.7272727273-135.727272727271
1263348834515.4545454545-1027.45454545455
1273291433977.4545454545-1063.45454545455
1282978131928.4545454545-2147.45454545455
1292795129583.3636363636-1632.36363636364


Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
150.4194004698014910.8388009396029820.580599530198509
160.2966084581574250.5932169163148510.703391541842575
170.1801070806665690.3602141613331380.819892919333431
180.1000580279230940.2001160558461890.899941972076906
190.05287904654932010.1057580930986400.94712095345068
200.02666976370606650.05333952741213290.973330236293934
210.01336798200715210.02673596401430430.986632017992848
220.01107779389693080.02215558779386160.98892220610307
230.01002476017638440.02004952035276880.989975239823616
240.01419307586817920.02838615173635830.98580692413182
250.02589279160840470.05178558321680950.974107208391595
260.03356150164272350.06712300328544710.966438498357276
270.03198466732590470.06396933465180940.968015332674095
280.02957556786027660.05915113572055320.970424432139723
290.04993977053028620.09987954106057250.950060229469714
300.07680307371139990.1536061474228000.9231969262886
310.08437922298465740.1687584459693150.915620777015343
320.1132187098185990.2264374196371990.8867812901814
330.1232555199397470.2465110398794940.876744480060253
340.1058502000473410.2117004000946820.894149799952659
350.1303490707830930.2606981415661850.869650929216907
360.1274576954109990.2549153908219990.872542304589
370.1296236468205440.2592472936410880.870376353179456
380.1175659473134570.2351318946269140.882434052686543
390.1126369407998080.2252738815996150.887363059200192
400.1041877408683030.2083754817366070.895812259131697
410.09485104652759770.1897020930551950.905148953472402
420.1022663814834210.2045327629668410.89773361851658
430.1014360022403000.2028720044805990.8985639977597
440.09688079151298720.1937615830259740.903119208487013
450.09589808757954210.1917961751590840.904101912420458
460.09319397889334050.1863879577866810.90680602110666
470.1000242955512570.2000485911025130.899975704448743
480.1129882770106280.2259765540212560.887011722989372
490.1257579459395270.2515158918790550.874242054060473
500.1488315781459360.2976631562918720.851168421854064
510.1920251398238580.3840502796477160.807974860176142
520.233572037510770.467144075021540.76642796248923
530.2809211358392770.5618422716785530.719078864160723
540.3145764036271390.6291528072542790.68542359637286
550.3556767918398310.7113535836796620.644323208160169
560.3977428045785130.7954856091570250.602257195421487
570.4528152082146640.9056304164293270.547184791785336
580.499210524708710.998421049417420.50078947529129
590.5765258833137030.8469482333725940.423474116686297
600.6660937422810510.6678125154378970.333906257718949
610.7324261209144280.5351477581711440.267573879085572
620.7741350572819690.4517298854360630.225864942718031
630.8101734634942150.3796530730115690.189826536505785
640.8410631604479520.3178736791040960.158936839552048
650.8760016361346350.2479967277307310.123998363865365
660.8939900793965110.2120198412069790.106009920603489
670.9160751838914150.1678496322171710.0839248161085854
680.9453575460710850.1092849078578300.0546424539289149
690.9685828381011370.06283432379772580.0314171618988629
700.974196399495450.05160720100909760.0258036005045488
710.9787540967480820.04249180650383540.0212459032519177
720.9828086388571540.03438272228569220.0171913611428461
730.9861291983887980.02774160322240360.0138708016112018
740.9863075380063470.02738492398730690.0136924619936535
750.9863181796840060.02736364063198850.0136818203159942
760.985894843146020.02821031370795840.0141051568539792
770.9876020034257610.02479599314847710.0123979965742386
780.9873329697234040.02533406055319140.0126670302765957
790.9858897874582840.02822042508343130.0141102125417157
800.9853663645023070.02926727099538630.0146336354976931
810.9857285971869690.0285428056260620.014271402813031
820.9868506996829720.0262986006340550.0131493003170275
830.9892193897545670.02156122049086550.0107806102454327
840.99210475144340.01579049711319860.0078952485565993
850.9944199947681230.01116001046375340.00558000523187671
860.9958680117104950.008263976579010090.00413198828950504
870.9969150791922410.006169841615517010.00308492080775850
880.9977506110559210.004498777888157180.00224938894407859
890.9983828925413840.003234214917230940.00161710745861547
900.9987448142144040.002510371571192640.00125518578559632
910.9986917091969130.002616581606174110.00130829080308706
920.9983939464645320.003212107070935510.00160605353546776
930.998138668539230.003722662921539680.00186133146076984
940.9978335716761960.004332856647608630.00216642832380432
950.998020764992190.003958470015621940.00197923500781097
960.9983685664456490.003262867108701790.00163143355435090
970.9986380263110780.002723947377844400.00136197368892220
980.9989552667891010.002089466421797840.00104473321089892
990.9993625497386070.001274900522785520.000637450261392762
1000.9996022762049250.0007954475901496180.000397723795074809
1010.9996643364173530.0006713271652937820.000335663582646891
1020.999687686243470.0006246275130592480.000312313756529624
1030.9996895474229940.0006209051540112850.000310452577005643
1040.9995710196776140.0008579606447719980.000428980322385999
1050.9995424633939050.0009150732121895930.000457536606094797
1060.9995107352389780.0009785295220443490.000489264761022174
1070.9996568683288480.000686263342304660.00034313167115233
1080.9998016172120880.0003967655758243290.000198382787912165
1090.9999355516944280.0001288966111438296.44483055719144e-05
1100.9999594838633868.10322732289427e-054.05161366144714e-05
1110.9999386567532070.0001226864935867396.13432467933694e-05
1120.9999608426354127.83147291762603e-053.91573645881302e-05
1130.9998299748970450.0003400502059097890.000170025102954895
1140.9982717834662990.003456433067402160.00172821653370108


Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level290.29NOK
5% type I error level480.48NOK
10% type I error level560.56NOK
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Dec/12/t12921581515bpedysd8wwvujj/10din11292158159.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/12/t12921581515bpedysd8wwvujj/10din11292158159.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/12/t12921581515bpedysd8wwvujj/17z871292158159.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/12/t12921581515bpedysd8wwvujj/17z871292158159.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/12/t12921581515bpedysd8wwvujj/2h8pa1292158159.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/12/t12921581515bpedysd8wwvujj/2h8pa1292158159.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/12/t12921581515bpedysd8wwvujj/3h8pa1292158159.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/12/t12921581515bpedysd8wwvujj/3h8pa1292158159.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/12/t12921581515bpedysd8wwvujj/4h8pa1292158159.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/12/t12921581515bpedysd8wwvujj/4h8pa1292158159.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/12/t12921581515bpedysd8wwvujj/5sz7v1292158159.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/12/t12921581515bpedysd8wwvujj/5sz7v1292158159.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/12/t12921581515bpedysd8wwvujj/6sz7v1292158159.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/12/t12921581515bpedysd8wwvujj/6sz7v1292158159.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/12/t12921581515bpedysd8wwvujj/7lroy1292158159.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/12/t12921581515bpedysd8wwvujj/7lroy1292158159.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/12/t12921581515bpedysd8wwvujj/8lroy1292158159.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/12/t12921581515bpedysd8wwvujj/8lroy1292158159.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/12/t12921581515bpedysd8wwvujj/9din11292158159.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/12/t12921581515bpedysd8wwvujj/9din11292158159.ps (open in new window)


 
Parameters (Session):
par1 = 1 ; par2 = Include Monthly Dummies ; par3 = No Linear Trend ;
 
Parameters (R input):
par1 = 1 ; par2 = Include Monthly 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