Home » date » 2010 » Dec » 16 »

*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 12:06:14 +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/t1292501068v65qbo1ruocdjl1.htm/, Retrieved Thu, 16 Dec 2010 13:04:28 +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/t1292501068v65qbo1ruocdjl1.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 time6 seconds
R Server'Sir Ronald Aylmer Fisher' @ 193.190.124.24


Multiple Linear Regression - Estimated Regression Equation
vergunningen[t] = + 2413.39057239057 -218.928843995511M1[t] -389.991021324355M2[t] -6.65858585858587M3[t] -104.992817059484M4[t] -173.993714927048M5[t] -12.8835016835017M6[t] + 253.782267115600M7[t] -7.88529741863072M8[t] + 92.8915824915825M9[t] + 167.112906846240M10[t] -91.8879910213244M11[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.928843995511143.319426-1.52760.129910.064955
M2-389.991021324355147.270204-2.64810.0094630.004731
M3-6.65858585858587147.211556-0.04520.9640170.482008
M4-104.992817059484147.159061-0.71350.4772890.238645
M5-173.993714927048147.112727-1.18270.239840.11992
M6-12.8835016835017147.072559-0.08760.9303770.465189
M7253.782267115600147.0385621.7260.0875720.043786
M8-7.88529741863072147.01074-0.05360.9573350.478668
M992.8915824915825146.9890980.6320.5289140.264457
M10167.112906846240146.9736371.1370.2583570.129179
M11-91.8879910213244146.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.173885562132340
F-TEST (value)2.89437442012333
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.351515151514
218342019.17912457912-185.179124579125
320952400.40134680135-305.401346801347
421642299.95690235690-135.956902356903
523682228.84579124579139.154208754209
620722387.84579124579-315.845791245791
725212652.40134680135-131.401346801347
818232388.62356902357-565.623569023569
919472487.29023569024-540.290235690236
1022262559.40134680135-333.401346801347
1117542298.29023569024-544.290235690236
1217862388.06801346801-602.068013468013
1320722167.02895622896-95.0289562289565
1418461993.85656565657-147.856565656566
1521372375.07878787879-238.078787878788
1624662274.63434343434191.365656565657
1721542203.52323232323-49.5232323232323
1822892362.52323232323-73.5232323232323
1926282627.078787878790.921212121212097
2020742363.30101010101-289.30101010101
2127982461.96767676768336.032323232323
2221942534.07878787879-340.078787878788
2324422272.96767676768169.032323232323
2425652362.74545454545202.254545454545
2520632141.70639730640-78.7063973063975
2620691968.53400673401100.465993265993
2725392349.75622895623189.243771043771
2818982249.31178451178-351.311784511784
2921392178.20067340067-39.2006734006734
3024082337.2006734006770.7993265993265
3127252601.75622895623123.243771043771
3222012337.97845117845-136.978451178451
3323112436.64511784512-125.645117845118
3425482508.7562289562339.2437710437710
3522762247.6451178451228.3548821548821
3623512337.4228956229013.5771043771043
3722802116.38383838384163.616161616161
3820571943.21144781145113.788552188552
3924792324.43367003367154.56632996633
4023792223.98922558923155.010774410774
4122952152.87811447811142.121885521886
4224562311.87811447811144.121885521885
4325462576.43367003367-30.4336700336701
4428442312.65589225589531.344107744108
4522602411.32255892256-151.322558922559
4629812483.43367003367497.56632996633
4726782222.32255892256455.677441077441
4834402312.100336700341127.89966329966
4928422091.06127946128750.93872053872
5024501917.88888888889532.111111111111
5126692299.11111111111369.888888888889
5225702198.66666666667371.333333333333
5325402127.55555555556412.444444444445
5423182286.5555555555631.4444444444444
5529302551.11111111111378.888888888889
5629472287.33333333333659.666666666667
5727992386413
5826952458.11111111111236.888888888889
5924982197301
6022602286.77777777778-26.7777777777778
6121602065.7387205387294.2612794612793
6220581892.56632996633165.43367003367
6325332273.78855218855259.211447811448
6421502173.34410774411-23.3441077441077
6521722102.2329966330069.7670033670034
6621552261.23299663300-106.232996632997
6730162525.78855218855490.211447811448
6823332262.0107744107770.9892255892256
6923552360.67744107744-5.67744107744115
7028252432.78855218855392.211447811448
7122142171.6774410774442.3225589225589
7223602261.4552188552298.5447811447811
7322992040.41616161616258.583838383838
7417461867.24377104377-121.243771043771
7520692248.46599326599-179.465993265993
7622672148.02154882155118.978451178451
7718782076.91043771044-198.910437710438
7822662235.9104377104430.0895622895623
7922822500.46599326599-218.465993265993
8020852236.68821548822-151.688215488215
8122772335.35488215488-58.3548821548822
8222512407.46599326599-156.465993265993
8318282146.35488215488-318.354882154882
8419542236.13265993266-282.13265993266
8518512015.09360269360-164.093602693603
8615701841.92121212121-271.921212121212
8718522223.14343434343-371.143434343434
8821872122.6989898989964.3010101010102
8918552051.58787878788-196.587878787879
9022182210.587878787887.4121212121212
9122532475.14343434343-222.143434343434
9220282211.36565656566-183.365656565657
9321692310.03232323232-141.032323232323
9419972382.14343434343-385.143434343434
9520342121.03232323232-87.0323232323232
9617912210.8101010101-419.810101010101
9716271989.77104377104-362.771043771044
9816311816.59865319865-185.598653198653
9923192197.82087542088121.179124579125
10017072097.37643097643-390.376430976431
10117472026.26531986532-279.26531986532
10223972185.26531986532211.73468013468
10320592449.82087542088-390.820875420876
10422512186.0430976431064.9569023569023
10525582284.70976430976273.290235690236
10624062356.8208754208849.1791245791246
10720492095.70976430976-46.7097643097643
10820742185.48754208754-111.487542087542
10917341964.44848484848-230.448484848485


Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
160.05285314964790140.1057062992958030.947146850352099
170.09105368936009960.1821073787201990.9089463106399
180.0479584193179420.0959168386358840.952041580682058
190.01948519945059920.03897039890119830.9805148005494
200.01191077560066720.02382155120133440.988089224399333
210.1783274079727990.3566548159455970.821672592027201
220.1614778258523360.3229556517046730.838522174147664
230.2270875096208380.4541750192416770.772912490379162
240.3095837631155930.6191675262311860.690416236884407
250.2988557879329890.5977115758659780.701144212067011
260.2334472005258670.4668944010517350.766552799474133
270.1758267643984510.3516535287969020.82417323560155
280.4663257181112980.9326514362225950.533674281888702
290.4721943286665940.9443886573331890.527805671333406
300.4047160847194220.8094321694388440.595283915280578
310.3361230444370380.6722460888740770.663876955562962
320.3275078025538590.6550156051077180.672492197446141
330.3405427038891240.6810854077782480.659457296110876
340.3164082603330210.6328165206660420.683591739666979
350.2807625853739380.5615251707478760.719237414626062
360.2549951658596220.5099903317192440.745004834140378
370.2148197432794900.4296394865589810.78518025672051
380.1823994826522790.3647989653045580.817600517347721
390.1476224513137030.2952449026274060.852377548686297
400.1182026622111090.2364053244222170.881797337788891
410.09893730575510880.1978746115102180.901062694244891
420.07910497895665260.1582099579133050.920895021043347
430.09655434647174580.1931086929434920.903445653528254
440.1802839870674660.3605679741349320.819716012932534
450.2781796127593510.5563592255187020.721820387240649
460.3080850718721530.6161701437443070.691914928127847
470.2854592162638950.570918432527790.714540783736105
480.8357820080112670.3284359839774660.164217991988733
490.8885933388018110.2228133223963780.111406661198189
500.8882024468456910.2235951063086170.111797553154309
510.8620771260573980.2758457478852040.137922873942602
520.8347094440315730.3305811119368540.165290555968427
530.829334829495420.3413303410091600.170665170504580
540.8458654980459450.3082690039081100.154134501954055
550.8229036672324040.3541926655351910.177096332767596
560.881875140842550.2362497183149000.118124859157450
570.8604738767579730.2790522464840540.139526123242027
580.8321684177756910.3356631644486170.167831582224309
590.8158506936112080.3682986127775850.184149306388792
600.8628448482526720.2743103034946550.137155151747327
610.8677918721746280.2644162556507440.132208127825372
620.8708605655998660.2582788688002690.129139434400134
630.8666879175145330.2666241649709340.133312082485467
640.8707285533554940.2585428932890110.129271446644506
650.8741509059206020.2516981881587950.125849094079398
660.8949353683656790.2101292632686420.105064631634321
670.962731839535760.07453632092847860.0372681604642393
680.9541513432365010.0916973135269980.045848656763499
690.9456403001846010.1087193996307970.0543596998153986
700.9697375942066530.06052481158669430.0302624057933472
710.9654881762946730.06902364741065340.0345118237053267
720.975397855218560.04920428956287930.0246021447814397
730.9941860888233370.01162782235332630.00581391117666316
740.9943900886588410.01121982268231740.00560991134115869
750.9932957659489310.01340846810213730.00670423405106866
760.9954649183997260.009070163200547970.00453508160027399
770.9950023988937450.009995202212509140.00499760110625457
780.9913417342799570.01731653144008700.00865826572004351
790.9914721218026980.01705575639460470.00852787819730237
800.9868752704081930.02624945918361390.0131247295918069
810.9782013304454770.04359733910904590.0217986695545230
820.9708065609489150.05838687810216980.0291934390510849
830.9626846261912440.07463074761751270.0373153738087563
840.9507700832368160.09845983352636730.0492299167631837
850.9538262789948370.09234744201032550.0461737210051627
860.9296906936828730.1406186126342530.0703093063171265
870.9372269334581730.1255461330836530.0627730665418267
880.986039787627450.02792042474509930.0139602123725497
890.984402871330530.03119425733894070.0155971286694704
900.9630270323166580.07394593536668320.0369729676833416
910.9871319979726960.02573600405460850.0128680020273043
920.961349102013720.07730179597256030.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/t1292501068v65qbo1ruocdjl1/10m6i21292501164.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/16/t1292501068v65qbo1ruocdjl1/10m6i21292501164.ps (open in new window)


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


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


http://www.freestatistics.org/blog/date/2010/Dec/16/t1292501068v65qbo1ruocdjl1/38e3u1292501164.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/16/t1292501068v65qbo1ruocdjl1/38e3u1292501164.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/16/t1292501068v65qbo1ruocdjl1/48e3u1292501164.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/16/t1292501068v65qbo1ruocdjl1/48e3u1292501164.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/16/t1292501068v65qbo1ruocdjl1/58e3u1292501164.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/16/t1292501068v65qbo1ruocdjl1/58e3u1292501164.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/16/t1292501068v65qbo1ruocdjl1/6052f1292501164.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/16/t1292501068v65qbo1ruocdjl1/6052f1292501164.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/16/t1292501068v65qbo1ruocdjl1/7bf101292501164.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/16/t1292501068v65qbo1ruocdjl1/7bf101292501164.ps (open in new window)


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


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