Home » date » 2010 » Dec » 31 »

Multiple Regression Model 4 zonder lineaire trend

*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, 31 Dec 2010 09:55:50 +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/31/t1293789357amdpmz7u1yulzm4.htm/, Retrieved Fri, 31 Dec 2010 10:56:07 +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/31/t1293789357amdpmz7u1yulzm4.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 «
4831 0 3695 2462 2146 1579 5134 0 4831 3695 2462 2146 6250 0 5134 4831 3695 2462 5760 0 6250 5134 4831 3695 6249 0 5760 6250 5134 4831 2917 0 6249 5760 6250 5134 1741 0 2917 6249 5760 6250 2359 0 1741 2917 6249 5760 1511 1 2359 1741 2917 6249 2059 0 1511 2359 1741 2917 2635 0 2059 1511 2359 1741 2867 0 2635 2059 1511 2359 4403 0 2867 2635 2059 1511 5720 0 4403 2867 2635 2059 4502 0 5720 4403 2867 2635 5749 0 4502 5720 4403 2867 5627 0 5749 4502 5720 4403 2846 0 5627 5749 4502 5720 1762 0 2846 5627 5749 4502 2429 0 1762 2846 5627 5749 1169 0 2429 1762 2846 5627 2154 1 1169 2429 1762 2846 2249 0 2154 1169 2429 1762 2687 0 2249 2154 1169 2429 4359 0 2687 2249 2154 1169 5382 0 4359 2687 2249 2154 4459 0 5382 4359 2687 2249 6398 0 4459 5382 4359 2687 4596 0 6398 4459 5382 4359 3024 0 4596 6398 4459 5382 1887 0 3024 4596 6398 4459 2070 0 1887 3024 4596 6398 1351 0 2070 1887 3024 4596 2218 0 1351 2070 1887 3024 2461 1 2218 1351 2070 1887 3028 0 2461 2218 1351 2070 4784 0 3028 2461 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 time5 seconds
R Server'Gwilym Jenkins' @ www.wessa.org


Multiple Linear Regression - Estimated Regression Equation
Y[t] = + 2811.22887588795 + 536.65294179354X[t] -0.270735639007487Y1[t] + 0.146972260964833Y2[t] + 0.38234645812074Y3[t] + 0.0456948838664329Y4[t] + 1482.41945217729M1[t] + 2216.79549815919M2[t] + 1849.07312409255M3[t] + 1917.71663306403M4[t] + 1195.64039723629M5[t] -1357.72571856797M6[t] -3420.23672889271M7[t] -2823.19225751594M8[t] -2512.03180419436M9[t] -1523.91827487921M10[t] -1046.44162180443M11[t] + e[t]


Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STAT
H0: parameter = 0
2-tail p-value1-tail p-value
(Intercept)2811.22887588795391.2924897.184500
X536.65294179354124.3860494.31443.8e-051.9e-05
Y1-0.2707356390074870.091772-2.95010.0039650.001983
Y20.1469722609648330.0888921.65340.1014230.050711
Y30.382346458120740.0893384.27984.3e-052.2e-05
Y40.04569488386643290.0928820.4920.6238330.311916
M11482.41945217729211.3757437.013200
M22216.79549815919311.1999387.123400
M31849.07312409255449.3106734.11548e-054e-05
M41917.71663306403547.1207383.50510.0006870.000344
M51195.64039723629631.9577181.8920.0614180.030709
M6-1357.72571856797668.486055-2.0310.0449310.022465
M7-3420.23672889271653.961571-5.231e-060
M8-2823.19225751594604.44105-4.67079e-065e-06
M9-2512.03180419436397.395117-6.321200
M10-1523.91827487921221.860113-6.868800
M11-1046.44162180443190.099113-5.504700


