Home » date » 2010 » Dec » 12 »

Paper - Multiple Regression Model 2

*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: Sun, 12 Dec 2010 19:44:36 +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/12/t1292182953gqah36lcjh2trhr.htm/, Retrieved Sun, 12 Dec 2010 20:42:43 +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/12/t1292182953gqah36lcjh2trhr.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 «
25.94 23688100 39.18 3940.35 0.0274 144.7 28.66 13741000 35.78 4696.69 0.0322 140.8 33.95 14143500 42.54 4572.83 0.0376 137.1 31.01 16763800 27.92 3860.66 0.0307 137.7 21.00 16634600 25.05 3400.91 0.0319 144.7 26.19 13693300 32.03 3966.11 0.0373 139.2 25.41 10545800 27.95 3766.99 0.0366 143.0 30.47 9409900 27.95 4206.35 0.0341 140.8 12.88 39182200 24.15 3672.82 0.0345 142.5 9.78 37005800 27.57 3369.63 0.0345 135.8 8.25 15818500 22.97 2597.93 0.0345 132.6 7.44 16952000 17.37 2470.52 0.0339 128.6 10.81 24563400 24.45 2772.73 0.0373 115.7 9.12 14163200 23.62 2151.83 0.0353 109.2 11.03 18184800 21.90 1840.26 0.0292 116.9 12.74 20810300 27.12 2116.24 0.0327 109.9 9.98 12843000 27.70 2110.49 0.0362 116.1 11.62 13866700 29.23 2160.54 0.0325 118.9 9.40 15119200 26.50 2027.13 0.0272 116.3 9.27 8301600 22.84 1805.43 0.0272 114.0 7.76 14039600 20.49 1498.80 0.0265 97.0 8.78 12139700 23.28 1690.20 0.0213 85.3 10.65 9649000 25.71 1930.58 0.019 84.9 10.95 8513600 26.52 1950.40 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 time8 seconds
R Server'Gwilym Jenkins' @ 72.249.127.135


Multiple Linear Regression - Estimated Regression Equation
Apple[t] = + 9.48893045838803 + 1.39428397483603e-06Volume[t] + 6.78801022485275Microsoft[t] + 0.0317791423789989NASDAQ[t] -554.897363696999Inflatie[t] -2.09444585750021Consumentenvertrouwen[t] + e[t]


Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STAT
H0: parameter = 0
2-tail p-value1-tail p-value
(Intercept)9.4889304583880324.5358850.38670.6996140.349807
Volume1.39428397483603e-0604.14516.2e-053.1e-05
Microsoft6.788010224852751.3867984.89473e-061e-06
NASDAQ0.03177914237899890.01023.11550.0022820.001141
Inflatie-554.897363696999313.826586-1.76820.0794920.039746
Consumentenvertrouwen-2.094445857500210.172289-12.156600


