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:52:59 +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/t1292676830c65w1sanl1g8v2r.htm/, Retrieved Sat, 18 Dec 2010 13:54:01 +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/t1292676830c65w1sanl1g8v2r.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 «
31514 -9 0 8,3 1,2 27071 -13 4 8,2 1,7 29462 -18 5 8 1,8 26105 -11 -7 7,9 1,5 22397 -9 -2 7,6 1 23843 -10 1 7,6 1,6 21705 -13 3 8,3 1,5 18089 -11 -2 8,4 1,8 20764 -5 -6 8,4 1,8 25316 -15 10 8,4 1,6 17704 -6 -9 8,4 1,9 15548 -6 0 8,6 1,7 28029 -3 -3 8,9 1,6 29383 -1 -2 8,8 1,3 36438 -3 2 8,3 1,1 32034 -4 1 7,5 1,9 22679 -6 2 7,2 2,6 24319 0 -6 7,4 2,3 18004 -4 4 8,8 2,4 17537 -2 -2 9,3 2,2 20366 -2 0 9,3 2 22782 -6 4 8,7 2,9 19169 -7 1 8,2 2,6 13807 -6 -1 8,3 2,3 29743 -6 0 8,5 2,3 25591 -3 -3 8,6 2,6 29096 -2 -1 8,5 3,1 26482 -5 3 8,2 2,8 22405 -11 6 8,1 2,5 27044 -11 0 7,9 2,9 17970 -11 0 8,6 3,1 18730 -10 -1 8,7 3,1 19684 -14 4 8,7 3,2 19785 -8 -6 8,5 2,5 18479 -9 1 8,4 2,6 10698 -5 -4 8,5 2,9 31956 -1 -4 8,7 2,6 29506 -2 1 8,7 2,4 34506 -5 3 8,6 1,7 27165 -4 -1 8,5 2 26736 -6 2 8,3 2,2 23691 -2 -4 8 1,9 18157 -2 0 8,2 1,6 17328 -2 0 8,1 1,6 18205 -2 0 8,1 1,2 20995 2 -4 8 1,2 17382 1 1 7,9 1,5 9367 -8 9 7,9 1,6 31124 -1 -7 8 1,7 26551 1 -2 8 1,8 30651 -1 2 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 time7 seconds
R Server'Gwilym Jenkins' @ 72.249.127.135


