Home » date » 2008 » Nov » 20 »

olieprijs en iraq

*Unverified author*
R Software Module: rwasp_multipleregression.wasp (opens new window with default values)
Title produced by software: Multiple Regression
Date of computation: Thu, 20 Nov 2008 12:05:41 -0700
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2008/Nov/20/t1227208000lll7qp2pr17u44d.htm/, Retrieved Thu, 20 Nov 2008 19:06:40 +0000
 
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/2008/Nov/20/t1227208000lll7qp2pr17u44d.htm/},
    year = {2008},
}
@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 = {2008},
    note = {{ISBN} 3-900051-07-0},
    url = {http://www.R-project.org},
}
 
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
 
Feedback Forum:

Post a new message
 
Original text written by user:
 
IsPrivate?
No (this computation is public)
 
User-defined keywords:
 
Dataseries X:
» Textbox « » Textfile « » CSV «
31.54 0 32.43 0 26.54 0 25.85 0 27.6 0 25.71 0 25.38 0 28.57 0 27.64 0 25.36 0 25.9 0 26.29 0 21.74 0 19.2 0 19.32 0 19.82 0 20.36 0 24.31 0 25.97 0 25.61 0 24.67 0 25.59 0 26.09 0 28.37 0 27.34 0 24.46 0 27.46 0 30.23 0 32.33 0 29.87 1 24.87 1 25.48 1 27.28 1 28.24 1 29.58 1 26.95 1 29.08 1 28.76 1 29.59 1 30.7 1 30.52 1 32.67 1 33.19 1 37.13 1 35.54 1 37.75 1 41.84 1 42.94 1 49.14 1 44.61 1 40.22 1 44.23 1 45.85 1 53.38 1 53.26 1 51.8 1 55.3 1 57.81 1 63.96 1 63.77 1 59.15 1 56.12 1 57.42 1 63.52 1 61.71 1 63.01 1 68.18 1 72.03 1 69.75 1 74.41 1 74.33 1 64.24 1 60.03 1 59.44 1 62.5 1 55.04 1 58.34 1 61.92 1 67.65 1 67.68 1 70.3 1 75.26 1 71.44 1 76.36 1 81.71 1 92.6 1 90.6 1 92.23 1 94.09 1 102.79 1 109.65 1 124.05 1 132.69 1 135.81 1 116.07 1 101.42 1 75.73 1
 
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 time6 seconds
R Server'Sir Ronald Aylmer Fisher' @ 193.190.124.24


Multiple Linear Regression - Estimated Regression Equation
olie[t] = + 7.71877900232017 -21.5680607115236iraq[t] -1.44152667676377M1[t] -0.258273046102948M2[t] -1.90729650038669M3[t] -2.06381995467044M4[t] -2.06909340895419M5[t] + 2.33164072570251M6[t] + 2.99011727141876M7[t] + 4.86234381713501M8[t] + 5.06207036285125M9[t] + 6.0417969085675M10[t] + 3.51152345428376M11[t] + 1.15277345428375t + e[t]


Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STAT
H0: parameter = 0
2-tail p-value1-tail p-value
(Intercept)7.718779002320174.522531.70670.0916090.045805
iraq-21.56806071152364.094795-5.26721e-061e-06
M1-1.441526676763775.4283-0.26560.7912380.395619
M2-0.2582730461029485.596049-0.04620.9632990.48165
M3-1.907296500386695.593317-0.3410.7339690.366984
M4-2.063819954670445.591383-0.36910.7129880.356494
M5-2.069093408954195.590246-0.37010.7122320.356116
M62.331640725702515.595560.41670.6779770.338989
M72.990117271418765.5911730.53480.5942230.297112
M84.862343817135015.5875820.87020.3866980.193349
M95.062070362851255.5847860.90640.3673460.183673
M106.04179690856755.5827891.08220.282290.141145
M113.511523454283765.581590.62910.5309940.265497
t1.152773454283750.06679317.258900


