Home » date » 2009 » Nov » 24 »

WS7 Toevoeging 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: Mon, 23 Nov 2009 17:24:54 -0700
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2009/Nov/24/t12590223384opnfv45nqys1fs.htm/, Retrieved Tue, 24 Nov 2009 01:25:51 +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/2009/Nov/24/t12590223384opnfv45nqys1fs.htm/},
    year = {2009},
}
@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 = {2009},
    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 «
423.4 0 404.1 0 500 0 472.6 0 496.1 0 562 0 434.8 0 538.2 0 577.6 0 518.1 0 625.2 0 561.2 0 523.3 0 536.1 0 607.3 0 637.3 0 606.9 0 652.9 0 617.2 0 670.4 0 729.9 0 677.2 0 710 0 844.3 0 748.2 0 653.9 0 742.6 0 854.2 0 808.4 0 1819 1 1936.5 1 1966.1 1 2083.1 1 1620.1 1 1527.6 1 1795 1 1685.1 1 1851.8 1 2164.4 1 1981.8 1 1726.5 1 2144.6 1 1758.2 1 1672.9 1 1837.3 1 1596.1 1 1446 1 1898.4 1 1964.1 1 1755.9 1 2255.3 1 1881.2 1 2117.9 1 1656.5 1 1544.1 1 2098.9 1 2133.3 1 1963.5 1 1801.2 1 2365.4 1 1936.5 1 1667.6 1 1983.5 1 2058.6 1 2448.3 1 1858.1 1 1625.4 1 2130.6 1 2515.7 1 2230.2 1 2086.9 1 2235 1 2100.2 1 2288.6 1 2490 1 2573.7 1 2543.8 1 2004.7 1 2390 1 2338.4 1 2724.5 1 2292.5 1 2386 1 2477.9 1 2337 1 2605.1 1 2560.8 1 2839.3 1 2407.2 1 2085.2 1 2735.6 1 2798.7 1 3053.2 1 2405 1 2471.9 1 2727.3 1 2790.7 1 2385.4 1 3206.6 1 2705.6 1 3518.4 1 1954.9 1 2584.3 1 2535.8 1 2685.9 1 2866 1 2236.6 1 2934.9 1 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 time5 seconds
R Server'Gwilym Jenkins' @ 72.249.127.135


Multiple Linear Regression - Estimated Regression Equation
Y(Export_farma_prod)[t] = + 472.118850243288 + 874.564984681923`X(sprong)`[t] -115.286974529945M1[t] -194.639386075569M2[t] + 107.418202378807M3[t] + 15.3157908331826M4[t] + 91.1233792875589M5[t] -247.605530726257M6[t] -196.257942271881M7[t] -59.5103538175048M8[t] + 114.267234636871M9[t] -139.805176908753M10[t] -266.707588454377M11[t] + 13.6124115456238t + e[t]


Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STAT
H0: parameter = 0
2-tail p-value1-tail p-value
(Intercept)472.11885024328875.2432456.274600
`X(sprong)`874.56498468192365.50337113.351400
M1-115.28697452994591.94054-1.25390.2126260.106313
M2-194.63938607556991.908568-2.11780.0365340.018267
M3107.41820237880791.8836931.16910.2449990.122499
M415.315790833182691.8659210.16670.8679090.433954
M591.123379287558991.8552560.9920.3234410.16172
M6-247.60553072625791.874111-2.69510.0081860.004093
M7-196.25794227188191.835005-2.13710.0348920.017446
M8-59.510353817504891.802996-0.64820.5182320.259116
M9114.26723463687191.7780921.2450.2158630.107932
M10-139.80517690875391.7603-1.52360.1305890.065294
M11-266.70758845437791.749623-2.90690.0044460.002223
t13.61241154562380.80815516.843800


