Home » date » 2008 » Nov » 25 »

Tijdreeksen uitvoer

*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: Tue, 25 Nov 2008 00:21:29 -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/25/t1227597734cc5v2s6od7y9sqv.htm/, Retrieved Tue, 25 Nov 2008 07:22:24 +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/25/t1227597734cc5v2s6od7y9sqv.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:
multiple linear regression
 
Dataseries X:
» Textbox « » Textfile « » CSV «
11178,4 1190,8 -1,3 9516,4 728,8 -1,4 12102,8 995,6 -1,3 12989,0 1260,3 -1 11610,2 994 -0,8 10205,5 957,3 -0,7 11356,2 975,6 -0,6 11307,1 884,9 -0,8 12648,6 908,4 -0,9 11947,2 1022,8 -1 11714,1 958,6 -1,2 12192,5 825,1 -1,3 11268,8 1116,6 -1,3 9097,4 724,2 -1,4 12639,8 1004,5 -1,4 13040,1 1058,9 -1,8 11687,3 854,7 -1,9 11191,7 943,4 -2 11391,9 792,4 -2,4 11793,1 873,2 -2,5 13933,2 1101,4 -2,5 12778,1 987,1 -2,3 11810,3 1038,8 -1,7 13698,4 1060,7 -1,1 11956,6 1047,7 -0,7 10723,8 840 -0,2 13938,9 1044 0,3 13979,8 1097,4 1,1 13807,4 987,5 1,6 12973,9 934 2,2 12509,8 977 3 12934,1 881,1 3,8 14908,3 1083,3 4,6 13772,1 1074,7 5,1 13012,6 1182,2 5,3 14049,9 1117,5 5,5 11816,5 1117,4 5,7 11593,2 936,2 5,9 14466,2 1246,3 6,1 13615,9 1175,1 6,1 14733,9 1177,7 6,3 13880,7 1035,8 6,5 13527,5 1091,6 6,7 13584,0 998,7 6,6 16170,2 1247,9 6,5 13260,6 1034,7 6,4 14741,9 1287,7 6,3 15486,5 994,0 6,3 13154,5 1122,8 6,3 12621,2 1017,3 6,2 15031,6 1106,0 6 15452,4 1191,8 5,6 15428 1030,1 5,3 13105,9 989,4 5,1 14716,8 979,6 4,5 14180,0 1088,0 4 16202,2 1389,2 3,5 14392,4 1043,9 3,5 15140,6 1182,1 3,3 15960,1 1109,6 3,1 14351,3 1463,3 2,9 13230,2 1276,2 2,5 15202,1 1082,4 2,6 17157,3 1360,4 2,8 16159,1 1130,2 2,8 13405,7 1019,6 2,9 17224,7 1077,0 3,1 17338,4 958,8 3,3 17370,6 959,6 3,5 18817,8 907,2 3,4 16593,2 880,8 3,5 17979,5 759,6 3,7 17015,2 1137,2 3,8
 
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 time4 seconds
R Server'Gwilym Jenkins' @ 72.249.127.135


Multiple Linear Regression - Estimated Regression Equation
EU[t] = + 11681.0078496593 -0.121106302339442VS[t] -41.7372997987009Price[t] -1518.85729897612M1[t] -2982.91706376903M2[t] -274.229848568124M3[t] + 136.175800976025M4[t] -430.032646657245M5[t] -1956.87539195070M6[t] -1042.60909329050M7[t] -1059.83567468688M8[t] + 563.25808866321M9[t] -572.625391015120M10[t] -968.492550445997M11[t] + 82.0137590534028t + e[t]


Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STAT
H0: parameter = 0
2-tail p-value1-tail p-value
(Intercept)11681.0078496593842.52478513.864300
VS-0.1211063023394420.842108-0.14380.8861460.443073
Price-41.737299798700941.216606-1.01260.3154410.157721
M1-1518.85729897612447.764477-3.39210.0012550.000627
M2-2982.91706376903431.888596-6.906700
M3-274.229848568124441.655291-0.62090.5370890.268544
M4136.175800976025470.5483550.28940.7733090.386654
M5-430.032646657245432.929775-0.99330.3246860.162343
M6-1956.87539195070429.479744-4.55642.7e-051.4e-05
M7-1042.60909329050429.233787-2.4290.018260.00913
M8-1059.83567468688429.306606-2.46870.0165280.008264
M9563.25808866321445.3278531.26480.2109960.105498
M10-572.625391015120429.810963-1.33230.1879820.093991
M11-968.492550445997438.997474-2.20610.0313490.015674
t82.01375905340285.80424914.1300


