Home » date » 2008 » Dec » 17 »

paper uitvoer

*Unverified author*
R Software Module: rwasp_multipleregression.wasp (opens new window with default values)
Title produced by software: Multiple Regression
Date of computation: Wed, 17 Dec 2008 08:25:56 -0700
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2008/Dec/17/t1229528000c65vpxi8jk930cs.htm/, Retrieved Wed, 17 Dec 2008 16:33:31 +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/2008/Dec/17/t1229528000c65vpxi8jk930cs.htm/},
    year = {2008},
}
@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 = {2008},
    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 «
6392,3 0 8686,4 0 9244,7 0 8182,7 0 7451,4 0 7988,8 0 8243,5 0 8843 0 9092,7 0 8246,7 0 9311,7 0 8341,2 0 7116,7 0 9635,7 0 9815,4 0 8611,3 0 8297,8 0 8715,1 0 8919,9 0 10085,8 0 9511,7 0 8991,3 0 10311,2 0 8895,4 0 7449,8 0 10084 0 9859,4 0 9100,1 0 8920,8 0 8502,7 0 8599,6 0 10394,4 0 9290,4 0 8742,2 0 10217,3 0 8639 0 8139,6 0 10779,1 0 10427,7 0 10349,1 0 10036,4 0 9492,1 0 10638,8 0 12054,5 0 10324,7 0 11817,3 0 11008,9 0 9996,6 0 9419,5 0 11958,8 0 12594,6 0 11890,6 0 10871,7 0 11835,7 0 11542,2 0 13093,7 0 11180,2 0 12035,7 0 12112 0 10875,2 0 9897,3 0 11672,1 1 12385,7 1 11405,6 1 9830,9 1 11025,1 1 10853,8 1 12252,6 1 11839,4 1 11669,1 1 11601,4 1 11178,4 1 9516,4 1 12102,8 1 12989 1 11610,2 1 10205,5 1 11356,2 1 11307,1 1 12648,6 1 11947,2 1 11714,1 1 12192,5 1 11268,8 1 9097,4 1 12639,8 1 13040,1 1 11687,3 1 11191,7 1 11391,9 1 11793,1 1 13933,2 1 12778,1 1 11810,3 1 13698,4 1 11956,6 1 10723,8 1 13938,9 1 13979,8 1 13807,4 1 12973,9 1 12509,8 1 12934,1 1 14908,3 1 13772,1 1 13012,6 1 14049,9 1 11816,5 1 11593,2 1 14466,2 1 13615,9 1 14733,9 1 13880,7 1 13527,5 1 13584 1 16170,2 1 13260,6 1 14741,9 1 15486,5 1 13154,5 1 12621,2 1
 
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' @ 72.249.127.135


Multiple Linear Regression - Estimated Regression Equation
y[t] = + 6977.32040000001 -1116.87460000000x[t] -1075.56453484848M1[t] + 1619.51407575757M2[t] + 1754.82866818181M3[t] + 1033.88326060606M4[t] + 198.607853030304M5[t] + 403.482445454546M6[t] + 547.067037878787M7[t] + 2080.35163030303M8[t] + 878.096222727272M9[t] + 792.970815151514M10[t] + 1450.29540757576M11[t] + 63.5354075757575t + e[t]


Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STAT
H0: parameter = 0
2-tail p-value1-tail p-value
(Intercept)6977.32040000001193.85618435.992300
x-1116.87460000000188.16333-5.935700
M1-1075.56453484848223.331627-4.8165e-062e-06
M21619.51407575757230.0547097.039700
M31754.82866818181229.7528887.637900
M41033.88326060606229.4825014.50531.7e-058e-06
M5198.607853030304229.243660.86640.3882310.194115
M6403.482445454546229.0364621.76170.0809840.040492
M7547.067037878787228.8609952.39040.0185780.009289
M82080.35163030303228.717339.095700
M9878.096222727272228.6055293.84110.0002080.000104
M10792.970815151514228.5256373.46990.0007520.000376
M111450.29540757576228.4776896.347600
t63.53540757575752.70262623.508800