Multiple Linear Regression - Regression Statistics
Multiple R0.97203000679112
R-squared0.944842334102346
Adjusted R-squared0.938077714699803
F-TEST (value)139.674130631388
F-TEST (DF numerator)13
F-TEST (DF denominator)106
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation205.150435212925
Sum Squared Residuals4461190.31321355


Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolation
Forecast
Residuals
Prediction Error
1423.4370.44428725896752.955712741033
2404.1304.7042872589699.39571274104
3500620.374287258967-120.374287258967
4472.6541.884287258965-69.2842872589649
5496.1631.304287258966-135.204287258967
6562306.187788790772255.812211209228
7434.8371.14778879077363.652211209227
8538.2521.50778879077316.692211209227
9577.6708.897788790773-131.297788790773
10518.1468.43778879077449.6622112092263
11625.2355.147788790773270.052211209227
12561.2635.467788790773-74.2677887907733
13523.3533.793225806452-10.4932258064518
14536.1468.05322580645368.0467741935474
15607.3783.723225806451-176.423225806451
16637.3705.233225806452-67.9332258064518
17606.9794.653225806452-187.753225806452
18652.9469.53672733826183.363272661741
19617.2534.49672733825982.7032726617407
20670.4684.856727338259-14.4567273382594
21729.9872.24672733826-142.346727338259
22677.2631.78672733825945.4132726617408
23710518.496727338259191.503272661741
24844.3798.8167273382645.4832726617404
25748.2697.14216435393851.0578356460624
26653.9631.40216435393822.4978356460617
27742.6947.072164353937-204.472164353937
28854.2868.582164353938-14.3821643539378
29808.4958.002164353938-149.602164353938
3018191507.45065056767311.54934943233
311936.51572.41065056767364.08934943233
321966.11722.77065056767243.32934943233
332083.11910.16065056767172.939349432330
341620.11669.70065056767-49.6006505676697
351527.61556.41065056767-28.8106505676698
3617951836.73065056767-41.7306505676701
371685.11735.05608758335-49.9560875833482
381851.81669.31608758335182.483912416651
392164.41984.98608758335179.413912416652
401981.81906.4960875833575.3039124166515
411726.51995.91608758335-269.416087583348
422144.61670.79958911516473.800410884844
431758.21735.7595891151622.4404108848441
441672.91886.11958911516-213.219589115156
451837.32073.50958911516-236.209589115156
461596.11833.04958911516-236.949589115156
4714461719.75958911516-273.759589115156
481898.42000.07958911516-101.679589115156
491964.11898.4050261308365.6949738691657
501755.91832.66502613083-76.7650261308347
512255.32148.33502613083106.964973869166
521881.22069.84502613083-188.645026130834
532117.92159.26502613083-41.3650261308341
541656.51834.14852766264-177.648527662642
551544.11899.10852766264-355.008527662642
562098.92049.4685276626449.4314723373582
572133.32236.85852766264-103.558527662642
581963.51996.39852766264-32.8985276626418
591801.21883.10852766264-81.9085276626418
602365.42163.42852766264201.971472337358
611936.52061.75396467832-125.253964678320
621667.61996.01396467832-328.413964678321
631983.52311.68396467832-328.18396467832
642058.62233.19396467832-174.593964678321
652448.32322.61396467832125.686035321680
661858.11997.49746621013-139.397466210128
671625.42062.45746621013-437.057466210128
682130.62212.81746621013-82.217466210128
692515.72400.20746621013115.492533789872
702230.22159.7474662101370.452533789872
712086.92046.4574662101340.4425337898722
7222352326.77746621013-91.7774662101283
732100.22225.10290322581-124.902903225806
742288.62159.36290322581129.237096774193
7524902475.0329032258114.9670967741939
762573.72396.54290322581177.157096774193
772543.82485.9629032258157.8370967741938
782004.72160.84640475761-156.146404757614
7923902225.80640475761164.193595242386
802338.42376.16640475761-37.7664047576138
812724.52563.55640475761160.943595242386
822292.52323.09640475761-30.5964047576139
8323862209.80640475761176.193595242386
842477.92490.12640475761-12.2264047576142
8523372388.45184177329-51.4518417732923
862605.12322.71184177329282.388158226707
872560.82638.38184177329-77.581841773292
882839.32559.89184177329279.408158226707
892407.22649.31184177329-242.111841773293
902085.22324.1953433051-238.995343305100
912735.62389.1553433051346.4446566949
922798.72539.5153433051259.1846566949
933053.22726.9053433051326.2946566949
9424052486.4453433051-81.4453433051
952471.92373.155343305198.7446566949002
962727.32653.475343305173.8246566948999
972790.72551.80078032078238.899219679221
982385.42486.06078032078-100.660780320779
993206.62801.73078032078404.869219679222
1002705.62723.24078032078-17.6407803207786
1013518.42812.66078032078705.739219679223
1021954.92487.54428185259-532.644281852586
1032584.32552.5042818525931.7957181474141
1042535.82702.86428185259-167.064281852586
1052685.92890.25428185259-204.354281852586
10628662649.79428185259216.205718147414
1072236.62536.50428185259-299.904281852586
1082934.92816.82428185259118.075718147414
1092668.62715.14971886826-46.5497188682645
1102371.22649.40971886826-278.209718868265
1113165.92965.07971886826200.820281131736
1122887.22886.589718868260.610281131735011
1133112.22976.00971886826136.190281131735
1142671.22650.8932204000720.3067795999276
1152432.62715.85322040007-283.253220400072
1162812.32866.21322040007-53.913220400072
1173095.73053.6032204000742.0967795999279
1182862.92813.1432204000749.7567795999281
1192607.32699.85322040007-92.5532204000718
1202862.52980.17322040007-117.673220400073


Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
170.001360495485651080.002720990971302150.998639504514349
180.0001918393352016490.0003836786704032990.999808160664798
198.95729806534943e-050.0001791459613069890.999910427019347
209.75641441404676e-061.95128288280935e-050.999990243585586
211.28020089534354e-062.56040179068708e-060.999998719799105
221.79721535441836e-073.59443070883671e-070.999999820278465
235.0378347251856e-081.00756694503712e-070.999999949621653
241.24056793811648e-062.48113587623297e-060.999998759432062
254.12153113856137e-078.24306227712274e-070.999999587846886
269.96409406059555e-081.99281881211911e-070.99999990035906
272.0158895327569e-084.0317790655138e-080.999999979841105
281.27541965640027e-082.55083931280054e-080.999999987245803
292.68166879090223e-095.36333758180445e-090.999999997318331
306.34151656966387e-101.26830331393277e-090.999999999365848
315.36196931684638e-091.07239386336928e-080.99999999463803
321.76765653891894e-093.53531307783789e-090.999999998232344
331.21859754681983e-092.43719509363966e-090.999999998781402
345.90443088427099e-071.18088617685420e-060.999999409556912
357.82238354857151e-050.0001564476709714300.999921776164514
364.78583942099387e-059.57167884198774e-050.99995214160579
373.75672005295841e-057.51344010591682e-050.99996243279947
382.23821512839676e-054.47643025679352e-050.999977617848716
397.72498676212473e-050.0001544997352424950.999922750132379
403.78549461877936e-057.57098923755871e-050.999962145053812
415.93832759805872e-050.0001187665519611740.99994061672402
420.0002661594394655910.0005323188789311820.999733840560534
430.0003374655967280410.0006749311934560820.999662534403272
440.001169518654635830.002339037309271660.998830481345364
450.001498081670242270.002996163340484530.998501918329758
460.002266560578949110.004533121157898220.99773343942105
470.008497089513229440.01699417902645890.99150291048677
480.005606677007465690.01121335401493140.994393322992534
490.004103226918151070.008206453836302130.995896773081849
500.003008371261860580.006016742523721160.99699162873814
510.003357232093787490.006714464187574990.996642767906213
520.002757879463805210.005515758927610420.997242120536195
530.002539167578427700.005078335156855410.997460832421572
540.007190927929077540.01438185585815510.992809072070922
550.01652073735125220.03304147470250440.983479262648748
560.01362307146513160.02724614293026320.986376928534868
570.01036038012222150.02072076024444290.989639619877779
580.007587278825430210.01517455765086040.99241272117457
590.004989712315821860.009979424631643720.995010287684178
600.008435803944358440.01687160788871690.991564196055642
610.005804950124849270.01160990024969850.99419504987515
620.008632473780751620.01726494756150320.991367526219248
630.01335215889386440.02670431778772890.986647841106136
640.01219062315602140.02438124631204270.987809376843979
650.02034299782105810.04068599564211620.979657002178942
660.01771070759986620.03542141519973240.982289292400134
670.04877594992002590.09755189984005180.951224050079974
680.03848379767856290.07696759535712580.961516202321437
690.04675500389993310.09351000779986620.953244996100067
700.04322860336443890.08645720672887790.956771396635561
710.03391881816322970.06783763632645950.96608118183677
720.02674826907948380.05349653815896770.973251730920516
730.02270232973223740.04540465946447480.977297670267763
740.02152391636685520.04304783273371040.978476083633145
750.02182352089763240.04364704179526470.978176479102368
760.02372136687736710.04744273375473420.976278633122633
770.02455226711698020.04910453423396050.97544773288302
780.01993630199239110.03987260398478220.980063698007609
790.01855046545847870.03710093091695740.981449534541521
800.01359018132518500.02718036265037010.986409818674815
810.01193932989360340.02387865978720670.988060670106397
820.009280214923855710.01856042984771140.990719785076144
830.00783914434066360.01567828868132720.992160855659336
840.00547020180812450.01094040361624900.994529798191875
850.004324986585855230.008649973171710460.995675013414145
860.007026252969339680.01405250593867940.99297374703066
870.01172255477885640.02344510955771280.988277445221144
880.01228691514459360.02457383028918710.987713084855406
890.1264897893595880.2529795787191770.873510210640412
900.1212602283523990.2425204567047980.8787397716476
910.1625995912725280.3251991825450560.837400408727472
920.1652327281327360.3304654562654730.834767271867264
930.2042610610096990.4085221220193980.795738938990301
940.2286390089819760.4572780179639520.771360991018024
950.1943199533310940.3886399066621880.805680046668906
960.1393488015014120.2786976030028250.860651198498588
970.1237015707211410.2474031414422830.876298429278859
980.09044570406605560.1808914081321110.909554295933944
990.08273319093589370.1654663818717870.917266809064106
1000.0492048014048710.0984096028097420.95079519859513
1010.2171487385044430.4342974770088860.782851261495557
1020.5067853955466980.9864292089066040.493214604453302
1030.5306654344478140.9386691311043720.469334565552186


Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level370.425287356321839NOK
5% type I error level660.758620689655172NOK
10% type I error level730.839080459770115NOK
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2009/Nov/24/t12590223384opnfv45nqys1fs/10z8dn1259022288.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/24/t12590223384opnfv45nqys1fs/10z8dn1259022288.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Nov/24/t12590223384opnfv45nqys1fs/1tjf91259022288.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/24/t12590223384opnfv45nqys1fs/1tjf91259022288.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Nov/24/t12590223384opnfv45nqys1fs/2gtcn1259022288.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/24/t12590223384opnfv45nqys1fs/2gtcn1259022288.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Nov/24/t12590223384opnfv45nqys1fs/3f5bc1259022288.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/24/t12590223384opnfv45nqys1fs/3f5bc1259022288.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Nov/24/t12590223384opnfv45nqys1fs/4gcjr1259022288.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/24/t12590223384opnfv45nqys1fs/4gcjr1259022288.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Nov/24/t12590223384opnfv45nqys1fs/5myf81259022288.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/24/t12590223384opnfv45nqys1fs/5myf81259022288.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Nov/24/t12590223384opnfv45nqys1fs/6ybe51259022288.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/24/t12590223384opnfv45nqys1fs/6ybe51259022288.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Nov/24/t12590223384opnfv45nqys1fs/76x9d1259022288.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/24/t12590223384opnfv45nqys1fs/76x9d1259022288.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Nov/24/t12590223384opnfv45nqys1fs/8x8r41259022288.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/24/t12590223384opnfv45nqys1fs/8x8r41259022288.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Nov/24/t12590223384opnfv45nqys1fs/9xcxt1259022288.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/24/t12590223384opnfv45nqys1fs/9xcxt1259022288.ps (open in new window)


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





Copyright

Creative Commons License

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

Software written by Ed van Stee & Patrick Wessa


Disclaimer

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


Privacy Policy

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

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

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

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

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

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

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

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

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


FreeStatistics.org is powered by