Home » date » 2010 » Dec » 18 »

*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: Sat, 18 Dec 2010 12:47:39 +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/18/t1292676323a9a31oojsumjne3.htm/, Retrieved Sat, 18 Dec 2010 13:45:34 +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/18/t1292676323a9a31oojsumjne3.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 «
31.514 -9 0 8,3 1,2 27.071 -13 4 8,2 1,7 29.462 -18 5 8 1,8 26.105 -11 -7 7,9 1,5 22.397 -9 -2 7,6 1 23.843 -10 1 7,6 1,6 21.705 -13 3 8,3 1,5 18.089 -11 -2 8,4 1,8 20.764 -5 -6 8,4 1,8 25.316 -15 10 8,4 1,6 17.704 -6 -9 8,4 1,9 15.548 -6 0 8,6 1,7 28.029 -3 -3 8,9 1,6 29.383 -1 -2 8,8 1,3 36.438 -3 2 8,3 1,1 32.034 -4 1 7,5 1,9 22.679 -6 2 7,2 2,6 24.319 0 -6 7,4 2,3 18.004 -4 4 8,8 2,4 17.537 -2 -2 9,3 2,2 20.366 -2 0 9,3 2 22.782 -6 4 8,7 2,9 19.169 -7 1 8,2 2,6 13.807 -6 -1 8,3 2,3 29.743 -6 0 8,5 2,3 25.591 -3 -3 8,6 2,6 29.096 -2 -1 8,5 3,1 26.482 -5 3 8,2 2,8 22.405 -11 6 8,1 2,5 27.044 -11 0 7,9 2,9 17.970 -11 0 8,6 3,1 18.730 -10 -1 8,7 3,1 19.684 -14 4 8,7 3,2 19.785 -8 -6 8,5 2,5 18.479 -9 1 8,4 2,6 10.698 -5 -4 8,5 2,9 31.956 -1 -4 8,7 2,6 29.506 -2 1 8,7 2,4 34.506 -5 3 8,6 1,7 27.165 -4 -1 8,5 2 26.736 -6 2 8,3 2,2 23.691 -2 -4 8 1,9 18.157 -2 0 8,2 1,6 17.328 -2 0 8,1 1,6 18.205 -2 0 8,1 1,2 20.995 2 -4 8 1,2 17.382 1 1 7,9 1,5 9.367 -8 9 7,9 1,6 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 time15 seconds
R Server'Gwilym Jenkins' @ 72.249.127.135


Multiple Linear Regression - Estimated Regression Equation
Inschrijvingen[t] = + 29.1923025763464 + 0.174389476389964Consumentenvertrouwen[t] + 0.0428784606729751Evolutie_consumentenvertrouwen[t] -0.649244649320326Totaal_Werkloosheid[t] + 0.135258379303979Algemene_index[t] + e[t]


Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STAT
H0: parameter = 0
2-tail p-value1-tail p-value
(Intercept)29.19230257634648.6660193.36860.001170.000585
Consumentenvertrouwen0.1743894763899640.1014181.71950.0894360.044718
Evolutie_consumentenvertrouwen0.04287846067297510.1843550.23260.8166850.408342
Totaal_Werkloosheid-0.6492446493203261.024485-0.63370.5280890.264044
Algemene_index0.1352583793039790.4583410.29510.7686880.384344