Multiple Linear Regression - Regression Statistics
Multiple R0.849984571934886
R-squared0.72247377252733
Adjusted R-squared0.711283198838917
F-TEST (value)64.5609235633136
F-TEST (DF numerator)5
F-TEST (DF denominator)124
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation41.1810422653399
Sum Squared Residuals210288.902015404


Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolation
Forecast
Residuals
Prediction Error
125.94115.421549619941-89.4815496199414
228.66108.013900774789-79.353900774789
333.95155.278888528389-121.328888528389
431.0139.6315938072626-8.6215938072626
521-9.967595575296530.9675955752965
626.1959.796286063888-33.6062860638880
725.4113.814366601273411.5956333987266
830.4732.1881077256371-1.71810772563706
912.8827.1670669185108-14.2870669185108
109.7851.7452113120368-41.9652113120368
118.25-26.84248601220235.092486012202
127.44-58.6131810681966.05318106819
1310.8134.7940595133745-23.9840595133745
149.129.65120212968203-0.53120212968203
1511.03-19.060709599088730.0907095990887
1612.7441.5227842938927-28.7827842938927
179.9819.2407163534762-9.26071635347617
1811.6228.8329184232877-17.2129184232877
199.416.1948510602343-6.79485106023428
209.27-20.383147182742529.6531471827425
217.76-2.085000459118369.84500045911836
228.7847.6775586197471-38.8975586197471
2310.6570.4527928945821-59.8027928945821
2410.9556.6238897088233-45.6738897088233
2512.3654.2529583579005-41.8929583579005
2610.8539.5220721633665-28.6720721633665
2711.845.507525798212386.33247420178762
2812.14-16.029512189650428.1695121896504
2911.65-24.036199752848635.6861997528486
308.86-1.5780618846180310.4380618846180
317.63-10.924133298291818.5541332982918
327.38-11.156668440097218.5366684400972
337.25-25.267176531376632.5171765313766
348.0334.0506299829973-26.0206299829974
357.7534.8322917498734-27.0822917498734
367.1621.432454313487-14.2724543134870
377.1816.1139774831567-8.9339774831567
387.5140.2759691315231-32.7659691315231
397.0748.9409301486713-41.8709301486713
407.1133.0038018799066-25.8938018799066
418.9834.4222232231503-25.4422232231503
429.5329.3214219829883-19.7914219829883
4310.5448.1130305213185-37.5730305213185
4411.3139.3442745757809-28.0342745757809
4510.3657.0634917905285-46.7034917905285
4611.4447.5341067214022-36.0941067214022
4710.4522.4490182285533-11.9990182285533
4810.6933.4837552487065-22.7937552487065
4911.2834.3792826394293-23.0992826394293
5011.9638.8542628992827-26.8942628992827
5113.5240.5773058701212-27.0573058701212
5212.8928.5955660845458-15.7055660845458
5314.0318.1157925985439-4.08579259854394
5416.2718.1043740752621-1.83437407526207
5516.1711.25434589099314.91565410900689
5617.2515.61191856587751.63808143412255
5719.3824.3963342241151-5.01633422411511
5826.253.8780333463027-27.6780333463027
5933.5370.7754972939705-37.2454972939705
6032.245.9573349515712-13.7573349515712
6138.4567.6970548701849-29.2470548701849
6244.8651.9489299105486-7.08892991054859
6341.6723.063094439097918.6069055609021
6436.0649.9894447454484-13.9294447454484
6539.7634.30000779746385.45999220253624
6636.8118.179202263350018.6307977366500
6742.6528.835083953955513.8149160460445
6846.8927.304521891765019.5854781082350
6953.6158.2979121076116-4.68791210761155
7057.5979.6994817670672-22.1094817670672
7167.8260.41995511668127.40004488331881
7271.8937.882956477256434.0070435227436
7375.5168.34127215069147.16872784930861
7468.4966.65943988909781.83056011090215
7562.7261.3835477438931.33645225610697
7670.3938.704812392896231.6851876071038
7759.7716.063215782528543.7067842174715
7857.2721.037291449857936.2327085501421
7967.9624.918340579151443.0416594208486
8067.8549.012933101427718.8370668985723
8176.9864.69360591262412.2863940873761
8281.0871.09281807998869.98718192001143
8391.6674.93129433732716.7287056626730
8484.8474.455966352037910.3840336479621
8585.73109.523713720736-23.7937137207361
8684.6156.228720167538428.3812798324616
8792.9157.804723943582435.1052760564176
8899.876.994494473162922.8055055268371
89121.1986.8013902751934.3886097248099
90122.04101.38279644858620.6572035514143
91131.7687.759215075837644.0007849241624
92138.4897.199874360911941.2801256390881
93153.47115.44031730043138.0296826995687
94189.95167.56505342456222.3849465754383
95182.22165.51797527952416.7020247204762
96198.08152.80468308068145.2753169193188
97135.36172.166195450764-36.8061954507642
98125.02138.513865608969-13.4938656089694
99143.5162.587267847151-19.0872678471510
100173.95170.6404271546883.30957284531218
101188.75174.23811321478614.5118867852137
102167.44173.567204202150-6.12720420215048
103158.95155.1183530119573.83164698804278
104169.53140.93488613544328.5951138645565
105113.66153.094860224333-39.4348602243327
106107.59199.995764596504-92.405764596504
10792.67152.341108692389-59.6711086923891
10885.35151.71349712705-66.36349712705
10990.13205.675408912230-115.545408912230
11089.31142.771979287184-53.461979287184
111105.12160.182359654946-55.0623596549463
112125.83144.431935171467-18.6019351714672
113135.81120.41062635366915.3993736463312
114142.43158.620706079367-16.1907060793667
115163.39165.297872356403-1.90787235640308
116168.21150.68366129679817.5263387032024
117185.35167.46214860551617.8878513944836
118188.5187.9774893349380.522510665062
119199.91179.12444574784920.7855542521511
120210.73183.52223327818327.2077667218173
121192.06175.23761401208616.8223859879140
122204.62192.69083967612311.9291603238774
123235186.28126977403148.7187302259689
124261.09189.0833029921872.0066970078198
125256.88158.87066670445798.0093332955427
126251.53150.699938209945100.830061790055
127257.25178.84523005529278.4047699447084
128243.1139.856009838188103.243990161812
129283.75171.534742204531112.215257795469
130300.98188.034982428891112.945017571109


Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
90.0002603374608917070.0005206749217834150.999739662539108
100.0002953718342829520.0005907436685659050.999704628165717
119.96925170550665e-050.0001993850341101330.999900307482945
121.13301665874082e-052.26603331748163e-050.999988669833413
131.90658842469306e-063.81317684938611e-060.999998093411575
142.05290680238428e-074.10581360476855e-070.99999979470932
154.12834609557374e-088.25669219114749e-080.99999995871654
166.33910195892225e-091.26782039178445e-080.999999993660898
176.57883000650159e-101.31576600130032e-090.999999999342117
186.99077558624668e-111.39815511724934e-100.999999999930092
191.29073426561961e-112.58146853123923e-110.999999999987093
201.82051247020740e-123.64102494041480e-120.99999999999818
211.86966571416954e-133.73933142833908e-130.999999999999813
223.08152286769874e-146.16304573539749e-140.99999999999997
236.95111659005425e-151.39022331801085e-140.999999999999993
241.42021528576288e-152.84043057152576e-150.999999999999999
251.89461252507148e-163.78922505014296e-161
262.09732528681803e-174.19465057363607e-171
271.96234212289604e-183.92468424579208e-181
282.60405601462145e-195.20811202924289e-191
293.00405772767875e-206.0081154553575e-201
303.22084662707235e-216.4416932541447e-211
314.90261142029008e-229.80522284058015e-221
327.09276014148806e-231.41855202829761e-221
332.93055930515611e-235.86111861031221e-231
343.59411560943121e-247.18823121886242e-241
353.52539528928225e-257.0507905785645e-251
364.53985402566677e-269.07970805133354e-261
371.12435667121651e-262.24871334243301e-261
381.48387739473242e-272.96775478946485e-271
391.48382692923179e-282.96765385846358e-281
401.92503728086135e-293.8500745617227e-291
413.62683406085936e-307.25366812171872e-301
423.57570131425682e-317.15140262851364e-311
433.21430274875752e-326.42860549751505e-321
442.93767887537945e-335.8753577507589e-331
453.05227347793155e-346.10454695586311e-341
464.49752921999721e-358.99505843999442e-351
478.31419652409245e-361.66283930481849e-351
482.29480139386652e-364.58960278773303e-361
493.80658011866872e-377.61316023733743e-371
501.30005671320884e-372.60011342641768e-371
519.6952513444523e-381.93905026889046e-371
522.73284598427192e-385.46569196854383e-381
538.65844524469478e-391.73168904893896e-381
542.7301622255363e-385.4603244510726e-381
551.91817538737984e-373.83635077475967e-371
566.89457383820388e-371.37891476764078e-361
575.55553390633631e-361.11110678126726e-351
582.90102755705065e-315.8020551141013e-311
592.37094512698381e-274.74189025396762e-271
601.26250527307228e-252.52501054614456e-251
611.76743811940447e-243.53487623880894e-241
621.04788383271692e-222.09576766543384e-221
639.41969779294884e-211.88393955858977e-201
649.10017335938205e-211.82003467187641e-201
658.62334657470385e-201.72466931494077e-191
665.40342528175047e-191.08068505635009e-181
677.35824602605841e-181.47164920521168e-171
681.74494188390613e-163.48988376781227e-161
691.04147917353816e-152.08295834707632e-150.999999999999999
701.83195578928673e-153.66391157857345e-150.999999999999998
711.72914445992471e-133.45828891984943e-130.999999999999827
721.60391292798948e-113.20782585597895e-110.99999999998396
734.49839090787498e-118.99678181574996e-110.999999999955016
746.31578855418951e-111.26315771083790e-100.999999999936842
756.15436871011405e-111.23087374202281e-100.999999999938456
768.99825161643034e-111.79965032328607e-100.999999999910018
778.81011538748269e-111.76202307749654e-100.999999999911899
785.93741714511972e-111.18748342902394e-100.999999999940626
793.65101516517629e-107.30203033035258e-100.999999999634898
805.90933388720419e-101.18186677744084e-090.999999999409067
815.35931592884111e-091.07186318576822e-080.999999994640684
821.62056191597256e-073.24112383194512e-070.999999837943808
832.22099651926736e-064.44199303853473e-060.99999777900348
843.43763357994366e-066.87526715988732e-060.99999656236642
852.22366122486276e-064.44732244972551e-060.999997776338775
864.83213644982896e-069.66427289965792e-060.99999516786355
871.40417153606695e-052.80834307213390e-050.99998595828464
886.39372264870552e-050.0001278744529741100.999936062773513
890.0003177023362521450.000635404672504290.999682297663748
900.0005283349568764840.001056669913752970.999471665043123
910.0007341624596260290.001468324919252060.999265837540374
920.001471875495990810.002943750991981630.99852812450401
930.005272987842915210.01054597568583040.994727012157085
940.03072055673970770.06144111347941530.969279443260292
950.0383964037129290.0767928074258580.961603596287071
960.07369753221193080.1473950644238620.926302467788069
970.07449243062425670.1489848612485130.925507569375743
980.07619829785565420.1523965957113080.923801702144346
990.08138216090517110.1627643218103420.918617839094829
1000.1212521377624700.2425042755249390.87874786223753
1010.2924199218055650.584839843611130.707580078194435
1020.2904673250213260.5809346500426520.709532674978674
1030.4192182559683040.8384365119366090.580781744031696
1040.759481425885840.4810371482283210.240518574114160
1050.9964391961564860.007121607687027120.00356080384351356
1060.998058697926640.003882604146721120.00194130207336056
1070.9964781018653710.007043796269257090.00352189813462855
1080.9981878704759930.003624259048014280.00181212952400714
1090.9967133056931630.006573388613674050.00328669430683702
1100.993574401340820.01285119731836140.00642559865918071
1110.9880819528675150.02383609426497010.0119180471324851
1120.989712609883950.02057478023209780.0102873901160489
1130.9924203703629190.01515925927416220.00757962963708109
1140.9859182098572060.02816358028558870.0140817901427943
1150.9847719125936520.03045617481269490.0152280874063475
1160.981428582506810.03714283498638060.0185714174931903
1170.999461409701390.001077180597220960.00053859029861048
1180.999933019974690.0001339600506188236.69800253094114e-05
1190.999658304711340.000683390577321340.00034169528866067
1200.9999397012505380.0001205974989246326.02987494623161e-05
1210.9992140332979280.001571933404144300.000785966702072151


Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level940.831858407079646NOK
5% type I error level1020.902654867256637NOK
10% type I error level1040.920353982300885NOK
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Dec/12/t1292182953gqah36lcjh2trhr/10mp8b1292183066.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/12/t1292182953gqah36lcjh2trhr/10mp8b1292183066.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/12/t1292182953gqah36lcjh2trhr/1al4a1292183066.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/12/t1292182953gqah36lcjh2trhr/1al4a1292183066.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/12/t1292182953gqah36lcjh2trhr/2al4a1292183066.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/12/t1292182953gqah36lcjh2trhr/2al4a1292183066.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/12/t1292182953gqah36lcjh2trhr/3al4a1292183066.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/12/t1292182953gqah36lcjh2trhr/3al4a1292183066.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/12/t1292182953gqah36lcjh2trhr/43v3v1292183066.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/12/t1292182953gqah36lcjh2trhr/43v3v1292183066.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/12/t1292182953gqah36lcjh2trhr/53v3v1292183066.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/12/t1292182953gqah36lcjh2trhr/53v3v1292183066.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/12/t1292182953gqah36lcjh2trhr/6vmky1292183066.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/12/t1292182953gqah36lcjh2trhr/6vmky1292183066.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/12/t1292182953gqah36lcjh2trhr/7vmky1292183066.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/12/t1292182953gqah36lcjh2trhr/7vmky1292183066.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/12/t1292182953gqah36lcjh2trhr/8ovkj1292183066.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/12/t1292182953gqah36lcjh2trhr/8ovkj1292183066.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/12/t1292182953gqah36lcjh2trhr/9ovkj1292183066.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/12/t1292182953gqah36lcjh2trhr/9ovkj1292183066.ps (open in new window)


 
Parameters (Session):
par1 = 1 ; 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