Home » date » 2009 » Dec » 14 »

Multiple Regression (invoer)

*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: Mon, 14 Dec 2009 04:36:12 -0700
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2009/Dec/14/t1260790772aq3k2jqmuflj0w2.htm/, Retrieved Mon, 14 Dec 2009 12:39:46 +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/2009/Dec/14/t1260790772aq3k2jqmuflj0w2.htm/},
    year = {2009},
}
@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 = {2009},
    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 «
7787.0 0 8474.2 0 9154.7 0 8557.2 0 7951.1 0 9156.7 0 7865.7 0 7337.4 0 9131.7 0 8814.6 0 8598.8 0 8439.6 0 7451.8 0 8016.2 0 9544.1 0 8270.7 0 8102.2 0 9369.0 0 7657.7 0 7816.6 0 9391.3 0 9445.4 0 9533.1 0 10068.7 0 8955.5 0 10423.9 0 11617.2 0 9391.1 0 10872.0 0 10230.4 0 9221.0 0 9428.6 0 10934.5 0 10986.0 0 11724.6 0 11180.9 0 11163.2 0 11240.9 0 12107.1 0 10762.3 0 11340.4 0 11266.8 0 9542.7 0 9227.7 0 10571.9 1 10774.4 1 10392.8 1 9920.2 1 9884.9 1 10174.5 1 11395.4 1 10760.2 1 10570.1 1 10536.0 1 9902.6 1 8889.0 1 10837.3 1 11624.1 1 10509.0 1 10984.9 1 10649.1 1 10855.7 1 11677.4 1 10760.2 1 10046.2 1 10772.8 1 9987.7 1 8638.7 1 11063.7 1 11855.7 1 10684.5 1 11337.4 1 10478.0 1 11123.9 1 12909.3 1 11339.9 1 10462.2 1 12733.5 1 10519.2 1 10414.9 1 12476.8 1 12384. 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 time4 seconds
R Server'Gwilym Jenkins' @ 72.249.127.135


Multiple Linear Regression - Estimated Regression Equation
Invoer[t] = + 9489.82500000001 + 3199.11590909090Dummie[t] + e[t]


Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STAT
H0: parameter = 0
2-tail p-value1-tail p-value
(Intercept)9489.82500000001286.79758433.088900
Dummie3199.11590909090351.2538719.107700


