Home » date » 2010 » Dec » 16 »

W8

*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: Thu, 16 Dec 2010 13:53:57 +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/16/t12925075357smi0j5lktyypbh.htm/, Retrieved Thu, 16 Dec 2010 14:52:29 +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/16/t12925075357smi0j5lktyypbh.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 «
1856 1834 2095 2164 2368 2072 2521 1823 1947 2226 1754 1786 2072 1846 2137 2466 2154 2289 2628 2074 2798 2194 2442 2565 2063 2069 2539 1898 2139 2408 2725 2201 2311 2548 2276 2351 2280 2057 2479 2379 2295 2456 2546 2844 2260 2981 2678 3440 2842 2450 2669 2570 2540 2318 2930 2947 2799 2695 2498 2260 2160 2058 2533 2150 2172 2155 3016 2333 2355 2825 2214 2360 2299 1746 2069 2267 1878 2266 2282 2085 2277 2251 1828 1954 1851 1570 1852 2187 1855 2218 2253 2028 2169 1997 2034 1791 1627 1631 2319 1707 1747 2397 2059 2251 2558 2406 2049 2074 1734
 
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 time11 seconds
R Server'George Udny Yule' @ 72.249.76.132


Multiple Linear Regression - Estimated Regression Equation
vergunningen[t] = + 2413.39057239057 -218.92884399551M1[t] -389.991021324355M2[t] -6.65858585858594M3[t] -104.992817059483M4[t] -173.993714927048M5[t] -12.8835016835020M6[t] + 253.782267115600M7[t] -7.88529741863053M8[t] + 92.8915824915827M9[t] + 167.112906846240M10[t] -91.8879910213241M11[t] -2.11021324354658t + e[t]


Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STAT
H0: parameter = 0
2-tail p-value1-tail p-value
(Intercept)2413.39057239057118.62197420.345200
M1-218.92884399551143.319426-1.52760.129910.064955
M2-389.991021324355147.270204-2.64810.0094630.004731
M3-6.65858585858594147.211556-0.04520.9640170.482008
M4-104.992817059483147.159061-0.71350.4772890.238645
M5-173.993714927048147.112727-1.18270.239840.11992
M6-12.8835016835020147.072559-0.08760.9303770.465189
M7253.782267115600147.0385621.7260.0875720.043786
M8-7.88529741863053147.01074-0.05360.9573350.478668
M992.8915824915827146.9890980.6320.5289140.264457
M10167.112906846240146.9736371.1370.2583570.129179
M11-91.8879910213241146.964359-0.62520.5332970.266649
t-2.110213243546580.95341-2.21330.0292430.014622


