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 13:40:17 +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/t1292679544phh683zhimcijod.htm/, Retrieved Sat, 18 Dec 2010 14:39:16 +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/t1292679544phh683zhimcijod.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 «
13.193 651 3.063 5.951 22.858 15.234 736 3.547 6.789 26.306 14.718 878 3.240 6.302 25.138 16.961 916 3.708 6.961 28.546 13.945 724 3.337 6.162 24.168 15.876 841 4.104 7.534 28.355 16.226 1.028 4.846 7.462 29.562 18.316 994 4.590 8.894 32.794 16.748 855 3.917 7.734 29.254 17.904 889 4.376 8.968 32.137 17.209 1.117 4.312 8.383 31.021 18.950 1.132 4.941 9.790 34.813 17.225 899 4.659 9.656 32.439 18.710 944 5.227 10.440 35.321 17.236 1.167 4.933 9.820 33.156 18.687 1.089 5.381 10.947 36.104 17.580 970 5.472 10.439 34.461 19.568 1.151 6.405 12.289 39.413 17.381 1.246 5.622 11.303 35.552 19.580 1.583 6.229 12.240 39.632 17.260 1.120 5.671 11.392 35.443 18.661 1.063 5.606 11.120 36.450 15.658 1.015 4.516 9.597 30.786 18.674 1.175 5.483 10.692 36.024 15.908 882 4.985 9.217 30.992 17.475 911 5.332 9.371 33.089 17.725 1.076 5.377 9.526 33.704 19.562 1.147 5.948 10.837 37.494 16.368 946 5.308 9.749 32.371 19.555 1.032 6.721 9.939 37.247 17.743 1.090 5.840 9.309 33.982 19.867 1.131 6.152 10 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 time8 seconds
R Server'Gwilym Jenkins' @ 72.249.127.135


Multiple Linear Regression - Estimated Regression Equation
huis[t] = + 1.32830870700764 -0.000125396004891801villa[t] -1.14040585220238app[t] -0.5865527085729grond[t] + 0.83838563386305totaal[t] + e[t]


Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STAT
H0: parameter = 0
2-tail p-value1-tail p-value
(Intercept)1.328308707007640.6977291.90380.0598750.029938
villa-0.0001253960048918010.000209-0.60140.5489580.274479
app-1.140405852202380.125362-9.096900
grond-0.58655270857290.097919-5.990200
totaal0.838385633863050.05718514.660900