Multiple Linear Regression - Regression Statistics
Multiple R0.979897654723466
R-squared0.96019941373255
Adjusted R-squared0.953766995749931
F-TEST (value)149.275034104935
F-TEST (DF numerator)16
F-TEST (DF denominator)99
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation350.48446385522
Sum Squared Residuals12161096.5809843


Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolation
Forecast
Residuals
Prediction Error
148314547.79356918019283.206430819806
251345302.56120693764-168.561206937636
362505505.63918887246744.360811127543
457605807.3616880164-47.3616880164031
562495549.72732342193699.272676578067
629173232.49926934452-315.49926934452
717412007.5945697203-266.594569720301
823592597.88950396155-238.889503961549
915111853.91529502778-342.915295027784
1020592023.8937739110635.106226088936
1126352410.92774720325224.072252796752
1228673085.97608169117-218.976081691165
1344034761.01748546589-358.017485465894
1457205358.91351071248361.08648928752
1545024975.40632430604-473.406324306041
1657496165.2536820098-416.253682009801
1756275500.29551744841126.704482551588
1828462757.7157350872488.2842649127623
1917621851.31958573186-89.3195857318558
2024292343.4468843402685.5531156597398
2111691245.82845969249-76.828459692487
2221542668.21130137873-514.211301378728
2322492362.66719287721-113.667192877213
2426873076.87855633307-389.878556333072
2543594773.71387099397-414.713870993968
2653825201.12615298785180.873847012154
2744594973.98760317394-514.987603173944
2863986102.17036702774295.82963297226
2945965187.02460277613-591.024602776131
3030243100.34340782409-76.343407824087
3118871897.77821224789-10.7782122478856
3220701971.222773222998.7772267771035
3313511382.34033099598-31.3403309959778
3422182085.44842819276132.551571807237
3524612777.19148728784-316.191487287836
3630283082.07141763516-54.0714176351594
3747844745.3377796003838.6622203996229
3849755220.16296908772-245.16296908772
3946075286.7076767589-679.707676758901
4062496180.3629823417168.6370176582872
4148095112.92142479913-303.921424799135
4231573058.7673078999698.2326921000364
4319101842.8686843976467.1313156023588
4422282059.17442211767168.825577882334
4515941403.52955122859190.470448771405
4624672057.7526732374409.2473267626
4722222270.30135350789-48.3013535078871
4836073820.15625110597-213.156251105973
4946854659.7635990960525.2364009039458
5049625252.05995903998-290.059959039985
5157705486.13450823831283.865491761689
5254805852.19183318817-372.191833188173
5350005482.55157323965-482.551573239646
5432283338.11002947173-110.110029471735
5519931610.8368795142382.163120485796
5622882085.02720241632202.972797583678
5715801435.35843189329144.641568106712
5821112105.340400619935.65959938006733
5921922391.3590921892-199.359092189204
6036013236.69209619747364.307903802532
6146655056.87671942958-391.876719429584
6248765228.85506585427-352.855065854273
6358135502.81340270894310.186597291058
6455895819.98948780226-230.989487802262
6553315425.56550273361-94.5655027336064
6630753277.0276470921-202.027647092102
6720021744.54789460313257.452105396873
6823062191.64124571704114.358754282959
6915071388.43393920715118.566060792847
7019922124.19940385637-132.199403856369
7124872420.1411483816366.8588516183671
7234903112.24660010223377.753399897774
7346474544.79729551188102.20270448812
7455945861.42184214837-267.421842148368
7556115276.81924709339334.180752906606
7657885968.24980189918-180.249801899177
7762045615.70296287732588.297037122684
7830133025.49785624628-12.4978562462758
7919311956.4968666689-25.4968666688975
8025492544.632935735584.36706426442032
8115041328.39630161174175.60369838826
8220902130.74618886155-40.7461888615537
8327022482.83399154483219.166008455172
8429393078.39853669535-139.398536695351
8545004762.90453695668-262.904536956678
8662085370.26791061217837.732089387828
8764155424.78708578126990.212914218735
8856575759.43650601541-102.436506015411
8959645997.37860676079-33.3786067607902
9031633406.68425444474-243.684254444744
9119971867.26447880101129.735521198991
9224222451.06104297033-29.0610429703297
9313761418.86509357954-42.8650935795374
9422022178.8239723279123.1760276720877
9526832388.15701272634294.842987273659
9633033045.25981017406257.740189825938
9752024698.53814957424503.461850425761
9852315231.56263930886-0.562639308860696
9948805394.12329845784-514.123298457836
10079986853.116906050951144.88309394905
10149774796.50937415352180.490625846483
10235313386.41667831097144.583321689033
10320252447.50355379964-422.503553799642
10422052227.16200607933-22.1620060793274
10514421577.33259676344-135.33259676344
10622382156.5838576142881.4161423857224
10721792306.42097428181-127.42097428181
10832183202.3206500655215.679349934477
10951394664.25699419113474.743005808868
11049905045.06874331066-55.0687433106602
11149145394.58166460891-480.581664608911
11260846243.86674564837-159.866745648371
11356725761.32311178951-89.3231117895135
11435482918.93781427837629.062185721631
11517931814.78927451544-21.7892745154363
11620862470.74198343903-384.741983439028


Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
200.9879850239666430.02402995206671490.0120149760333574
210.9722950017700150.05540999645996990.027704998229985
220.9560270573896280.08794588522074340.0439729426103717
230.9298222116664150.140355576667170.0701777883335852
240.8963048147212680.2073903705574630.103695185278732
250.8690243071477140.2619513857045720.130975692852286
260.8215275439842950.356944912031410.178472456015705
270.8427627769833080.3144744460333840.157237223016692
280.8605520245952020.2788959508095970.139447975404798
290.9025155172193130.1949689655613740.097484482780687
300.8681997092983830.2636005814032350.131800290701617
310.854216935753720.291566128492560.14578306424628
320.8292577089420570.3414845821158860.170742291057943
330.7765830920067540.4468338159864910.223416907993246
340.7186406520167180.5627186959665650.281359347983282
350.6893452115925090.6213095768149820.310654788407491
360.6424264690608720.7151470618782560.357573530939128
370.5818263608027140.8363472783945720.418173639197286
380.5496583152361310.9006833695277390.450341684763869
390.701943632638840.5961127347223210.298056367361161
400.641571202376870.7168575952462610.358428797623131
410.6192965097722040.7614069804555910.380703490227796
420.561228852898510.877542294202980.43877114710149
430.5232227509665830.9535544980668340.476777249033417
440.4728965303375850.945793060675170.527103469662415
450.4147980972453850.829596194490770.585201902754615
460.4095875179941870.8191750359883740.590412482005813
470.3532637502686820.7065275005373650.646736249731318
480.3552945668680760.7105891337361520.644705433131924
490.3044051169329710.6088102338659430.695594883067029
500.2898034755574180.5796069511148370.710196524442582
510.2719398106725590.5438796213451190.72806018932744
520.2597044521286250.519408904257250.740295547871375
530.3378150026212440.6756300052424880.662184997378756
540.304444780662650.60888956132530.69555521933735
550.3207284134041490.6414568268082980.679271586595851
560.2811424571837760.5622849143675520.718857542816224
570.2326540420356190.4653080840712380.767345957964381
580.189478426507870.3789568530157410.81052157349213
590.1691728268303270.3383456536606530.830827173169673
600.1645343899647710.3290687799295430.835465610035229
610.2307558738574420.4615117477148850.769244126142558
620.2233446529333620.4466893058667230.776655347066638
630.2113225102485850.4226450204971690.788677489751415
640.1936843560219530.3873687120439060.806315643978047
650.1626354573712590.3252709147425180.837364542628741
660.1588080952701160.3176161905402320.841191904729884
670.1307746591830780.2615493183661560.869225340816922
680.1005787941667310.2011575883334620.899421205833269
690.07551357182154020.151027143643080.92448642817846
700.0603078347588140.1206156695176280.939692165241186
710.04356767757318990.08713535514637980.95643232242681
720.04170456834973690.08340913669947370.958295431650263
730.03184032051893630.06368064103787250.968159679481064
740.07415232862454560.1483046572490910.925847671375454
750.09689509384830930.1937901876966190.90310490615169
760.0768155117813090.1536310235626180.92318448821869
770.1858252714676030.3716505429352060.814174728532397
780.1526151085472830.3052302170945660.847384891452717
790.1176510771057720.2353021542115440.882348922894228
800.0938807739641230.1877615479282460.906119226035877
810.07257240788224130.1451448157644830.927427592117759
820.05210564783665210.1042112956733040.947894352163348
830.0376404941972020.0752809883944040.962359505802798
840.02853768319662810.05707536639325610.971462316803372
850.04906132131251470.09812264262502950.950938678687485
860.2473771467837110.4947542935674220.752622853216289
870.4909042910874230.9818085821748460.509095708912577
880.6923944694894130.6152110610211750.307605530510587
890.9521602330916960.09567953381660770.0478397669083038
900.9729317556175460.0541364887649090.0270682443824545
910.9869250102880770.02614997942384510.0130749897119226
920.97623568221220.04752863557559750.0237643177877988
930.9526309887154740.09473802256905130.0473690112845257
940.900252867984380.199494264031240.09974713201562
950.9768558123045090.0462883753909830.0231441876954915
960.9575852329086440.08482953418271150.0424147670913558


Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level00OK
5% type I error level40.051948051948052NOK
10% type I error level160.207792207792208NOK
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Dec/31/t1293789357amdpmz7u1yulzm4/10igpx1293789345.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/31/t1293789357amdpmz7u1yulzm4/10igpx1293789345.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/31/t1293789357amdpmz7u1yulzm4/1pj5o1293789345.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/31/t1293789357amdpmz7u1yulzm4/1pj5o1293789345.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/31/t1293789357amdpmz7u1yulzm4/2dfhy1293789345.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/31/t1293789357amdpmz7u1yulzm4/2dfhy1293789345.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/31/t1293789357amdpmz7u1yulzm4/330da1293789345.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/31/t1293789357amdpmz7u1yulzm4/330da1293789345.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/31/t1293789357amdpmz7u1yulzm4/4c9kz1293789345.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/31/t1293789357amdpmz7u1yulzm4/4c9kz1293789345.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/31/t1293789357amdpmz7u1yulzm4/565tu1293789345.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/31/t1293789357amdpmz7u1yulzm4/565tu1293789345.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/31/t1293789357amdpmz7u1yulzm4/67ydo1293789345.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/31/t1293789357amdpmz7u1yulzm4/67ydo1293789345.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/31/t1293789357amdpmz7u1yulzm4/7pwco1293789345.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/31/t1293789357amdpmz7u1yulzm4/7pwco1293789345.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/31/t1293789357amdpmz7u1yulzm4/8pspo1293789345.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/31/t1293789357amdpmz7u1yulzm4/8pspo1293789345.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/31/t1293789357amdpmz7u1yulzm4/9keh91293789345.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/31/t1293789357amdpmz7u1yulzm4/9keh91293789345.ps (open in new window)


 
Parameters (Session):
par1 = 1 ; par2 = Include Monthly Dummies ; par3 = No Linear Trend ;
 
Parameters (R input):
par1 = 1 ; par2 = Include Monthly 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