Multiple Linear Regression - Regression Statistics
Multiple R0.970403731723856
R-squared0.941683402543585
Adjusted R-squared0.934598208460095
F-TEST (value)132.908624865753
F-TEST (DF numerator)13
F-TEST (DF denominator)107
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation510.85590017062
Sum Squared Residuals27924191.3290873


Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolation
Forecast
Residuals
Prediction Error
16392.35965.29127272723427.008727272767
28686.48723.9052909091-37.5052909090933
39244.78922.7552909091321.944709090906
48182.78265.34529090909-82.645290909089
57451.47493.60529090908-42.2052909090857
67988.87762.0152909091226.784709090905
78243.57969.1352909091274.364709090907
888439565.9552909091-722.955290909096
99092.78427.2352909091665.46470909091
108246.78405.6452909091-158.945290909096
119311.79126.50529090909185.194709090911
128341.27739.7452909091601.454709090909
137116.76727.71616363637388.983836363634
149635.79486.33018181818149.369818181822
159815.49685.18018181818130.219818181817
168611.39027.77018181818-416.470181818184
178297.88256.0301818181841.7698181818158
188715.18524.44018181818190.659818181818
198919.98731.56018181818188.339818181817
2010085.810328.3801818182-242.580181818183
219511.79189.66018181818322.039818181818
228991.39168.07018181818-176.770181818183
2310311.29888.93018181818422.269818181818
248895.48502.17018181818393.229818181816
257449.87490.14105454546-40.3410545454595
261008410248.7550727273-164.755072727273
279859.410447.6050727273-588.205072727274
289100.19790.19507272727-690.095072727273
298920.89018.45507272727-97.6550727272747
308502.79286.86507272727-784.165072727272
318599.69493.98507272727-894.385072727273
3210394.411090.8050727273-696.405072727273
339290.49952.08507272727-661.685072727274
348742.29930.49507272727-1188.29507272727
3510217.310651.3550727273-434.055072727274
3686399264.59507272727-625.595072727274
378139.68252.56594545455-112.965945454550
3810779.111011.1799636364-232.079963636364
3910427.711210.0299636364-782.329963636363
4010349.110552.6199636364-203.519963636364
4110036.49780.87996363637255.520036363635
429492.110049.2899636364-557.189963636363
4310638.810256.4099636364382.390036363636
4412054.511853.2299636364201.270036363637
4510324.710714.5099636364-389.809963636363
4611817.310692.91996363641124.38003636364
4711008.911413.7799636364-404.879963636364
489996.610027.0199636364-30.4199636363639
499419.59014.99083636364404.50916363636
5011958.811773.6048545455185.195145454546
5112594.611972.4548545455622.145145454547
5211890.611315.0448545455575.555145454546
5310871.710543.3048545455328.395145454546
5411835.710811.71485454551023.98514545455
5511542.211018.8348545455523.365145454547
5613093.712615.6548545455478.045145454547
5711180.211476.9348545455-296.734854545454
5812035.711455.3448545455580.355145454546
591211212176.2048545455-64.204854545455
6010875.210789.444854545585.7551454545451
619897.39777.41572727273119.884272727268
6211672.111419.1551454545252.944854545454
6312385.711618.0051454545767.694854545455
6411405.610960.5951454545445.004854545454
659830.910188.8551454545-357.955145454546
6611025.110457.2651454545567.834854545454
6710853.810664.3851454545189.414854545453
6812252.612261.2051454545-8.60514545454526
6911839.411122.4851454545716.914854545453
7011669.111100.8951454545568.204854545455
7111601.411821.7551454545-220.355145454546
7211178.410434.9951454545743.404854545453
739516.49422.9660181818293.433981818177
7412102.812181.5800363636-78.7800363636379
751298912380.4300363636608.569963636364
7611610.211723.0200363636-112.820036363636
7710205.510951.2800363636-745.780036363637
7811356.211219.6900363636136.509963636364
7911307.111426.8100363636-119.710036363636
8012648.613023.6300363636-375.030036363635
8111947.211884.910036363662.2899636363642
8211714.111863.3200363636-149.220036363636
8312192.512584.1800363636-391.680036363636
8411268.811197.420036363671.3799636363621
859097.410185.3909090909-1087.99090909091
8612639.812944.0049272727-304.204927272728
8713040.113142.8549272727-102.754927272726
8811687.312485.4449272727-798.144927272728
8911191.711713.7049272727-522.004927272727
9011391.911982.1149272727-590.214927272727
9111793.112189.2349272727-396.134927272726
9213933.213786.0549272727147.145072727275
9312778.112647.3349272727130.765072727273
9411810.312625.7449272727-815.444927272727
9513698.413346.6049272727351.795072727273
9611956.611959.8449272727-3.24492727272725
9710723.810947.8158-224.015800000005
9813938.913706.4298181818232.470181818182
9913979.813905.279818181874.5201818181821
10013807.413247.8698181818559.530181818182
10112973.912476.1298181818497.770181818182
10212509.812744.5398181818-234.739818181818
10312934.112951.6598181818-17.559818181817
10414908.314548.4798181818359.820181818183
10513772.113409.7598181818362.340181818183
10613012.613388.1698181818-375.569818181816
10714049.914109.0298181818-59.1298181818175
10811816.512722.2698181818-905.769818181818
10911593.211710.2406909091-117.040690909093
11014466.214468.8547090909-2.65470909090794
11113615.914667.7047090909-1051.80470909091
11214733.914010.2947090909723.605290909092
11313880.713238.5547090909642.145290909092
11413527.513506.964709090920.5352909090921
1151358413714.0847090909-130.084709090908
11616170.215310.9047090909859.295290909094
11713260.614172.1847090909-911.584709090908
11814741.914150.5947090909591.305290909093
11915486.514871.4547090909615.045290909093
12013154.513484.6947090909-330.194709090909
12112621.212472.6655818182148.534418181817


Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
170.04234504638762210.08469009277524430.957654953612378
180.01102436474242860.02204872948485730.988975635257571
190.002625116964438200.005250233928876390.997374883035562
200.007006357040182690.01401271408036540.992993642959817
210.004603697572942770.009207395145885540.995396302427057
220.001503301112020180.003006602224040350.99849669888798
230.0007739420741617710.001547884148323540.999226057925838
240.0003389008064967160.0006778016129934320.999661099193503
250.0003596755510569500.0007193511021138990.999640324448943
260.0001285114185295270.0002570228370590550.99987148858147
270.0006721027752964760.001344205550592950.999327897224703
280.000369109334305790.000738218668611580.999630890665694
290.0001630031808192400.0003260063616384790.99983699681918
300.0008643575140700480.001728715028140100.99913564248593
310.00352663507525540.00705327015051080.996473364924745
320.002414662540942260.004829325081884520.997585337459058
330.005873702629764480.01174740525952900.994126297370236
340.01149002582086160.02298005164172320.988509974179138
350.008240895352268010.01648179070453600.991759104647732
360.01139543093151430.02279086186302860.988604569068486
370.008520284028795050.01704056805759010.991479715971205
380.007967937246884580.01593587449376920.992032062753115
390.00747587498754960.01495174997509920.99252412501245
400.01706475488881680.03412950977763360.982935245111183
410.03033018348463680.06066036696927370.969669816515363
420.02790701012313410.05581402024626820.972092989876866
430.06108179150393120.1221635830078620.938918208496069
440.1392375876649590.2784751753299180.860762412335041
450.1234242426530780.2468484853061560.876575757346922
460.5506726825974870.8986546348050250.449327317402513
470.5339622080313360.9320755839373270.466037791968664
480.4803822412354490.9607644824708980.519617758764551
490.4611530540153210.9223061080306420.538846945984679
500.4359957389733460.8719914779466930.564004261026654
510.5083898166604960.9832203666790080.491610183339504
520.5678203253906530.8643593492186940.432179674609347
530.5234858359003410.9530283281993170.476514164099659
540.6665441655827740.6669116688344530.333455834417226
550.6483855313876950.703228937224610.351614468612305
560.646463331931130.707073336137740.35353666806887
570.6243007240717550.7513985518564890.375699275928245
580.6124067643650280.7751864712699440.387593235634972
590.5636694400714230.8726611198571550.436330559928577
600.5068189872210810.9863620255578370.493181012778919
610.4505431834664750.901086366932950.549456816533525
620.3973452445146250.794690489029250.602654755485375
630.4133325735465060.8266651470930120.586667426453494
640.3671242827067790.7342485654135590.63287571729322
650.382031667722460.764063335444920.61796833227754
660.3763311757374540.7526623514749080.623668824262546
670.3387493750139020.6774987500278040.661250624986098
680.2903189524514650.5806379049029310.709681047548534
690.3156316533697830.6312633067395670.684368346630217
700.3322193349074850.664438669814970.667780665092515
710.3005365938572390.6010731877144790.69946340614276
720.3987016880124340.7974033760248690.601298311987566
730.4048079250854360.8096158501708710.595192074914564
740.3599414698293320.7198829396586650.640058530170668
750.4783465593123810.9566931186247610.521653440687619
760.4241057699244970.8482115398489940.575894230075503
770.4880485990920730.9760971981841460.511951400907927
780.488349767049230.976699534098460.51165023295077
790.4555335963661950.9110671927323890.544466403633805
800.436306992199020.872613984398040.56369300780098
810.4099992724660420.8199985449320840.590000727533958
820.3794696729717930.7589393459435850.620530327028207
830.3431046513846230.6862093027692460.656895348615377
840.3873240147416550.7746480294833090.612675985258345
850.4863935712525990.9727871425051990.513606428747401
860.4267271503271790.8534543006543580.573272849672821
870.4224547298002690.8449094596005380.577545270199731
880.5898267143734460.8203465712531070.410173285626554
890.663208050638250.67358389872350.33679194936175
900.6321221813466430.7357556373067140.367877818653357
910.5720507555689650.855898488862070.427949244431035
920.5266640059849470.9466719880301060.473335994015053
930.4888607844689330.9777215689378660.511139215531067
940.5841183926662830.8317632146674330.415881607333717
950.5084499852658970.9831000294682060.491550014734103
960.5165741583411580.9668516833176850.483425841658842
970.4264153313814040.8528306627628080.573584668618596
980.3516185215242420.7032370430484840.648381478475758
990.552442461165880.8951150776682390.447557538834120
1000.4586299797238320.9172599594476630.541370020276168
1010.3570104566174690.7140209132349370.642989543382531
1020.2483615346432920.4967230692865830.751638465356708
1030.1699019636884060.3398039273768120.830098036311594
1040.0988983998517530.1977967997035060.901101600148247


Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level130.147727272727273NOK
5% type I error level230.261363636363636NOK
10% type I error level260.295454545454545NOK
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/17/t1229528000c65vpxi8jk930cs/10k9hd1229527548.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/17/t1229528000c65vpxi8jk930cs/10k9hd1229527548.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/17/t1229528000c65vpxi8jk930cs/1fzaw1229527548.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/17/t1229528000c65vpxi8jk930cs/1fzaw1229527548.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/17/t1229528000c65vpxi8jk930cs/28q0u1229527548.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/17/t1229528000c65vpxi8jk930cs/28q0u1229527548.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/17/t1229528000c65vpxi8jk930cs/30jge1229527548.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/17/t1229528000c65vpxi8jk930cs/30jge1229527548.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/17/t1229528000c65vpxi8jk930cs/4p0al1229527548.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/17/t1229528000c65vpxi8jk930cs/4p0al1229527548.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/17/t1229528000c65vpxi8jk930cs/527pg1229527548.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/17/t1229528000c65vpxi8jk930cs/527pg1229527548.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/17/t1229528000c65vpxi8jk930cs/6ynbc1229527548.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/17/t1229528000c65vpxi8jk930cs/6ynbc1229527548.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/17/t1229528000c65vpxi8jk930cs/7owo31229527548.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/17/t1229528000c65vpxi8jk930cs/7owo31229527548.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/17/t1229528000c65vpxi8jk930cs/86u651229527548.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/17/t1229528000c65vpxi8jk930cs/86u651229527548.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/17/t1229528000c65vpxi8jk930cs/979r61229527548.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/17/t1229528000c65vpxi8jk930cs/979r61229527548.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