Multiple Linear Regression - Regression Statistics
Multiple R0.208606962378333
R-squared0.0435168647527153
Adjusted R-squared-0.00491266108259025
F-TEST (value)0.898560619831449
F-TEST (DF numerator)4
F-TEST (DF denominator)79
p-value0.468975153690604
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation5.7213399735494
Sum Squared Residuals2585.96475634181


Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolation
Forecast
Residuals
Prediction Error
131.51422.39637675464269.11762324535736
227.07122.00288634635885.06811365364116
329.46221.31719219287658.14480780712354
426.10522.04772395067144.05727604932864
522.39722.7380394119603-0.341039411960255
623.84322.77344034517161.06955965482840
721.70521.8680317448930-0.163031744893034
818.08921.9780714431672-3.88907144316725
920.76422.8528944588151-2.08889445881513
1025.31621.76800338982233.54799661017770
1117.70422.5633954383366-4.85939543833664
1215.54822.7924009786686-7.24440097866855
1328.02922.97863479309305.05036520690698
1429.38323.39463915768685.98836084231324
1536.43823.514944696398112.9230553036019
1632.03423.92527918223468.10872081776539
1722.67923.9088329504365-1.22983295043655
1824.31924.4417156797373-0.122715679737267
1918.00423.2775257097891-5.2735257097891
2017.53723.0173598980102-5.48035989801022
2120.36623.0760651434954-2.71006514349537
2222.78223.0613004115932-0.279300411593194
2319.16923.0423203640533-3.87332036405328
2413.80723.0254509403741-9.21845094037406
2529.74322.93848047118306.80451952881703
2625.59123.30866656719312.2823334328069
2729.09623.70136661951305.39463338048696
2826.48223.50390791403992.97809208596005
2922.40522.6105533888599-0.205553388859929
3027.04422.53723490640774.50676509359226
3117.9722.1098153277443-4.1398153277443
3218.7322.1764018785293-3.44640187852926
3319.68421.7067621142647-2.02276211426468
3419.78522.359482430226-2.57448243022599
3518.47922.5636924814093-4.08469248140928
3610.69823.0225111324634-12.3245111324634
3731.95623.5496425943688.40635740563198
3829.50623.56259374548215.94340625451786
3934.50623.095425837077411.4105741629226
4027.16523.20380344949873.96119655050127
4126.73623.14056048446263.59543951553741
4223.69123.7350435069895-0.0440435069895015
4318.15723.7361309060261-5.57913090602614
4417.32823.8010553709582-6.47305537095817
4518.20523.7469520192366-5.54195201923658
4620.99524.3379205470366-3.34292054703657
4717.38224.4834253527347-7.10142535273471
489.36723.2704735885392-13.9034735885392
4931.12423.75374592549977.37025407450026
5026.55124.33044301957492.22055698042505
5130.65124.21810237441896.43289762558105
5225.85924.46195403529191.39704596470807
5325.124.71773362245500.382266377545034
5425.77824.91084493139810.867155068601856
5520.41824.4236968824255-4.00569688242549
5618.68824.2957003614354-5.60770036143542
5720.42424.5016986472801-4.07769864728014
5824.77624.72789052850990.0481094714900878
5919.81423.9448727446768-4.13087274467675
6012.73824.0679703288306-11.3299703288306
6131.56623.96564102687817.60035897312191
6230.11124.41779192047765.69320807952243
6330.01924.84940740073585.16959259926422
6431.93424.55600952173527.37799047826484
6525.82624.45150542170941.37449457829064
6626.83523.92418363678372.91081636321631
6720.20522.8098369427498-2.60483694274976
6817.78922.7896239333217-5.00062393332173
6920.5223.4116265837602-2.89162658376019
7022.51822.7266354655192-0.208635465519244
7115.57221.7044126894602-6.13241268946023
7211.50920.8330847544963-9.3240847544963
7325.44720.80203121781494.64496878218513
7424.0920.24150271179413.8484972882059
7527.78619.8941529760077.89184702399298
7626.19520.35194840223715.8430515977629
7720.51620.9566778511582-0.440677851158169
7822.75921.05721891844931.70178108155074
7919.02820.6959821127326-1.66798211273261
8016.97121.5198102792170-4.54881027921703
8120.03621.8528266213974-1.81682662139736
8222.48521.87821621140520.606783788594769
8318.7322.2200923235398-3.49009232353981
8414.53821.4426996582943-6.90469965829428


Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
80.6269544740166430.7460910519667140.373045525983357
90.4767619265702920.9535238531405840.523238073429708
100.3478296552975240.6956593105950480.652170344702476
110.2433457174665180.4866914349330360.756654282533482
120.2076913243500860.4153826487001710.792308675649914
130.3363623422865130.6727246845730260.663637657713487
140.3119559238954760.6239118477909520.688044076104524
150.432704932205830.865409864411660.56729506779417
160.4698906215970590.9397812431941180.530109378402941
170.3851096628489310.7702193256978610.614890337151069
180.3027958896481850.605591779296370.697204110351815
190.2647291415698380.5294582831396760.735270858430162
200.2078289963017880.4156579926035760.792171003698212
210.1533837475590060.3067674951180130.846616252440994
220.1516243347573330.3032486695146660.848375665242667
230.1117517419538430.2235034839076870.888248258046157
240.1525312502336630.3050625004673270.847468749766337
250.2545992642756750.509198528551350.745400735724325
260.2733831503124090.5467663006248180.726616849687591
270.3759065978042880.7518131956085760.624093402195712
280.3315632234793640.6631264469587270.668436776520636
290.2735451971857100.5470903943714210.72645480281429
300.2863890090773020.5727780181546030.713610990922698
310.2359540842428410.4719081684856810.764045915757159
320.1910759613550590.3821519227101180.808924038644941
330.1484515567237000.2969031134474010.8515484432763
340.1175187551321300.2350375102642610.88248124486787
350.09914780393839640.1982956078767930.900852196061604
360.2265286771877860.4530573543755710.773471322812214
370.3310774714388070.6621549428776130.668922528561193
380.3281952275587060.6563904551174120.671804772441294
390.5120216966498510.9759566067002980.487978303350149
400.4855291411335970.9710582822671940.514470858866403
410.4747756499257690.9495512998515370.525224350074231
420.4157915248838520.8315830497677030.584208475116148
430.4792358749957120.9584717499914240.520764125004288
440.5455025105242260.9089949789515470.454497489475774
450.5796576628969020.8406846742061970.420342337103098
460.552575685721430.894848628557140.44742431427857
470.5952317898550410.8095364202899180.404768210144959
480.827843693775140.344312612449720.17215630622486
490.8446667311528880.3106665376942250.155333268847112
500.8087042482845840.3825915034308310.191295751715416
510.8366035537904580.3267928924190840.163396446209542
520.7994864611444350.4010270777111310.200513538855565
530.7550398837157980.4899202325684040.244960116284202
540.7068094261580330.5863811476839350.293190573841967
550.6601572345605570.6796855308788860.339842765439443
560.6410032147649720.7179935704700560.358996785235028
570.6011896552594160.7976206894811680.398810344740584
580.5302975173111910.9394049653776180.469702482688809
590.4825525891724020.9651051783448050.517447410827598
600.7225920084170320.5548159831659360.277407991582968
610.7888862552860060.4222274894279880.211113744713994
620.7763643203396950.447271359320610.223635679660305
630.7658221474275420.4683557051449170.234177852572458
640.8541576746859220.2916846506281560.145842325314078
650.8337613079053260.3324773841893480.166238692094674
660.896819560042710.2063608799145800.103180439957290
670.8507571482197730.2984857035604540.149242851780227
680.821321124989330.357357750021340.17867887501067
690.7487733570310450.5024532859379110.251226642968955
700.843950487619830.3120990247603390.156049512380170
710.7920023648128060.4159952703743890.207997635187194
720.9588484043184280.0823031913631450.0411515956815725
730.9210716748890030.1578566502219950.0789283251109975
740.852243839808440.2955123203831210.147756160191561
750.8427263381958660.3145473236082690.157273661804134
760.9969253725298320.006149254940336150.00307462747016807


Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level10.0144927536231884NOK
5% type I error level10.0144927536231884OK
10% type I error level20.0289855072463768OK
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Dec/18/t1292676323a9a31oojsumjne3/10vemj1292676443.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/18/t1292676323a9a31oojsumjne3/10vemj1292676443.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/18/t1292676323a9a31oojsumjne3/17d7p1292676443.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/18/t1292676323a9a31oojsumjne3/17d7p1292676443.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/18/t1292676323a9a31oojsumjne3/27d7p1292676443.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/18/t1292676323a9a31oojsumjne3/27d7p1292676443.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/18/t1292676323a9a31oojsumjne3/3hnoa1292676443.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/18/t1292676323a9a31oojsumjne3/3hnoa1292676443.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/18/t1292676323a9a31oojsumjne3/4hnoa1292676443.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/18/t1292676323a9a31oojsumjne3/4hnoa1292676443.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/18/t1292676323a9a31oojsumjne3/5hnoa1292676443.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/18/t1292676323a9a31oojsumjne3/5hnoa1292676443.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/18/t1292676323a9a31oojsumjne3/6aw6d1292676443.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/18/t1292676323a9a31oojsumjne3/6aw6d1292676443.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/18/t1292676323a9a31oojsumjne3/73nng1292676443.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/18/t1292676323a9a31oojsumjne3/73nng1292676443.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/18/t1292676323a9a31oojsumjne3/83nng1292676443.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/18/t1292676323a9a31oojsumjne3/83nng1292676443.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/18/t1292676323a9a31oojsumjne3/93nng1292676443.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/18/t1292676323a9a31oojsumjne3/93nng1292676443.ps (open in new window)


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





Copyright

Creative Commons License

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

Software written by Ed van Stee & Patrick Wessa


Disclaimer

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


Privacy Policy

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

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

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

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

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

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

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

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

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


FreeStatistics.org is powered by