Multiple Linear Regression - Regression Statistics
Multiple R0.515437731669643
R-squared0.265676055228747
Adjusted R-squared0.173885562132341
F-TEST (value)2.89437442012334
F-TEST (DF numerator)12
F-TEST (DF denominator)96
p-value0.00188088213908377
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation311.751924658146
Sum Squared Residuals9330169.2026936


Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolation
Forecast
Residuals
Prediction Error
118562192.35151515151-336.351515151507
218342019.17912457912-185.179124579124
320952400.40134680135-305.401346801347
421642299.95690235690-135.956902356902
523682228.84579124579139.154208754207
620722387.84579124579-315.845791245792
725212652.40134680135-131.401346801346
818232388.62356902357-565.623569023569
919472487.29023569024-540.290235690236
1022262559.40134680135-333.401346801347
1117542298.29023569024-544.290235690236
1217862388.06801346801-602.068013468014
1320722167.02895622896-95.0289562289578
1418461993.85656565657-147.856565656566
1521372375.07878787879-238.078787878788
1624662274.63434343434191.365656565656
1721542203.52323232323-49.5232323232325
1822892362.52323232323-73.5232323232325
1926282627.078787878790.921212121211632
2020742363.30101010101-289.301010101010
2127982461.96767676768336.032323232323
2221942534.07878787879-340.078787878788
2324422272.96767676768169.032323232323
2425652362.74545454545202.254545454545
2520632141.7063973064-78.7063973063984
2620691968.53400673401100.465993265993
2725392349.75622895623189.243771043771
2818982249.31178451178-351.311784511785
2921392178.20067340067-39.2006734006735
3024082337.2006734006770.7993265993265
3127252601.75622895623123.243771043771
3222012337.97845117845-136.978451178451
3323112436.64511784512-125.645117845118
3425482508.7562289562339.243771043771
3522762247.6451178451228.3548821548819
3623512337.4228956229013.5771043771043
3722802116.38383838384163.616161616160
3820571943.21144781145113.788552188552
3924792324.43367003367154.566329966330
4023792223.98922558923155.010774410775
4122952152.87811447811142.121885521885
4224562311.87811447811144.121885521886
4325462576.43367003367-30.4336700336703
4428442312.65589225589531.344107744107
4522602411.32255892256-151.322558922559
4629812483.43367003367497.56632996633
4726782222.32255892256455.677441077441
4834402312.100336700341127.89966329966
4928422091.06127946128750.938720538719
5024501917.88888888889532.111111111111
5126692299.11111111111369.888888888889
5225702198.66666666667371.333333333333
5325402127.55555555556412.444444444445
5423182286.5555555555631.4444444444445
5529302551.11111111111378.888888888889
5629472287.33333333333659.666666666666
5727992386413
5826952458.11111111111236.888888888889
5924982197301
6022602286.77777777778-26.7777777777777
6121602065.7387205387294.2612794612785
6220581892.56632996633165.43367003367
6325332273.78855218855259.211447811448
6421502173.34410774411-23.3441077441075
6521722102.2329966330069.7670033670034
6621552261.23299663300-106.232996632997
6730162525.78855218855490.211447811448
6823332262.0107744107770.9892255892255
6923552360.67744107744-5.67744107744105
7028252432.78855218855392.211447811448
7122142171.6774410774442.3225589225589
7223602261.4552188552298.5447811447813
7322992040.41616161616258.583838383837
7417461867.24377104377-121.243771043771
7520692248.46599326599-179.465993265993
7622672148.02154882155118.978451178452
7718782076.91043771044-198.910437710437
7822662235.9104377104430.0895622895625
7922822500.46599326599-218.465993265993
8020852236.68821548822-151.688215488215
8122772335.35488215488-58.354882154882
8222512407.46599326599-156.465993265993
8318282146.35488215488-318.354882154882
8419542236.13265993266-282.132659932660
8518512015.09360269360-164.093602693604
8615701841.92121212121-271.921212121212
8718522223.14343434343-371.143434343434
8821872122.6989898989964.3010101010105
8918552051.58787878788-196.587878787878
9022182210.587878787887.41212121212147
9122532475.14343434343-222.143434343434
9220282211.36565656566-183.365656565656
9321692310.03232323232-141.032323232323
9419972382.14343434343-385.143434343434
9520342121.03232323232-87.0323232323231
9617912210.8101010101-419.810101010101
9716271989.77104377104-362.771043771044
9816311816.59865319865-185.598653198653
9923192197.82087542088121.179124579125
10017072097.37643097643-390.376430976431
10117472026.26531986532-279.265319865319
10223972185.26531986532211.734680134681
10320592449.82087542088-390.820875420875
10422512186.0430976431064.9569023569026
10525582284.70976430976273.290235690236
10624062356.8208754208749.179124579125
10720492095.70976430976-46.7097643097641
10820742185.48754208754-111.487542087542
10917341964.44848484849-230.448484848485


Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
160.05285314964790130.1057062992958030.947146850352099
170.09105368936009960.1821073787201990.9089463106399
180.04795841931794210.09591683863588420.952041580682058
190.01948519945059930.03897039890119870.9805148005494
200.01191077560066730.02382155120133460.988089224399333
210.1783274079727980.3566548159455960.821672592027202
220.1614778258523370.3229556517046730.838522174147663
230.2270875096208390.4541750192416770.772912490379161
240.3095837631155930.6191675262311850.690416236884407
250.2988557879329890.5977115758659780.701144212067011
260.2334472005258680.4668944010517360.766552799474132
270.175826764398450.35165352879690.82417323560155
280.4663257181112970.9326514362225940.533674281888703
290.4721943286665930.9443886573331870.527805671333407
300.4047160847194210.8094321694388420.595283915280579
310.3361230444370380.6722460888740750.663876955562962
320.3275078025538580.6550156051077170.672492197446142
330.3405427038891250.681085407778250.659457296110875
340.3164082603330210.6328165206660420.683591739666979
350.2807625853739380.5615251707478760.719237414626062
360.2549951658596220.5099903317192430.745004834140379
370.2148197432794900.4296394865589810.78518025672051
380.1823994826522790.3647989653045580.817600517347721
390.1476224513137030.2952449026274060.852377548686297
400.1182026622111090.2364053244222190.88179733778889
410.09893730575510870.1978746115102170.901062694244891
420.07910497895665150.1582099579133030.920895021043348
430.09655434647174580.1931086929434920.903445653528254
440.1802839870674650.3605679741349300.819716012932535
450.2781796127593510.5563592255187020.721820387240649
460.3080850718721530.6161701437443060.691914928127847
470.2854592162638930.5709184325277850.714540783736107
480.8357820080112660.3284359839774680.164217991988734
490.888593338801810.2228133223963800.111406661198190
500.888202446845690.2235951063086180.111797553154309
510.8620771260573980.2758457478852040.137922873942602
520.8347094440315750.3305811119368510.165290555968425
530.8293348294954190.3413303410091630.170665170504581
540.8458654980459460.3082690039081080.154134501954054
550.8229036672324020.3541926655351950.177096332767598
560.881875140842550.2362497183149010.118124859157451
570.8604738767579730.2790522464840540.139526123242027
580.8321684177756930.3356631644486150.167831582224307
590.8158506936112070.3682986127775860.184149306388793
600.8628448482526720.2743103034946560.137155151747328
610.8677918721746280.2644162556507450.132208127825372
620.8708605655998670.2582788688002670.129139434400133
630.8666879175145340.2666241649709330.133312082485466
640.8707285533554950.258542893289010.129271446644505
650.8741509059206030.2516981881587940.125849094079397
660.894935368365680.2101292632686420.105064631634321
670.962731839535760.07453632092847850.0372681604642393
680.95415134323650.0916973135269980.045848656763499
690.9456403001846020.1087193996307970.0543596998153983
700.9697375942066530.06052481158669410.0302624057933471
710.9654881762946740.06902364741065230.0345118237053261
720.975397855218560.04920428956287940.0246021447814397
730.9941860888233370.01162782235332630.00581391117666314
740.9943900886588410.01121982268231720.0056099113411586
750.9932957659489310.01340846810213720.00670423405106861
760.9954649183997260.009070163200547910.00453508160027395
770.9950023988937460.009995202212509070.00499760110625454
780.9913417342799570.01731653144008700.00865826572004349
790.9914721218026980.01705575639460470.00852787819730233
800.9868752704081930.0262494591836140.013124729591807
810.9782013304454770.04359733910904640.0217986695545232
820.9708065609489150.058386878102170.029193439051085
830.9626846261912440.07463074761751240.0373153738087562
840.9507700832368160.0984598335263680.049229916763184
850.9538262789948370.09234744201032570.0461737210051629
860.9296906936828730.1406186126342540.070309306317127
870.9372269334581730.1255461330836540.0627730665418269
880.986039787627450.02792042474509930.0139602123725496
890.984402871330530.03119425733894070.0155971286694704
900.9630270323166580.07394593536668480.0369729676833424
910.9871319979726960.02573600405460850.0128680020273042
920.961349102013720.07730179597256020.0386508979862801
930.9240601653217220.1518796693565560.0759398346782779


Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level20.0256410256410256NOK
5% type I error level150.192307692307692NOK
10% type I error level260.333333333333333NOK
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Dec/16/t12925075357smi0j5lktyypbh/10usgs1292507622.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/16/t12925075357smi0j5lktyypbh/10usgs1292507622.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/16/t12925075357smi0j5lktyypbh/1y0011292507622.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/16/t12925075357smi0j5lktyypbh/1y0011292507622.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/16/t12925075357smi0j5lktyypbh/2y0011292507622.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/16/t12925075357smi0j5lktyypbh/2y0011292507622.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/16/t12925075357smi0j5lktyypbh/3y0011292507622.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/16/t12925075357smi0j5lktyypbh/3y0011292507622.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/16/t12925075357smi0j5lktyypbh/49rzm1292507622.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/16/t12925075357smi0j5lktyypbh/49rzm1292507622.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/16/t12925075357smi0j5lktyypbh/59rzm1292507622.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/16/t12925075357smi0j5lktyypbh/59rzm1292507622.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/16/t12925075357smi0j5lktyypbh/69rzm1292507622.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/16/t12925075357smi0j5lktyypbh/69rzm1292507622.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/16/t12925075357smi0j5lktyypbh/71jg71292507622.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/16/t12925075357smi0j5lktyypbh/71jg71292507622.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/16/t12925075357smi0j5lktyypbh/8usgs1292507622.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/16/t12925075357smi0j5lktyypbh/8usgs1292507622.ps (open in new window)


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