Home » date » 2010 » Dec » 17 »

Multiple Lineair Regression - Collinealiteitstest

*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: Fri, 17 Dec 2010 10:44:51 +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/17/t1292582626tz9lsoxwnmo8m6u.htm/, Retrieved Fri, 17 Dec 2010 11:43:49 +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/17/t1292582626tz9lsoxwnmo8m6u.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 «
198563 44164 25943 -7,7 195722 40399 21698 -4,9 202196 36763 20077 -2,4 205816 37903 25673 -3,6 212588 35532 19094 -7 214320 35533 19306 -7 220375 32110 15443 -7,9 204442 33374 15179 -8,8 206903 35462 18288 -14,2 214126 33508 18264 -17,8 226899 36080 16406 -18,2 223532 34560 15678 -22,8 195309 38737 19657 -23,6 186005 38144 18821 -27,6 188906 37594 19493 -29,4 191563 36424 21078 -31,8 189226 36843 19296 -31,4 186413 37246 19985 -27,6 178037 38661 16972 -28,8 166827 40454 16951 -21,9 169362 44928 23126 -13,9 174330 48441 24890 -8 187069 48140 21042 -2,8 186530 45998 20842 -3,3 158114 47369 23904 -1,3 151001 49554 22578 0,5 159612 47510 25452 -1,9 161914 44873 21928 2 164182 45344 25227 1,7 169701 42413 26210 1,9 171297 36912 17436 0,1 166444 43452 21258 2,4 173476 42142 25638 2,3 182516 44382 23516 4,7 202388 43636 23891 5 202300 44167 24617 7,2 168053 44423 26174 8,5 167302 42868 23339 6,8 172608 43908 23660 5,8 178106 42013 26500 3,7 185686 38846 22469 4,8 194581 3508 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
OPENVAC[t] = + 24502.0486346266 -0.0276138848081947NWWZ[t] + 1.0857739331349ONTVANGJOB[t] + 65.9822513835042Producentenvertrouwen[t] -63.5471571335748t + e[t]


Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STAT
H0: parameter = 0
2-tail p-value1-tail p-value
(Intercept)24502.04863462665707.2336944.29324.2e-052.1e-05
NWWZ-0.02761388480819470.01531-1.80360.0743950.037197
ONTVANGJOB1.08577393313490.1362717.967700
Producentenvertrouwen65.982251383504244.8120031.47240.1441440.072072
t-63.547157133574822.079276-2.87810.0049210.00246


