Home » date » 2010 » Dec » 20 »

Multiple regression 2

*The author of this computation has been verified*
R Software Module: /rwasp_multipleregression.wasp (opens new window with default values)
Title produced by software: Multiple Regression
Date of computation: Mon, 20 Dec 2010 20:40:20 +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/20/t129287776175ssae7bx8i9fyc.htm/, Retrieved Mon, 20 Dec 2010 21:42:44 +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/20/t129287776175ssae7bx8i9fyc.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 «
21454 -11,5 0,012095933 8,02 8,3 20780 23899 -11 0,017384968 8,03 8,2 19815 24939 -14,9 0,017547503 8,45 8 19761 23580 -16,2 0,014844804 7,74 7,9 21454 24562 -14,4 0,010364842 7,26 7,6 23899 24696 -17,3 0,016214531 7,9 7,6 24939 23785 -15,7 0,014814047 7,34 8,3 23580 23812 -12,6 0,017823834 6,91 8,4 24562 21917 -9,4 0,017980779 7,22 8,4 24696 19713 -8,1 0,015828678 7,47 8,4 23785 19282 -5,4 0,018533858 7,16 8,4 23812 18788 -4,6 0,017385905 8,09 8,6 21917 21453 -4,9 0,015866474 7,91 8,9 19713 24482 -4 0,012585695 7,74 8,8 19282 27474 -3,1 0,011326531 8,01 8,3 18788 27264 -1,3 0,019230769 7,56 7,5 21453 27349 0 0,026056627 7,56 7,2 24482 30632 -0,4 0,022604071 8,06 7,4 27474 29429 3 0,024091466 8,06 8,8 27264 30084 0,4 0,022602321 7,87 9,3 27349 26290 1,2 0,020302507 7,97 9,3 30632 24379 0,6 0,028617986 7,89 8,7 29429 23335 -1,3 0,025515909 7,83 8,2 30084 21346 -3,2 0,022785068 8,17 8,3 26290 21106 -1,8 0,022515213 8,84 8,5 24379 24514 -3,6 0,025666936 8,44 8,6 23335 28353 -4,2 0,03067 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 time6 seconds
R Server'RServer@AstonUniversity' @ vre.aston.ac.uk


Multiple Linear Regression - Estimated Regression Equation
Vacatures[t] = + 20606.8812794916 + 168.158236460417Ondernemersvertrouwen[t] + 56401.8572264319Inflatie[t] -621.10278051104Rente[t] -1393.10882957294Werkloosheidsgraad[t] + 0.587840385394207Vacatures_3m[t] + 3649.21467940801M1[t] + 6828.56710343529M2[t] + 9676.46988365844M3[t] + 8533.49626620066M4[t] + 7432.16340329468M5[t] + 7701.319746343M6[t] + 7237.49835577374M7[t] + 6708.04816702846M8[t] + 3891.65143784099M9[t] + 2602.21309852869M10[t] + 460.457422895243M11[t] + 86.2936753033444t + e[t]


Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STAT
H0: parameter = 0
2-tail p-value1-tail p-value
(Intercept)20606.88127949168471.003062.43260.0173410.008671
Ondernemersvertrouwen168.15823646041726.9875936.230900
Inflatie56401.857226431918671.879583.02070.0034340.001717
Rente-621.10278051104450.146998-1.37980.1717010.085851
Werkloosheidsgraad-1393.10882957294635.180267-2.19320.0313480.015674
Vacatures_3m0.5878403853942070.0709338.287300
M13649.214679408011122.4429693.25110.0017150.000857
M26828.567103435291124.8276436.070800
M39676.469883658441166.4897238.295400
M48533.496266200661170.9052967.287900
M57432.163403294681218.1140126.101400
M67701.3197463431174.0053756.559900
M77237.498355773741127.9868456.416300
M86708.048167028461154.5675465.8100
M93891.651437840991154.1402663.37190.0011760.000588
M102602.213098528691118.2345562.32710.0226270.011313
M11460.4574228952431157.4807040.39780.6918850.345943
t86.293675303344418.0201514.78878e-064e-06