Multiple Linear Regression - Estimated Regression Equation
Inschrijvingen[t] = + 29192.3025763464 + 174.389476389964Consumentenvertrouwen[t] + 42.8784606729749Evolutie_consumentenvertrouwen[t] -649.244649320328Totaal_Werkloosheid[t] + 135.258379303979Algemene_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)29192.30257634648666.0190763.36860.001170.000585
Consumentenvertrouwen174.389476389964101.4178281.71950.0894360.044718
Evolutie_consumentenvertrouwen42.8784606729749184.3554440.23260.8166850.408342
Totaal_Werkloosheid-649.2446493203281024.484668-0.63370.5280890.264044
Algemene_index135.258379303979458.3411250.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 Deviation5721.3399735494
Sum Squared Residuals2585964756.34181


Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolation
Forecast
Residuals
Prediction Error
13151422396.37675464279117.62324535732
22707122002.88634635885068.11365364117
32946221317.19219287658144.80780712354
42610522047.72395067134057.27604932866
52239722738.0394119603-341.039411960254
62384322773.44034517161069.55965482840
72170521868.0317448930-163.031744893031
81808921978.0714431672-3889.07144316724
92076422852.8944588151-2088.89445881513
102531621768.00338982233547.99661017771
111770422563.3954383366-4859.39543833664
121554822792.4009786686-7244.40097866855
132802922978.63479309305050.36520690698
142938323394.63915768685988.36084231324
153643823514.944696398112923.0553036019
163203423925.27918223468108.72081776539
172267923908.8329504365-1229.83295043654
182431924441.7156797373-122.715679737267
191800423277.5257097891-5273.5257097891
201753723017.3598980102-5480.35989801022
212036623076.0651434954-2710.06514349537
222278223061.3004115932-279.300411593193
231916923042.3203640533-3873.32036405328
241380723025.4509403741-9218.45094037406
252974322938.48047118306804.51952881703
262559123308.66656719312282.3334328069
272909623701.36661951305394.63338048696
282648223503.90791403992978.09208596005
292240522610.5533888599-205.553388859929
302704422537.23490640774506.76509359226
311797022109.8153277443-4139.8153277443
321873022176.4018785293-3446.40187852926
331968421706.7621142647-2022.76211426468
341978522359.482430226-2574.48243022599
351847922563.6924814093-4084.69248140928
361069823022.5111324634-12324.5111324634
373195623549.6425943688406.35740563198
382950623562.59374548215943.40625451787
393450623095.425837077411410.5741629226
402716523203.80344949873961.19655050127
412673623140.56048446263595.43951553741
422369123735.0435069895-44.0435069895003
431815723736.1309060261-5579.13090602614
441732823801.0553709582-6473.05537095817
451820523746.9520192366-5541.95201923658
462099524337.9205470366-3342.92054703657
471738224483.4253527347-7101.4253527347
48936723270.4735885392-13903.4735885392
493112423753.74592549977370.25407450026
502655124330.44301957492220.55698042506
513065124218.10237441896432.89762558105
522585924461.95403529191397.04596470807
532510024717.7336224550382.266377545033
542577824910.8449313981867.155068601858
552041824423.6968824255-4005.69688242549
561868824295.7003614354-5607.70036143542
572042424501.6986472801-4077.69864728014
582477624727.890528509948.1094714900885
591981423944.8727446767-4130.87274467675
601273824067.9703288306-11329.9703288306
613156623965.64102687817600.35897312191
623011124417.79192047765693.20807952243
633001924849.40740073585169.59259926422
643193424556.00952173527377.99047826484
652582624451.50542170941374.49457829064
662683523924.18363678372910.81636321631
672020522809.8369427498-2604.83694274976
681778922789.6239333217-5000.62393332174
692052023411.6265837602-2891.62658376019
702251822726.6354655192-208.635465519243
711557221704.4126894602-6132.41268946023
721150920833.0847544963-9324.0847544963
732544720802.03121781494644.96878218513
742409020241.50271179413848.49728820591
752778619894.1529760077891.84702399298
762619520351.94840223715843.0515977629
772051620956.6778511582-440.677851158166
782275921057.21891844931701.78108155074
791902820695.9821127326-1667.98211273261
801697121519.8102792170-4548.81027921703
812003621852.8266213974-1816.82662139736
822248521878.2162114052606.783788594771
831873022220.0923235398-3490.09232353981
841453821442.6996582943-6904.69965829428


Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
80.6269544740166430.7460910519667140.373045525983357
90.4767619265702910.9535238531405830.523238073429709
100.3478296552975250.6956593105950490.652170344702475
110.2433457174665180.4866914349330360.756654282533482
120.2076913243500870.4153826487001730.792308675649913
130.3363623422865120.6727246845730230.663637657713488
140.3119559238954770.6239118477909550.688044076104523
150.4327049322058310.8654098644116610.56729506779417
160.469890621597060.939781243194120.53010937840294
170.3851096628489310.7702193256978630.614890337151069
180.3027958896481850.6055917792963690.697204110351815
190.2647291415698370.5294582831396740.735270858430163
200.2078289963017870.4156579926035740.792171003698213
210.1533837475590060.3067674951180120.846616252440994
220.1516243347573330.3032486695146660.848375665242667
230.1117517419538420.2235034839076850.888248258046157
240.1525312502336640.3050625004673270.847468749766336
250.2545992642756740.5091985285513480.745400735724326
260.2733831503124090.5467663006248180.726616849687591
270.3759065978042900.7518131956085790.624093402195711
280.3315632234793620.6631264469587250.668436776520638
290.2735451971857090.5470903943714180.726454802814291
300.2863890090773010.5727780181546030.713610990922699
310.2359540842428410.4719081684856830.764045915757159
320.1910759613550590.3821519227101180.808924038644941
330.1484515567237000.2969031134473990.8515484432763
340.1175187551321310.2350375102642610.882481244867869
350.09914780393839640.1982956078767930.900852196061604
360.2265286771877850.4530573543755710.773471322812215
370.3310774714388050.662154942877610.668922528561195
380.3281952275587060.6563904551174110.671804772441294
390.5120216966498530.9759566067002940.487978303350147
400.4855291411335950.971058282267190.514470858866405
410.4747756499257680.9495512998515370.525224350074232
420.4157915248838520.8315830497677040.584208475116148
430.4792358749957140.9584717499914270.520764125004286
440.5455025105242260.9089949789515470.454497489475774
450.5796576628969020.8406846742061960.420342337103098
460.5525756857214290.8948486285571410.447424314278571
470.595231789855040.809536420289920.40476821014496
480.827843693775140.344312612449720.17215630622486
490.8446667311528880.3106665376942240.155333268847112
500.8087042482845840.3825915034308310.191295751715416
510.8366035537904580.3267928924190840.163396446209542
520.7994864611444340.4010270777111330.200513538855566
530.7550398837157980.4899202325684040.244960116284202
540.7068094261580320.5863811476839370.293190573841968
550.6601572345605590.6796855308788830.339842765439441
560.6410032147649740.7179935704700530.358996785235026
570.6011896552594160.7976206894811690.398810344740584
580.5302975173111910.9394049653776180.469702482688809
590.4825525891724030.9651051783448060.517447410827597
600.7225920084170320.5548159831659360.277407991582968
610.7888862552860060.4222274894279880.211113744713994
620.7763643203396950.4472713593206110.223635679660305
630.7658221474275410.4683557051449180.234177852572459
640.8541576746859220.2916846506281570.145842325314078
650.8337613079053260.3324773841893480.166238692094674
660.896819560042710.2063608799145810.103180439957291
670.8507571482197730.2984857035604540.149242851780227
680.821321124989330.3573577500213420.178678875010671
690.7487733570310450.502453285937910.251226642968955
700.843950487619830.3120990247603390.156049512380170
710.7920023648128060.4159952703743890.207997635187194
720.9588484043184280.0823031913631450.0411515956815725
730.9210716748890030.1578566502219940.0789283251109972
740.852243839808440.2955123203831210.147756160191561
750.8427263381958660.3145473236082670.157273661804134
760.9969253725298320.006149254940336180.00307462747016809


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/t1292676830c65w1sanl1g8v2r/10gqp41292676770.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/18/t1292676830c65w1sanl1g8v2r/10gqp41292676770.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/18/t1292676830c65w1sanl1g8v2r/1kyad1292676770.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/18/t1292676830c65w1sanl1g8v2r/1kyad1292676770.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/18/t1292676830c65w1sanl1g8v2r/2kyad1292676770.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/18/t1292676830c65w1sanl1g8v2r/2kyad1292676770.ps (open in new window)


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


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


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


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


http://www.freestatistics.org/blog/date/2010/Dec/18/t1292676830c65w1sanl1g8v2r/75h8j1292676770.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/18/t1292676830c65w1sanl1g8v2r/75h8j1292676770.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/18/t1292676830c65w1sanl1g8v2r/8gqp41292676770.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/18/t1292676830c65w1sanl1g8v2r/8gqp41292676770.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/18/t1292676830c65w1sanl1g8v2r/9gqp41292676770.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/18/t1292676830c65w1sanl1g8v2r/9gqp41292676770.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