Multiple Linear Regression - Regression Statistics
Multiple R0.945812309989402
R-squared0.894560925727488
Adjusted R-squared0.869110114696192
F-TEST (value)35.1486215754571
F-TEST (DF numerator)14
F-TEST (DF denominator)58
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation742.230790716727
Sum Squared Residuals31952579.7079027


Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolation
Forecast
Residuals
Prediction Error
111178.410154.20941464911024.19058535093
29516.48832.28825057027684.111749429731
312102.811586.5043333805516.295666619454
41298912034.3457138092954.654286190765
511610.211574.054173582636.1458264173805
610205.510129.496058658676.0039413414454
711356.211119.3861410595236.81385894052
811307.111203.5051202984103.594879701576
912648.612909.9403745768-261.340374576814
1011947.211846.3898229441100.810177055877
1111714.111548.6589071366165.441092863419
1212192.512619.5066379782-427.006637978169
1311268.811147.3606109235121.439389076490
149097.49817.01044820187-719.610448201868
1512639.812573.765325910466.034674089567
1613040.113076.2914715802-36.1914715801941
1711687.312621.0004199179-933.700419917911
1811191.711169.603034640222.0969653597856
1911391.912200.8650639266-808.965063926562
2011793.112260.0405823344-466.940582334421
2113933.213937.5116465441-4.31164654405717
2212778.112889.1369163168-111.036916316787
2311810.312543.9799402291-733.679940229145
2413698.413566.7916418281131.608358171910
2511956.612114.8275639163-158.227563916310
2610723.810737.0666872734-13.2666872733547
2713938.913482.1933259511456.706674048939
2813979.813934.755818164745.0441818352726
2913807.413443.0020623126364.397937687386
3012973.911979.6098833685994.290116631504
3112509.812937.2925302426-427.49253024255
3212934.112980.3039624550-46.2039624549565
3314908.314627.5339506865280.766049313541
3413772.113553.8370943623218.262905637702
3513012.613218.6173065236-206.017306523594
3614049.914268.6117338246-218.711733824616
3711816.512823.4328445724-1006.93284457240
3811593.211454.9838408571138.216159142944
3914466.214199.7822907962266.417709203841
4013615.914700.8244681203-1084.92446812028
4114733.914207.9674431946525.932556805409
4213880.712771.97598129681108.72401870324
4313527.513753.1508473801-225.650847380089
441358413833.3625305043-249.36253050431
4516170.215512.4640923447657.735907655313
4613260.614488.5879653584-1227.98796535840
4714741.914148.2684004689593.631599531083
4815486.515234.3436309654252.15636903459
4913154.513781.9015993014-627.401599301378
5012621.212416.8060384386204.393961561448
5115031.615205.1123436351-173.512343635087
5215452.415703.8357514114-251.435751411397
531542815251.7451418594176.254858140573
5413105.913820.1926420843-714.292642084326
5514716.814842.7019214401-125.901921440083
561418014915.2298258229-735.229825822855
5716202.216604.7287798611-402.528779861063
5814392.415592.6770654339-1200.27706543394
5915140.615270.4342340329-129.834234032898
6015960.116338.0682104116-377.968210411649
6114351.314866.7368313112-515.436831311219
6213230.213524.0447346589-293.8447346589
6315202.116334.0423803267-1131.94238032671
6417157.316784.4467769142372.853223085834
6516159.116328.1307591328-169.030759132836
6613405.714892.5223999516-1486.82239995165
6717224.715873.50349595121351.19650404876
6817338.415944.25797858501394.14202141497
6917370.617640.9211559869-270.321155986921
7018817.816597.57113558452220.22886441555
7116593.216282.7412116089310.458788391136
7217979.517339.5781449921639.921855007934
7317015.215852.83113532611162.36886467389


Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
180.06131990389864780.1226398077972960.938680096101352
190.03006233840213780.06012467680427550.969937661597862
200.01177315998556830.02354631997113670.988226840014432
210.003408105519949130.006816211039898270.99659189448005
220.001334861035205700.002669722070411410.998665138964794
230.0008397431707795010.001679486341559000.99916025682922
240.0009156669485861630.001831333897172330.999084333051414
250.000870482972614530.001740965945229060.999129517027386
260.0004176104833276120.0008352209666552240.999582389516672
270.0003144513459830370.0006289026919660750.999685548654017
280.0001079582515123300.0002159165030246610.999892041748488
290.0001315778574906960.0002631557149813920.99986842214251
300.0003193857412313610.0006387714824627220.999680614258769
310.0005954814677926710.001190962935585340.999404518532207
320.0003076566152320480.0006153132304640970.999692343384768
330.0002097628840770330.0004195257681540660.999790237115923
340.0001859784531251820.0003719569062503630.999814021546875
350.0002138554717378890.0004277109434757780.999786144528262
360.0002173921310890390.0004347842621780780.99978260786891
370.0008322635299881210.001664527059976240.999167736470012
380.001059524735814150.002119049471628310.998940475264186
390.00140733011258020.00281466022516040.99859266988742
400.002752177336123030.005504354672246070.997247822663877
410.002553804884643460.005107609769286920.997446195115357
420.1014721160413040.2029442320826090.898527883958696
430.07953738775010260.1590747755002050.920462612249897
440.05128641439812030.1025728287962410.94871358560188
450.070069038119150.14013807623830.92993096188085
460.2346132900796050.4692265801592090.765386709920395
470.2039562033350310.4079124066700620.796043796664969
480.1900620518469440.3801241036938880.809937948153056
490.1556548010780180.3113096021560360.844345198921982
500.1047801581014670.2095603162029330.895219841898533
510.1370188134763630.2740376269527250.862981186523637
520.1106005486634210.2212010973268420.889399451336579
530.07371964953004330.1474392990600870.926280350469957
540.09136938196310280.1827387639262060.908630618036897
550.3941407176119570.7882814352239140.605859282388043


Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level210.552631578947368NOK
5% type I error level220.578947368421053NOK
10% type I error level230.605263157894737NOK
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/25/t1227597734cc5v2s6od7y9sqv/10m9fd1227597683.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/25/t1227597734cc5v2s6od7y9sqv/10m9fd1227597683.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/25/t1227597734cc5v2s6od7y9sqv/1sog91227597682.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/25/t1227597734cc5v2s6od7y9sqv/1sog91227597682.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/25/t1227597734cc5v2s6od7y9sqv/2qvmi1227597682.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/25/t1227597734cc5v2s6od7y9sqv/2qvmi1227597682.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/25/t1227597734cc5v2s6od7y9sqv/36ltt1227597682.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/25/t1227597734cc5v2s6od7y9sqv/36ltt1227597682.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/25/t1227597734cc5v2s6od7y9sqv/4pdd31227597682.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/25/t1227597734cc5v2s6od7y9sqv/4pdd31227597682.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/25/t1227597734cc5v2s6od7y9sqv/5cua41227597682.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/25/t1227597734cc5v2s6od7y9sqv/5cua41227597682.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/25/t1227597734cc5v2s6od7y9sqv/61xwt1227597682.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/25/t1227597734cc5v2s6od7y9sqv/61xwt1227597682.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/25/t1227597734cc5v2s6od7y9sqv/7b3re1227597683.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/25/t1227597734cc5v2s6od7y9sqv/7b3re1227597683.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/25/t1227597734cc5v2s6od7y9sqv/8a59q1227597683.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/25/t1227597734cc5v2s6od7y9sqv/8a59q1227597683.ps (open in new window)


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