Multiple Linear Regression - Regression Statistics
Multiple R0.938653826466801
R-squared0.881071005940768
Adjusted R-squared0.87621676128529
F-TEST (value)181.505273935117
F-TEST (DF numerator)4
F-TEST (DF denominator)98
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation0.559627104580471
Sum Squared Residuals30.6918846257499


Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolation
Forecast
Residuals
Prediction Error
113.19313.4268564326514-0.233856432651418
215.23415.2634638355454-0.0294638355453961
314.71814.9021789481999-0.184178948199862
416.96116.8343839664390.126616033561010
513.94514.0797538796426-0.134753879642615
615.87615.8959615912536-0.0199615912536226
716.22616.20927283703040.0167271629696149
818.31618.24642090339380.0695790966062449
916.74816.74386008467530.00413991532471486
1017.90417.9094100743963-0.00541007439628647
1117.20917.5012279970726-0.292227997072571
1218.9519.1377894977438-0.18778949774382
1317.22517.4350654561026-0.21006545610258
1418.7118.7380421851037-0.0280421851036539
1517.23617.740106779133-0.504106779133001
1618.68719.0397306843013-0.352730684301330
1717.5817.7349573627732-0.154957362773234
1819.56819.8590116446418-0.291011644641790
1917.38118.0932715526034-0.712271552603434
2019.5820.2720164400914-0.692016440091378
2117.2617.8938202405881-0.633820240588071
2218.66118.9717504385854-0.310750438585430
2315.65816.3595023814505-0.701502381450468
2418.67419.0058985932973-0.331898593297315
2515.90816.1097775072314-0.201777507231434
2617.47517.37818574946590.0968142505340673
2717.72517.8656598154690-0.140659815468974
2819.56219.6229901221470-0.0609901221469549
2916.36816.5774888207934-0.209488820793357
3019.55519.06111389966940.493886100330632
3117.74317.69800329432940.0449967056705482
3219.86719.67246849805210.194531501947936
3315.70315.70027066042260.00272933957736373
3419.32418.95527116378350.368728836216488
3518.16217.93292973265320.229070267346830
3619.07418.82205970314240.251940296857603
3715.32315.3628010685970-0.0398010685970356
3819.70419.19539544280110.508604557198939
3918.37518.11875894890840.256241051091634
4018.35218.01885576511760.333144234882362
4113.92714.0263500701505-0.0993500701505158
4217.79517.12549526086310.66950473913688
4316.76116.32672606031940.434273939680592
4418.90218.38924027551440.512759724485582
4516.23916.05064412323940.188355876760567
4619.15818.47102637311840.686973626881556
4718.27918.17379539599520.105204604004751
4815.69815.37918963226470.318810367735342
4916.23916.05064412323940.188355876760567
5018.43118.10178830011370.329211699886327
5118.41418.13633797934330.277662020656694
5219.80119.19120882682500.609791173174976
5314.99514.88881540882710.106184591172903
5418.70618.04757540405470.658424595945346
5518.23217.94613976382880.285860236171224
5619.40918.68497460142720.724025398572843
5716.26315.68326631280180.579733687198208
5819.01718.01338237821461.00361762178537
5920.29819.46639173595860.83160826404139
6019.89119.36440734760480.526592652395192
6115.20314.93680059224170.266199407758258
6217.84517.16610719502830.678892804971721
6317.50217.29671883416700.205281165833015
6418.53218.28652472683330.245475273166729
6515.73715.3482010911620.388798908837996
6617.7717.09384213676330.676157863236666
6717.22416.78291286273420.441087137265839
6817.60116.86793266472000.733067335279951
6914.9414.61407538524380.325924614756186
7018.50717.66460322892560.842396771074423
7117.63516.96044768376550.674552316234522
7219.39218.45041554644150.941584453558456
7315.69914.98313194047400.715868059525957
7417.66116.68860043377200.972399566228036
7518.24317.50324529224810.739754707751947
7619.64318.99637885083850.646621149161541
7715.7715.23124049382090.538759506179142
7817.34416.79846616452910.545533835470918
7917.22917.15693613990900.0720638600909707
8017.32216.97964880078750.342351199212497
8116.15217.4310637736503-1.27906377365030
8217.91919.191027413059-1.27202741305900
8316.91818.1530157890922-1.23501578909217
8418.11419.2343171720424-1.12031717204238
8516.30817.3711989002421-1.06319890024212
8617.75918.6639810380205-0.904981038020455
8716.02117.0476415302056-1.02664153020557
8817.95218.808047509151-0.856047509151
8915.95416.5275234148985-0.573523414898461
9017.76218.1015995591642-0.339599559164231
9116.6117.3921096855893-0.782109685589286
9217.75118.3328349688115-0.581834968811499
9315.45815.7881387183709-0.330138718370885
9418.10618.1481621748182-0.0421621748182437
9515.9916.5505752534558-0.560575253455763
9615.34915.8980145292289-0.549014529228944
9713.18513.6680921740110-0.483092174010978
9815.40915.8155415816334-0.406541581633428
9916.00716.6639150109294-0.65691501092935
10016.63317.2812296787734-0.64822967877336
10114.815.2960292854121-0.496029285412116
10215.97416.3709342742188-0.396934274218771
10315.69316.3535931278132-0.660593127813212


Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
80.002650136552975540.005300273105951080.997349863447024
90.0002677486873730090.0005354973747460170.999732251312627
102.47908428068361e-054.95816856136721e-050.999975209157193
116.02088789492952e-061.20417757898590e-050.999993979112105
126.31509794719336e-071.26301958943867e-060.999999368490205
139.68699002885743e-081.93739800577149e-070.9999999031301
148.72023605343533e-091.74404721068707e-080.999999991279764
154.52152766333617e-099.04305532667234e-090.999999995478472
167.12757769627832e-101.42551553925566e-090.999999999287242
171.20243771322455e-102.40487542644910e-100.999999999879756
181.61000479827355e-113.22000959654709e-110.9999999999839
192.69849820553081e-115.39699641106162e-110.999999999973015
201.34491449182851e-092.68982898365702e-090.999999998655085
212.88141808824915e-105.76283617649831e-100.999999999711858
221.38489293577004e-102.76978587154009e-100.99999999986151
233.31550256441107e-116.63100512882214e-110.999999999966845
246.72730726867279e-121.34546145373456e-110.999999999993273
251.15277528922252e-122.30555057844505e-120.999999999998847
261.95829737504458e-133.91659475008916e-130.999999999999804
274.01402300330772e-148.02804600661544e-140.99999999999996
281.05356619270860e-142.10713238541721e-140.99999999999999
292.13289431710335e-154.2657886342067e-150.999999999999998
307.45318835396707e-161.49063767079341e-151
311.25643118955377e-162.51286237910753e-161
322.12338596623325e-174.24677193246649e-171
333.60774118078608e-187.21548236157216e-181
345.06218892313168e-191.01243778462634e-181
351.41411544785432e-192.82823089570863e-191
362.01750911459642e-204.03501822919284e-201
373.91523502022285e-217.83047004044569e-211
381.16989528740722e-212.33979057481443e-211
393.52216015766339e-227.04432031532679e-221
405.47805470475872e-231.09561094095174e-221
411.23694831288670e-232.47389662577341e-231
422.17065543284231e-244.34131086568462e-241
43100
44100
45100
46100
47100
48100
49100
50100
51100
52100
53100
54100
55100
56100
57100
58100
59100
60100
61100
62100
63100
64100
65100
66100
67100
68100
69100
70100
71100
72100
73100
7413.92014607661160e-3141.96007303830580e-314
7516.73157875338134e-3153.36578937669067e-315
7613.71738165969472e-3021.85869082984736e-302
7711.96724645667886e-2819.83623228339429e-282
7811.33377432866553e-2716.66887164332764e-272
7916.43260082272328e-2593.21630041136164e-259
8011.03601701531167e-2425.18008507655833e-243
8119.33279402550087e-2364.66639701275043e-236
8215.25160055243373e-2242.62580027621687e-224
8312.57704604058292e-2111.28852302029146e-211
8411.40183266843630e-1917.00916334218149e-192
8511.17497487769966e-1825.8748743884983e-183
8613.15951328071984e-1651.57975664035992e-165
8711.52798413515819e-1507.63992067579093e-151
8815.27140623383767e-1352.63570311691884e-135
8917.27605060704266e-1293.63802530352133e-129
9011.37429415941067e-1126.87147079705333e-113
9113.34268964077398e-1001.67134482038699e-100
9212.07712183613357e-861.03856091806678e-86
9315.11925989599226e-722.55962994799613e-72
9418.26535932734032e-554.13267966367016e-55
9511.38140629261640e-416.90703146308201e-42


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


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


http://www.freestatistics.org/blog/date/2010/Dec/18/t1292679544phh683zhimcijod/25ae51292679608.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/18/t1292679544phh683zhimcijod/25ae51292679608.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/18/t1292679544phh683zhimcijod/35ae51292679608.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/18/t1292679544phh683zhimcijod/35ae51292679608.ps (open in new window)


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


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


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


http://www.freestatistics.org/blog/date/2010/Dec/18/t1292679544phh683zhimcijod/7rbdt1292679608.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/18/t1292679544phh683zhimcijod/7rbdt1292679608.ps (open in new window)


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


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