Multiple Linear Regression - Regression Statistics
Multiple R0.926093106592916
R-squared0.857648442078918
Adjusted R-squared0.851778274741966
F-TEST (value)146.102895002694
F-TEST (DF numerator)4
F-TEST (DF denominator)97
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation3269.69891642159
Sum Squared Residuals1037020307.39271


Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolation
Forecast
Residuals
Prediction Error
14416446615.5754799891-2451.57547998911
24039942206.1193273118-1807.11932731183
33676340368.7159627771-3605.71596277708
43790346202.0187708006-8299.01877080055
53553238583.8240249475-3051.82402494746
63553338702.6336931507-3169.63369315069
73211034218.1557335582-2108.15573355822
83337434248.5522584808-874.552258480842
93546237136.4143314798-1674.41433147978
103350836609.8174050008-3101.81740500077
113608034149.79722889411930.20277110593
123456033085.26424222341474.73575777664
133873738068.5724348684668.427565131568
143814437090.30884835551053.69115164449
153759437557.525841969736.4741580302959
163642438983.2028735992-2559.20287359916
173684337075.7331169693-232.733116969348
183724638088.6946129885-842.694612988488
193866134905.82579281273755.17420718731
204045435584.30656632934869.69343367068
214492842683.2702593832244.72974061698
224844144787.1378237353653.86217626502
234814040536.86700052097603.13299947907
244599840238.05781498025759.94218501976
254736944415.79109458242953.2089054176
264955443227.69331724296326.30668275705
274751045888.51987853531621.4801214647
284487342192.46899860152680.53100139846
294534445628.46708072-284.467080719964
304241346493.0311198783-4080.03111987827
313691236740.0636607749171.936339225108
324345241112.11383723912339.88616276086
334214245603.4774441269-3461.47744412685
344438243144.64588553531237.35411446465
354363642959.315509834676.684490166034
364416743831.6312030632335.36879693684
374442346490.1036996454-2067.10369964542
384286843256.9556422134-388.955642213402
394390843329.4403934403578.559606559654
404201346059.1073398291-4046.10733982908
413884641482.0726879045-2636.07268790446
423508742012.2040617962-6925.20406179617
433302634408.2113830849-1382.21138308491
443464636450.509681203-1804.50968120296
453713538656.6608588216-1521.66085882155
463798537693.9587958421291.041204157944
474312135947.4849850637173.51501493701
484372235137.87869567738584.1213043227
494363038697.62571695654932.37428304354
504223439814.74412900682419.25587099317
513935133846.27157428615504.72842571394
523932739369.4872589551-42.4872589550837
533570436128.6176492306-424.617649230579
543046632858.4368627701-2392.43686277008
552815529433.4144182857-1278.41441828566
562925730174.8755251375-917.875525137522
572999830194.2516744782-196.251674478202
583252931145.31983428731383.6801657127
593478728962.36987386295824.63012613713
603385526990.6593602676864.340639733
613455633921.0019607465634.998039253474
623134830255.25217155871092.74782844125
633080530969.6459683053-164.645968305259
642835331684.6501758157-3331.65017581571
652451427980.3304099269-3466.33040992688
662110626104.6769370512-4998.67693705122
672134623617.3768815855-2271.37688158548
682333525502.8890024371-2167.88900243709
692437926137.0932290354-1758.09322903544
702629027612.4711534725-1322.47115347246
713008425634.12363332244449.87636667757
722942925451.05426655733977.94573344269
733063232450.4485548433-1818.44855484334
742734926737.0938546585611.906145341528
752726427758.4004688102-494.400468810244
762747430271.1457083394-2797.14570833939
772448226894.35949104-2412.35949103995
782145326275.9406806996-4822.94068069965
791878822406.4281588881-3618.42815888811
801928222993.3237136088-3711.32371360878
811971323593.6749137336-3880.67491373363
822191724847.4315708517-2930.43157085171
832381222046.39655083371765.60344916628
842378521723.32759206122061.6724079388
852469624636.446875219559.5531247805228
862456223878.1799612358683.820038764213
872358023456.7754067074123.224593292646
882493924806.3941145964132.605885403618
892389925726.3502519365-1827.35025193647
902145424252.8690047615-2798.86900476152
911976121468.7060151296-1707.70601512962
921981522083.4346037271-2268.4346037271
932078025108.7107795026-4328.71077950256
942346223738.6297489611-276.629748961055
952500520854.42608878594150.57391121415
962472520508.82577768574216.1742223143
972619823715.17650352072482.82349647927
982754324657.1580951842885.84190481595
992647124898.6905713061572.309428694
1002655825359.76011596881198.23988403123
1012531724858.8683914518458.131608548217
1022289623599.7880688334-703.788068833391


Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
80.00508626982337770.01017253964675540.994913730176622
90.001101208339913430.002202416679826870.998898791660087
100.002634737502229360.005269475004458710.99736526249777
110.02707286178258160.05414572356516320.972927138217418
120.01117720827848470.02235441655696940.988822791721515
130.006937044913177440.01387408982635490.993062955086823
140.003157784385817090.006315568771634180.996842215614183
150.001450984696384360.002901969392768730.998549015303616
160.001678767639295880.003357535278591750.998321232360704
170.0007275065866007960.001455013173201590.9992724934134
180.001153821281020810.002307642562041610.99884617871898
190.002974299761620610.005948599523241220.99702570023838
200.006394322035363820.01278864407072760.993605677964636
210.00758677335451570.01517354670903140.992413226645484
220.007536260906465350.01507252181293070.992463739093535
230.0111894122635060.0223788245270120.988810587736494
240.007632099748370780.01526419949674160.99236790025163
250.009412546364717510.0188250927294350.990587453635282
260.008673599413472920.01734719882694580.991326400586527
270.01280462057713640.02560924115427280.987195379422864
280.02163257263080960.04326514526161920.97836742736919
290.04165923432322750.08331846864645490.958340765676773
300.1374270889370750.2748541778741510.862572911062925
310.2433143302574140.4866286605148280.756685669742586
320.2386472324539380.4772944649078770.761352767546062
330.2647852419344770.5295704838689550.735214758065523
340.2298811152473410.4597622304946830.770118884752659
350.1975699163217810.3951398326435620.802430083678219
360.1602790766675390.3205581533350780.839720923332461
370.1564699049231080.3129398098462160.843530095076892
380.1483977827719730.2967955655439450.851602217228027
390.1278760271670290.2557520543340580.872123972832971
400.1396764770723720.2793529541447440.860323522927628
410.1370898367077720.2741796734155450.862910163292228
420.2801264129241670.5602528258483330.719873587075833
430.2607431869638630.5214863739277260.739256813036137
440.2220707305986790.4441414611973570.777929269401321
450.1950617209535250.3901234419070490.804938279046475
460.2190409531783970.4380819063567940.780959046821603
470.5390095756238540.9219808487522920.460990424376146
480.8103182247814490.3793635504371020.189681775218551
490.8395538715012460.3208922569975080.160446128498754
500.8170540882964530.3658918234070940.182945911703547
510.8992588287404070.2014823425191850.100741171259593
520.8784084956062670.2431830087874660.121591504393733
530.8632829323122550.2734341353754910.136717067687745
540.8777894579297230.2444210841405530.122210542070277
550.8739492249724330.2521015500551340.126050775027567
560.8589766016179520.2820467967640950.141023398382048
570.8289674832624330.3420650334751340.171032516737567
580.7929801248698630.4140397502602730.207019875130137
590.853888885006480.2922222299870410.146111114993521
600.9578147887090880.08437042258182320.0421852112909116
610.958454411383760.08309117723247850.0415455886162393
620.9725725559163170.05485488816736530.0274274440836827
630.979619801205350.04076039758929880.0203801987946494
640.9791712472819550.04165750543609090.0208287527180455
650.9791743761567120.04165124768657660.0208256238432883
660.986367224097970.02726555180406080.0136327759020304
670.982682856504620.03463428699076190.017317143495381
680.9771545002991740.0456909994016510.0228454997008255
690.9699335715652290.06013285686954170.0300664284347709
700.9590077928963190.08198441420736260.0409922071036813
710.971645870826720.05670825834655910.0283541291732796
720.9876435128451550.02471297430969020.0123564871548451
730.984995242622320.03000951475535930.0150047573776797
740.9880550838183270.02388983236334520.0119449161816726
750.991362692579740.0172746148405220.008637307420261
760.9928276364393080.01434472712138470.00717236356069236
770.9942963312912040.01140733741759250.00570366870879625
780.9922072583401870.0155854833196270.00779274165981352
790.988203794835010.02359241032997790.0117962051649889
800.9834058199783440.03318836004331180.0165941800216559
810.9811435874917030.03771282501659310.0188564125082965
820.9716138302747160.05677233945056790.028386169725284
830.9629038195461580.07419236090768460.0370961804538423
840.9635297603511160.07294047929776760.0364702396488838
850.950455306631350.09908938673730220.0495446933686511
860.933416750775780.1331664984484390.0665832492242197
870.9201884579034280.1596230841931430.0798115420965717
880.9888907049221570.02221859015568670.0111092950778434
890.9949534968352130.01009300632957380.0050465031647869
900.9986143187199280.002771362560143110.00138568128007156
910.9967874120070470.006425175985906250.00321258799295312
920.9894099686468020.02118006270639690.0105900313531984
930.9800616534460630.03987669310787490.0199383465539374
940.9956781948276660.008643610344667860.00432180517233393


Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level110.126436781609195NOK
5% type I error level430.494252873563218NOK
10% type I error level550.632183908045977NOK
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Dec/17/t1292582626tz9lsoxwnmo8m6u/10dw491292582682.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/17/t1292582626tz9lsoxwnmo8m6u/10dw491292582682.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/17/t1292582626tz9lsoxwnmo8m6u/1elm21292582681.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/17/t1292582626tz9lsoxwnmo8m6u/1elm21292582681.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/17/t1292582626tz9lsoxwnmo8m6u/2zm601292582682.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/17/t1292582626tz9lsoxwnmo8m6u/2zm601292582682.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/17/t1292582626tz9lsoxwnmo8m6u/3zm601292582682.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/17/t1292582626tz9lsoxwnmo8m6u/3zm601292582682.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/17/t1292582626tz9lsoxwnmo8m6u/4zm601292582682.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/17/t1292582626tz9lsoxwnmo8m6u/4zm601292582682.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/17/t1292582626tz9lsoxwnmo8m6u/5sd531292582682.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/17/t1292582626tz9lsoxwnmo8m6u/5sd531292582682.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/17/t1292582626tz9lsoxwnmo8m6u/6sd531292582682.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/17/t1292582626tz9lsoxwnmo8m6u/6sd531292582682.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/17/t1292582626tz9lsoxwnmo8m6u/73n561292582682.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/17/t1292582626tz9lsoxwnmo8m6u/73n561292582682.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/17/t1292582626tz9lsoxwnmo8m6u/83n561292582682.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/17/t1292582626tz9lsoxwnmo8m6u/83n561292582682.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/17/t1292582626tz9lsoxwnmo8m6u/9dw491292582682.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/17/t1292582626tz9lsoxwnmo8m6u/9dw491292582682.ps (open in new window)


 
Parameters (Session):
par1 = 2 ; par2 = Do not include Seasonal Dummies ; par3 = Linear Trend ;
 
Parameters (R input):
par1 = 2 ; par2 = Do not include Seasonal 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