Multiple Linear Regression - Regression Statistics
Multiple R0.624122410216832
R-squared0.389528782934867
Adjusted R-squared0.384832850495905
F-TEST (value)82.9502527981266
F-TEST (DF numerator)1
F-TEST (DF denominator)130
p-value1.33226762955019e-15
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation1902.39995636125
Sum Squared Residuals470486327.215227


Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolation
Forecast
Residuals
Prediction Error
177879489.82499999992-1702.82499999992
28474.29489.82499999998-1015.62499999998
39154.79489.825-335.125000000001
48557.29489.825-932.625000000001
57951.19489.825-1538.72500000000
69156.79489.825-333.125000000001
77865.79489.825-1624.12500000000
87337.49489.825-2152.42500000000
99131.79489.825-358.125000000001
108814.69489.825-675.225000000002
118598.89489.825-891.025000000003
128439.69489.825-1050.22500000000
137451.89489.825-2038.025
148016.29489.825-1473.62500000000
159544.19489.82554.2749999999982
168270.79489.825-1219.12500000000
178102.29489.825-1387.62500000000
1893699489.825-120.825000000002
197657.79489.825-1832.12500000000
207816.69489.825-1673.22500000000
219391.39489.825-98.525000000003
229445.49489.825-44.4250000000026
239533.19489.82543.2749999999982
2410068.79489.825578.874999999999
258955.59489.825-534.325000000002
2610423.99489.825934.074999999997
2711617.29489.8252127.375
289391.19489.825-98.7250000000019
29108729489.8251382.17500000000
3010230.49489.825740.574999999997
3192219489.825-268.825000000002
329428.69489.825-61.2250000000019
3310934.59489.8251444.67500000000
34109869489.8251496.17500000000
3511724.69489.8252234.775
3611180.99489.8251691.07500000000
3711163.29489.8251673.375
3811240.99489.8251751.07500000000
3912107.19489.8252617.275
4010762.39489.8251272.47500000000
4111340.49489.8251850.57500000000
4211266.89489.8251776.97500000000
439542.79489.82552.8749999999985
449227.79489.825-262.125000000001
4510571.912688.9409090909-2117.04090909091
4610774.412688.9409090909-1914.54090909091
4710392.812688.9409090909-2296.14090909091
489920.212688.9409090909-2768.74090909091
499884.912688.9409090909-2804.04090909091
5010174.512688.9409090909-2514.44090909091
5111395.412688.9409090909-1293.54090909091
5210760.212688.9409090909-1928.74090909091
5310570.112688.9409090909-2118.84090909091
541053612688.9409090909-2152.94090909091
559902.612688.9409090909-2786.34090909091
56888912688.9409090909-3799.94090909091
5710837.312688.9409090909-1851.64090909091
5811624.112688.9409090909-1064.84090909091
591050912688.9409090909-2179.94090909091
6010984.912688.9409090909-1704.04090909091
6110649.112688.9409090909-2039.84090909091
6210855.712688.9409090909-1833.24090909091
6311677.412688.9409090909-1011.54090909091
6410760.212688.9409090909-1928.74090909091
6510046.212688.9409090909-2642.74090909091
6610772.812688.9409090909-1916.14090909091
679987.712688.9409090909-2701.24090909091
688638.712688.9409090909-4050.24090909091
6911063.712688.9409090909-1625.24090909091
7011855.712688.9409090909-833.240909090909
7110684.512688.9409090909-2004.44090909091
7211337.412688.9409090909-1351.54090909091
731047812688.9409090909-2210.94090909091
7411123.912688.9409090909-1565.04090909091
7512909.312688.9409090909220.359090909090
7611339.912688.9409090909-1349.04090909091
7710462.212688.9409090909-2226.74090909091
7812733.512688.940909090944.5590909090904
7910519.212688.9409090909-2169.74090909091
8010414.912688.9409090909-2274.04090909091
8112476.812688.9409090909-212.140909090910
8212384.612688.9409090909-304.340909090909
8312266.712688.9409090909-422.240909090909
8412919.912688.9409090909230.95909090909
8511497.312688.9409090909-1191.64090909091
861214212688.9409090909-546.94090909091
8713919.412688.94090909091230.45909090909
8812656.812688.9409090909-32.1409090909104
8912034.112688.9409090909-654.840909090909
9013199.712688.9409090909510.759090909091
9110881.312688.9409090909-1807.64090909091
9211301.212688.9409090909-1387.74090909091
9313643.912688.9409090909954.95909090909
941251712688.9409090909-171.940909090910
9513981.112688.94090909091292.15909090909
9614275.712688.94090909091586.75909090909
971343512688.9409090909746.05909090909
9813565.712688.9409090909876.759090909091
9916216.312688.94090909093527.35909090909
1001297012688.9409090909281.059090909090
10114079.912688.94090909091390.95909090909
1021423512688.94090909091546.05909090909
10312213.412688.9409090909-475.54090909091
1041258112688.9409090909-107.940909090910
10514130.412688.94090909091441.45909090909
10614210.812688.94090909091521.85909090909
10714378.512688.94090909091689.55909090909
10813142.812688.9409090909453.85909090909
10913714.712688.94090909091025.75909090909
11013621.912688.9409090909932.95909090909
11115379.812688.94090909092690.85909090909
11213306.312688.9409090909617.35909090909
11314391.212688.94090909091702.25909090909
11414909.912688.94090909092220.95909090909
11514025.412688.94090909091336.45909090909
11612951.212688.9409090909262.259090909091
11714344.312688.94090909091655.35909090909
11816093.412688.94090909093404.45909090909
11915413.612688.94090909092724.65909090909
12014705.712688.94090909092016.75909090909
12115972.812688.94090909093283.85909090909
12216241.412688.94090909093552.45909090909
12316626.412688.94090909093937.45909090909
12417136.212688.94090909094447.25909090909
12515622.912688.94090909092933.95909090909
12618003.912688.94090909095314.95909090909
12716136.112688.94090909093447.15909090909
12814423.712688.94090909091734.75909090909
12916789.412688.94090909094100.45909090909
13016782.212688.94090909094093.25909090909
13114133.812688.94090909091444.85909090909
1321260712688.9409090909-81.9409090909096


Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
50.04353203355791050.08706406711582110.95646796644209
60.02194969758776980.04389939517553950.97805030241223
70.00982207125083060.01964414250166120.99017792874917
80.008871987787254680.01774397557450940.991128012212745
90.005231633856225460.01046326771245090.994768366143775
100.002071173734457960.004142347468915910.997928826265542
110.0006983964574210120.001396792914842020.999301603542579
120.0002196671483653320.0004393342967306640.999780332851635
130.0001950667092579960.0003901334185159920.999804933290742
147.27556890183157e-050.0001455113780366310.999927244310982
159.23081156274626e-050.0001846162312549250.999907691884373
163.27301669681818e-056.54603339363636e-050.999967269833032
171.23268213477734e-052.46536426955468e-050.999987673178652
181.00588344048050e-052.01176688096100e-050.999989941165595
196.59889150344053e-061.31977830068811e-050.999993401108497
203.39779444781356e-066.79558889562712e-060.999996602205552
212.93577469841226e-065.87154939682452e-060.999997064225302
222.48780235488490e-064.97560470976981e-060.999997512197645
232.19539545603819e-064.39079091207638e-060.999997804604544
244.4584936419605e-068.916987283921e-060.999995541506358
251.98386666530909e-063.96773333061819e-060.999998016133335
265.9765148415475e-061.1953029683095e-050.999994023485159
270.0001216130692303370.0002432261384606740.99987838693077
286.96036367277916e-050.0001392072734555830.999930396363272
290.0001432234856843980.0002864469713687960.999856776514316
300.0001279080555757430.0002558161111514850.999872091944424
317.03388897784823e-050.0001406777795569650.999929661110222
323.99583828826783e-057.99167657653566e-050.999960041617117
336.75814715197448e-050.0001351629430394900.99993241852848
340.0001035496342131370.0002070992684262750.999896450365787
350.0003098383612199560.0006196767224399110.99969016163878
360.0004175739571622830.0008351479143245660.999582426042838
370.0005089908208941480.001017981641788300.999491009179106
380.0006137402963193030.001227480592638610.99938625970368
390.001404347725641350.00280869545128270.998595652274359
400.001152267197626060.002304534395252120.998847732802374
410.001264893367463290.002529786734926580.998735106632537
420.001322274497596660.002644548995193330.998677725502403
430.0008151827214597780.001630365442919560.99918481727854
440.0004988301021462020.0009976602042924050.999501169897854
450.0003409355280857590.0006818710561715190.999659064471914
460.0002273627850560080.0004547255701120160.999772637214944
470.0001605347757789380.0003210695515578760.999839465224221
480.0001300219620102230.0002600439240204460.99986997803799
490.0001059760850368410.0002119521700736830.999894023914963
507.9696944194331e-050.0001593938883886620.999920303055806
515.9952665513999e-050.0001199053310279980.999940047334486
524.14641410125045e-058.2928282025009e-050.999958535858988
532.93869154583706e-055.87738309167413e-050.999970613084542
542.11183189251730e-054.22366378503459e-050.999978881681075
551.91617679720098e-053.83235359440195e-050.999980838232028
563.65750565742886e-057.31501131485772e-050.999963424943426
572.77825737532000e-055.55651475063999e-050.999972217426247
582.32837322138361e-054.65674644276722e-050.999976716267786
591.86788305158412e-053.73576610316825e-050.999981321169484
601.42116608815218e-052.84233217630436e-050.999985788339119
611.13990737477921e-052.27981474955842e-050.999988600926252
628.966592081345e-061.793318416269e-050.999991033407919
637.44865960501264e-061.48973192100253e-050.999992551340395
646.0941334496871e-061.21882668993742e-050.99999390586655
657.01548162669735e-061.40309632533947e-050.999992984518373
666.10407480152007e-061.22081496030401e-050.999993895925198
678.06961422743178e-061.61392284548636e-050.999991930385772
684.70230431969710e-059.40460863939421e-050.999952976956803
694.60896071040176e-059.21792142080351e-050.999953910392896
704.68496959765273e-059.36993919530545e-050.999953150304024
715.36393101842386e-050.0001072786203684770.999946360689816
725.42661046248711e-050.0001085322092497420.999945733895375
737.60938600399332e-050.0001521877200798660.99992390613996
748.67289788654204e-050.0001734579577308410.999913271021135
750.000133836378414670.000267672756829340.999866163621585
760.0001489784792375330.0002979569584750670.999851021520762
770.0002607689322658080.0005215378645316150.999739231067734
780.0003412366356611750.000682473271322350.999658763364339
790.0006419279239435620.001283855847887120.999358072076056
800.001441496645707630.002882993291415260.998558503354292
810.001778183560668240.003556367121336480.998221816439332
820.002139146674833060.004278293349666120.997860853325167
830.002557410682351450.00511482136470290.997442589317649
840.003192022493249490.006384044986498980.99680797750675
850.004613387546686450.00922677509337290.995386612453314
860.005745170335747830.01149034067149570.994254829664252
870.009072165972850970.01814433194570190.990927834027149
880.01036556937324220.02073113874648450.989634430626758
890.01326712182984980.02653424365969960.98673287817015
900.01532654305390380.03065308610780770.984673456946096
910.03725863220712880.07451726441425760.962741367792871
920.07381590267835110.1476318053567020.926184097321649
930.0863559755650230.1727119511300460.913644024434977
940.1083896488056480.2167792976112960.891610351194352
950.1249191150964810.2498382301929620.875080884903519
960.1441197346848980.2882394693697960.855880265315102
970.1537897849356100.3075795698712200.84621021506439
980.1620355567705910.3240711135411820.83796444322941
990.2893348163932360.5786696327864730.710665183606764
1000.3079722171827790.6159444343655570.692027782817221
1010.3055177905006430.6110355810012860.694482209499357
1020.3009540303233690.6019080606467390.69904596967663
1030.3845344300944870.7690688601889730.615465569905513
1040.4560182991688510.9120365983377020.543981700831149
1050.4488751721765230.8977503443530470.551124827823477
1060.4383660019399190.8767320038798380.561633998060081
1070.4239722524851580.8479445049703150.576027747514842
1080.4625751237223450.925150247444690.537424876277655
1090.4690582133617550.938116426723510.530941786638245
1100.4858622459050590.9717244918101190.514137754094941
1110.4749780613098630.9499561226197260.525021938690137
1120.5227112363361220.9545775273277550.477288763663878
1130.5034013200712440.9931973598575110.496598679928756
1140.4709989039274650.941997807854930.529001096072535
1150.4704255621443540.9408511242887070.529574437855646
1160.6128975204357350.774204959128530.387102479564265
1170.6134713983768470.7730572032463060.386528601623153
1180.5822645653969570.8354708692060860.417735434603043
1190.5285833163894660.9428333672210670.471416683610534
1200.4951447514640180.9902895029280350.504855248535982
1210.4348185045634080.8696370091268160.565181495436592
1220.3774326724410730.7548653448821460.622567327558927
1230.336056515813980.672113031627960.66394348418602
1240.3357308209797520.6714616419595040.664269179020248
1250.2446414857060650.4892829714121290.755358514293936
1260.3762261051219890.7524522102439780.623773894878011
1270.2856938573367260.5713877146734510.714306142663274


Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level760.617886178861789NOK
5% type I error level850.691056910569106NOK
10% type I error level870.707317073170732NOK
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2009/Dec/14/t1260790772aq3k2jqmuflj0w2/10io521260790567.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/14/t1260790772aq3k2jqmuflj0w2/10io521260790567.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/14/t1260790772aq3k2jqmuflj0w2/17mdb1260790567.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/14/t1260790772aq3k2jqmuflj0w2/17mdb1260790567.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/14/t1260790772aq3k2jqmuflj0w2/25dwa1260790567.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/14/t1260790772aq3k2jqmuflj0w2/25dwa1260790567.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/14/t1260790772aq3k2jqmuflj0w2/3rdxc1260790567.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/14/t1260790772aq3k2jqmuflj0w2/3rdxc1260790567.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/14/t1260790772aq3k2jqmuflj0w2/4te7n1260790567.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/14/t1260790772aq3k2jqmuflj0w2/4te7n1260790567.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/14/t1260790772aq3k2jqmuflj0w2/54p6k1260790567.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/14/t1260790772aq3k2jqmuflj0w2/54p6k1260790567.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/14/t1260790772aq3k2jqmuflj0w2/6psg41260790567.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/14/t1260790772aq3k2jqmuflj0w2/6psg41260790567.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/14/t1260790772aq3k2jqmuflj0w2/7a1p41260790567.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/14/t1260790772aq3k2jqmuflj0w2/7a1p41260790567.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/14/t1260790772aq3k2jqmuflj0w2/8ryey1260790567.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/14/t1260790772aq3k2jqmuflj0w2/8ryey1260790567.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/14/t1260790772aq3k2jqmuflj0w2/99ct31260790567.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/14/t1260790772aq3k2jqmuflj0w2/99ct31260790567.ps (open in new window)


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