Multiple Linear Regression - Regression Statistics
Multiple R0.972195984429727
R-squared0.945165032141285
Adjusted R-squared0.932899315646572
F-TEST (value)77.0574660313339
F-TEST (DF numerator)17
F-TEST (DF denominator)76
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation2143.55200542283
Sum Squared Residuals349205955.19637


Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolation
Forecast
Residuals
Prediction Error
12145418762.07862433232691.92137566772
22389921975.94912207551923.05087792448
32493924249.5109485593689.489051440655
42358024397.2956854749-817.295685474873
52456225585.5948722032-1023.59487220317
62469625997.1675498996-1301.16754989956
72378524383.4694069888-598.469406988808
82381225336.3835743497-1524.3835743497
92191723039.4676163057-1122.46761630572
101971321242.7478801346-1529.74788013456
111928220002.3038467434-720.303846743446
121878817727.71512499941060.28487500065
132145319725.34292065641727.65707934356
142448222948.82855359121533.17144640877
152747426201.81174744321272.18825255682
162726428854.2082760411-1590.20827604112
172734930641.2670404319-3292.26704043186
183063231904.3684705505-1272.36847055046
192942930108.6717573444-679.671757344364
203008428615.7348316951468.26516830497
212629027758.214293302-1468.21429330197
222437927101.5646832996-2722.56468329957
232333525670.4951636856-2335.49516368561
242134622242.0540121122-896.054012112164
252110624379.639969341-3273.63996934095
262451427015.7891406017-2501.78914060166
272835329138.8039204666-785.803920466583
283080528147.72800595812657.2719940419
293134829656.61936029761691.38063970242
303455632786.026821769.97317999997
313385532946.1972016893908.8027983107
323478732895.29129954131891.70870045869
333252932490.805441296238.1945587037565
342999831295.2987834677-1297.29878346769
352925730059.5716293569-802.571629356902
362815528641.9030664793-486.903066479334
373046630465.07674102740.923258972624129
383570433488.51997559722215.48002440278
393932735591.61773991313735.38226008688
403935136496.90958777552854.09041222446
414223439078.1558169353155.84418306503
424363041999.4332720181630.56672798197
434372240960.31734173572761.68265826426
444312142176.6354362517944.364563748254
453798540031.6391197585-2046.63911975849
463713539340.1476077797-2205.14760777969
473464636655.2256175396-2009.22561753959
483302633600.7874497622-574.787449762219
493508736716.2799583862-1629.27995838617
503884638330.194244782515.805755218004
514201340076.56959014481936.43040985522
524390840697.31541778353210.68458221648
534286842331.0786798513536.921320148684
544442345411.9431244136-988.943124413582
554416745203.6019938997-1036.60199389968
564363643892.6501028236-256.65010282358
574438242946.58465775091435.41534224911
584214241493.8774848983648.122515101674
594345239419.40653628764032.59346371242
603691239063.4860574174-2151.4860574174
614241341220.34683086771192.65316913232
624534446192.5671262766-848.567126276623
634487346153.0681577107-1280.0681577107
644751047849.8256814648-339.825681464755
654955450331.3691234235-777.369123423511
664736949487.6286121382-2118.62861213822
674599848314.9530982183-2316.95309821828
684814049120.2800233683-980.280023368263
694844144306.33690457284134.66309542723
704492841525.89437336883402.10562663123
714045439036.70110308281417.29889691716
723866137230.04123840221430.95876159779
733724638363.5468651114-1117.54686511141
743684337652.6281901733-809.62819017326
753642438784.2278528224-2360.2278528224
763759437582.068188539711.9318114602829
773814436596.90727846631547.09272153374
783873737096.86733905171640.13266094827
793456036463.5101129533-1903.51011295327
803608037294.6961879822-1214.69618798219
813350834756.7660742434-1248.76607424343
823546232088.08838318363373.91161681644
833337432956.296103304417.703896695969
843211030492.01305082731617.98694917268
853553335125.6880902777407.311909722305
863553237559.5236469025-2027.52364690248
873790341110.3900429399-3207.39004293989
883676342749.6491569624-5986.64915696238
894039942237.0078283913-1838.00782839133
904416443523.5648119284640.435188071616
914449641631.27908717062864.72091282943
924311043438.3285439882-328.328543988178
934388043602.1858927705277.814107229519
944393043599.3808038678330.619196132168


Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
210.01631245981221420.03262491962442840.983687540187786
220.02710500251492120.05421000502984230.972894997485079
230.009743081036647490.0194861620732950.990256918963353
240.003180522383410780.006361044766821570.99681947761659
250.01764343081108230.03528686162216470.982356569188918
260.009363566329097050.01872713265819410.990636433670903
270.00874092100856930.01748184201713860.99125907899143
280.1930426186577720.3860852373155430.806957381342228
290.1569448819234930.3138897638469850.843055118076507
300.1041170564780950.208234112956190.895882943521905
310.06722085267011520.134441705340230.932779147329885
320.04994597539409830.09989195078819650.950054024605902
330.03488580536810710.06977161073621430.965114194631893
340.030238383097950.06047676619590010.96976161690205
350.02545001508296810.05090003016593630.974549984917032
360.05865910750529440.1173182150105890.941340892494706
370.08610350414107640.1722070082821530.913896495858924
380.06980704834422540.1396140966884510.930192951655775
390.06213953756371050.1242790751274210.93786046243629
400.04467771344487780.08935542688975560.955322286555122
410.05256480426196710.1051296085239340.947435195738033
420.03728058578444970.07456117156889940.96271941421555
430.08807260407088240.1761452081417650.911927395929118
440.06786537046648150.1357307409329630.932134629533519
450.06702465554425640.1340493110885130.932975344455744
460.06510747478357580.1302149495671520.934892525216424
470.07643551552020210.1528710310404040.923564484479798
480.07246447905317080.1449289581063420.92753552094683
490.1220188607576350.2440377215152690.877981139242365
500.1010707829903860.2021415659807720.898929217009614
510.08493990095345940.1698798019069190.91506009904654
520.101069243607660.2021384872153210.89893075639234
530.07779859466796390.1555971893359280.922201405332036
540.0593158283467480.1186316566934960.940684171653252
550.04608830645993560.09217661291987120.953911693540064
560.03966171850559440.07932343701118880.960338281494406
570.09045666799485830.1809133359897170.909543332005142
580.1239613850538450.2479227701076890.876038614946155
590.3944321553981680.7888643107963370.605567844601832
600.3703180460214930.7406360920429870.629681953978507
610.3545098050846670.7090196101693330.645490194915333
620.4111803729126910.8223607458253830.588819627087309
630.3463248661649910.6926497323299820.65367513383501
640.476195005390150.95239001078030.52380499460985
650.7286469687794480.5427060624411040.271353031220552
660.6431936203491040.7136127593017930.356806379650896
670.8244237624521370.3511524750957260.175576237547863
680.741238220816230.5175235583675410.25876177918377
690.930012571326210.1399748573475790.0699874286737897
700.9434807034498820.1130385931002360.056519296550118
710.8948977821693270.2102044356613450.105102217830673
720.8039947206306330.3920105587387340.196005279369367
730.7876639355085940.4246721289828120.212336064491406


Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level10.0188679245283019NOK
5% type I error level60.113207547169811NOK
10% type I error level150.283018867924528NOK
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Dec/20/t129287776175ssae7bx8i9fyc/10kanw1292877609.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/20/t129287776175ssae7bx8i9fyc/10kanw1292877609.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/20/t129287776175ssae7bx8i9fyc/1d88k1292877609.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/20/t129287776175ssae7bx8i9fyc/1d88k1292877609.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/20/t129287776175ssae7bx8i9fyc/2d88k1292877609.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/20/t129287776175ssae7bx8i9fyc/2d88k1292877609.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/20/t129287776175ssae7bx8i9fyc/3o0751292877609.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/20/t129287776175ssae7bx8i9fyc/3o0751292877609.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/20/t129287776175ssae7bx8i9fyc/4o0751292877609.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/20/t129287776175ssae7bx8i9fyc/4o0751292877609.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/20/t129287776175ssae7bx8i9fyc/5o0751292877609.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/20/t129287776175ssae7bx8i9fyc/5o0751292877609.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/20/t129287776175ssae7bx8i9fyc/6g96q1292877609.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/20/t129287776175ssae7bx8i9fyc/6g96q1292877609.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/20/t129287776175ssae7bx8i9fyc/7r06t1292877609.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/20/t129287776175ssae7bx8i9fyc/7r06t1292877609.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/20/t129287776175ssae7bx8i9fyc/8r06t1292877609.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/20/t129287776175ssae7bx8i9fyc/8r06t1292877609.ps (open in new window)


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