Multiple Linear Regression - Regression Statistics
Multiple R0.926707616339391
R-squared0.858787006181437
Adjusted R-squared0.836669308354433
F-TEST (value)38.8280467930495
F-TEST (DF numerator)13
F-TEST (DF denominator)83
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation11.1623811237660
Sum Squared Residuals10341.6964452331


Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolation
Forecast
Residuals
Prediction Error
131.547.4300257798401724.1099742201598
232.439.7660528647847622.6639471352152
326.549.2698028647847417.2701971352153
425.8510.266052864784815.5839471352152
527.611.413552864784716.1864471352153
625.7116.96706045372528.74293954627481
725.3818.77831045372526.60168954627481
828.5721.80331045372526.76668954627482
927.6423.15581045372524.48418954627483
1025.3625.28831045372520.0716895462748208
1125.923.91081045372521.98918954627481
1226.2921.55206045372524.73793954627483
1321.7421.26330723124520.47669276875484
1419.223.5993343161897-4.39933431618974
1519.3223.1030843161897-3.78308431618974
1619.8224.0993343161897-4.27933431618974
1720.3625.2468343161897-4.88683431618974
1824.3130.8003419051302-6.4903419051302
1925.9732.6115919051302-6.6415919051302
2025.6135.6365919051302-10.0265919051302
2124.6736.9890919051302-12.3190919051302
2225.5939.1215919051302-13.5315919051302
2326.0937.7440919051302-11.6540919051302
2428.3735.3853419051302-7.01534190513018
2527.3435.0965886826502-7.75658868265017
2624.4637.4326157675947-12.9726157675947
2727.4636.9363657675947-9.47636576759474
2830.2337.9326157675947-7.70261576759474
2932.3339.0801157675947-6.75011576759474
3029.8723.06556264501166.8044373549884
3124.8724.8768126450116-0.00681264501159733
3225.4827.9018126450116-2.42181264501160
3327.2829.2543126450116-1.97431264501158
3428.2431.3868126450116-3.14681264501159
3529.5830.0093126450116-0.429312645011599
3626.9527.6505626450116-0.700562645011587
3729.0827.36180942253161.71819057746843
3828.7629.6978365074762-0.937836507476153
3929.5929.20158650747620.388413492523847
4030.730.19783650747610.502163492523851
4130.5231.3453365074762-0.825336507476161
4232.6736.8988440964166-4.2288440964166
4333.1938.7100940964166-5.5200940964166
4437.1341.7350940964166-4.6050940964166
4535.5443.0875940964166-7.5475940964166
4637.7545.2200940964166-7.4700940964166
4741.8443.8425940964166-2.00259409641659
4842.9441.48384409641661.45615590358341
4949.1441.19509087393667.94490912606341
5044.6143.53111795888111.07888204111886
5140.2243.0348679588812-2.81486795888116
5244.2344.03111795888120.19888204111884
5345.8545.17861795888120.671382041118846
5453.3850.73212554782162.64787445217839
5553.2652.54337554782160.71662445217839
5651.855.5683755478216-3.76837554782161
5755.356.9208755478216-1.62087554782160
5857.8159.0533755478216-1.24337554782160
5963.9657.67587554782166.2841244521784
6063.7755.31712554782168.4528744521784
6159.1555.02837232534164.12162767465842
6256.1257.3643994102861-1.24439941028615
6357.4256.86814941028620.551850589713845
6463.5257.86439941028625.65560058971384
6561.7159.01189941028622.69810058971384
6663.0164.5654069992266-1.55540699922662
6768.1866.37665699922661.80334300077340
6872.0369.40165699922662.62834300077339
6969.7570.7541569992266-1.0041569992266
7074.4172.88665699922661.52334300077339
7174.3371.50915699922662.82084300077340
7264.2469.1504069992266-4.9104069992266
7360.0368.8616537767466-8.83165377674658
7459.4471.1976808616911-11.7576808616911
7562.570.7014308616912-8.20143086169116
7655.0471.6976808616912-16.6576808616912
7758.3472.8451808616912-14.5051808616912
7861.9278.3986884506316-16.4786884506316
7967.6580.2099384506316-12.5599384506316
8067.6883.2349384506316-15.5549384506316
8170.384.5874384506316-14.2874384506316
8275.2686.7199384506316-11.4599384506316
8371.4485.3424384506316-13.9024384506316
8476.3682.9836884506316-6.6236884506316
8581.7182.6949352281516-0.98493522815159
8692.685.03096231309627.56903768690384
8790.684.53471231309626.06528768690383
8892.2385.53096231309626.69903768690385
8994.0986.67846231309617.41153768690385
90102.7992.231969902036610.5580300979634
91109.6594.043219902036615.6067800979634
92124.0597.068219902036626.9817800979634
93132.6998.420719902036634.2692800979634
94135.81100.55321990203735.2567800979634
95116.0799.175719902036616.8942800979634
96101.4296.81696990203664.6030300979634
9775.7396.5282166795566-20.7982166795566


Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
170.01652685710317710.03305371420635420.983473142896823
180.01562253628945390.03124507257890780.984377463710546
190.01398892726084630.02797785452169260.986011072739154
200.00517064240687350.0103412848137470.994829357593127
210.001791048375195750.003582096750391510.998208951624804
220.0009999472592083250.001999894518416650.999000052740792
230.0004902238794835350.000980447758967070.999509776120517
240.0003178467116717760.0006356934233435520.999682153288328
250.0002293716038126070.0004587432076252140.999770628396187
268.96087116544657e-050.0001792174233089310.999910391288346
270.0001119168333363440.0002238336666726880.999888083166664
280.0001909333365955190.0003818666731910380.999809066663405
290.0002489117380175860.0004978234760351720.999751088261982
300.0001078429547185560.0002156859094371110.999892157045281
315.15133329063019e-050.0001030266658126040.999948486667094
322.15120617433772e-054.30241234867543e-050.999978487938257
337.65219582406712e-061.53043916481342e-050.999992347804176
342.77437121941398e-065.54874243882797e-060.99999722562878
351.00367940181109e-062.00735880362218e-060.999998996320598
363.50512210392094e-077.01024420784187e-070.99999964948779
371.27361812778842e-072.54723625557685e-070.999999872638187
384.351699363322e-088.703398726644e-080.999999956483006
391.76789114860782e-083.53578229721564e-080.999999982321089
407.01122208994256e-091.40224441798851e-080.999999992988778
412.19617192552535e-094.39234385105069e-090.999999997803828
429.8698898778921e-101.97397797557842e-090.999999999013011
436.11418011641845e-101.22283602328369e-090.999999999388582
447.58897021114038e-101.51779404222808e-090.999999999241103
455.21135019224649e-101.04227003844930e-090.999999999478865
466.40169987060484e-101.28033997412097e-090.99999999935983
471.56936845323731e-093.13873690647461e-090.999999998430632
483.79257529155798e-097.58515058311596e-090.999999996207425
496.07375948046692e-081.21475189609338e-070.999999939262405
509.46169185543327e-081.89233837108665e-070.999999905383081
515.47283110899984e-081.09456622179997e-070.999999945271689
525.0457368838646e-081.00914737677292e-070.999999949542631
534.61944994679795e-089.2388998935959e-080.9999999538055
541.78769752054029e-073.57539504108057e-070.999999821230248
553.98734401136553e-077.97468802273107e-070.999999601265599
563.45703577470531e-076.91407154941063e-070.999999654296423
574.69790862746804e-079.39581725493609e-070.999999530209137
587.18232001162769e-071.43646400232554e-060.999999281767999
592.23807048575532e-064.47614097151065e-060.999997761929514
606.98283755565129e-061.39656751113026e-050.999993017162444
611.35333962900084e-052.70667925800167e-050.99998646660371
628.58098659166907e-061.71619731833381e-050.999991419013408
636.49084508285144e-061.29816901657029e-050.999993509154917
641.34468697031036e-052.68937394062073e-050.999986553130297
651.70740561622846e-053.41481123245692e-050.999982925943838
661.49539937372988e-052.99079874745976e-050.999985046006263
671.86571573505963e-053.73143147011926e-050.99998134284265
682.37087502276701e-054.74175004553402e-050.999976291249772
691.60451264731337e-053.20902529462674e-050.999983954873527
701.43122432367276e-052.86244864734552e-050.999985687756763
713.39795034150049e-056.79590068300098e-050.999966020496585
726.08052632073345e-050.0001216105264146690.999939194736793
730.001188845864913290.002377691729826580.998811154135087
740.0006701759722668550.001340351944533710.999329824027733
750.0004173181670557370.0008346363341114740.999582681832944
760.0002521460928833230.0005042921857666450.999747853907117
770.0001253246861559570.0002506493723119130.999874675313844
785.24488293851956e-050.0001048976587703910.999947551170615
791.67948404919189e-053.35896809838377e-050.999983205159508
801.18176353966586e-052.36352707933173e-050.999988182364603


Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level600.9375NOK
5% type I error level641NOK
10% type I error level641NOK
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/20/t1227208000lll7qp2pr17u44d/10b66e1227207929.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/20/t1227208000lll7qp2pr17u44d/10b66e1227207929.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/20/t1227208000lll7qp2pr17u44d/1rbbg1227207929.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/20/t1227208000lll7qp2pr17u44d/1rbbg1227207929.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/20/t1227208000lll7qp2pr17u44d/2q0q91227207929.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/20/t1227208000lll7qp2pr17u44d/2q0q91227207929.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/20/t1227208000lll7qp2pr17u44d/3y46r1227207929.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/20/t1227208000lll7qp2pr17u44d/3y46r1227207929.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/20/t1227208000lll7qp2pr17u44d/4w7vc1227207929.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/20/t1227208000lll7qp2pr17u44d/4w7vc1227207929.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/20/t1227208000lll7qp2pr17u44d/5raym1227207929.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/20/t1227208000lll7qp2pr17u44d/5raym1227207929.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/20/t1227208000lll7qp2pr17u44d/6bbkl1227207929.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/20/t1227208000lll7qp2pr17u44d/6bbkl1227207929.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/20/t1227208000lll7qp2pr17u44d/7lpry1227207929.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/20/t1227208000lll7qp2pr17u44d/7lpry1227207929.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/20/t1227208000lll7qp2pr17u44d/8h2yi1227207929.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/20/t1227208000lll7qp2pr17u44d/8h2yi1227207929.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/20/t1227208000lll7qp2pr17u44d/9p0fx1227207929.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/20/t1227208000lll7qp2pr17u44d/9p0fx1227207929.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