Home » date » 2009 » Dec » 30 »

multiple regression: olieprijs en dowjones

*Unverified author*
R Software Module: /rwasp_multipleregression.wasp (opens new window with default values)
Title produced by software: Multiple Regression
Date of computation: Wed, 30 Dec 2009 11:30:16 -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/30/t1262197891md360pp6g214b1w.htm/, Retrieved Wed, 30 Dec 2009 19:31: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/2009/Dec/30/t1262197891md360pp6g214b1w.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 «
32,68 10967,87 31,54 10433,56 32,43 10665,78 26,54 10666,71 25,85 10682,74 27,6 10777,22 25,71 10052,6 25,38 10213,97 28,57 10546,82 27,64 10767,2 25,36 10444,5 25,9 10314,68 26,29 9042,56 21,74 9220,75 19,2 9721,84 19,32 9978,53 19,82 9923,81 20,36 9892,56 24,31 10500,98 25,97 10179,35 25,61 10080,48 24,67 9492,44 25,59 8616,49 26,09 8685,4 28,37 8160,67 27,34 8048,1 24,46 8641,21 27,46 8526,63 30,23 8474,21 32,33 7916,13 29,87 7977,64 24,87 8334,59 25,48 8623,36 27,28 9098,03 28,24 9154,34 29,58 9284,73 26,95 9492,49 29,08 9682,35 28,76 9762,12 29,59 10124,63 30,7 10540,05 30,52 10601,61 32,67 10323,73 33,19 10418,4 37,13 10092,96 35,54 10364,91 37,75 10152,09 41,84 10032,8 42,94 10204,59 49,14 10001,6 44,61 10411,75 40,22 10673,38 44,23 10539,51 45,85 10723,78 53,38 10682,06 53,26 10283,19 51,8 10377,18 55,3 10486,64 57,81 10545,38 63,96 10554,27 63,77 10532,54 59,15 10324,31 56,12 10695,25 57,42 10827,81 63,52 10872,48 61,71 10971,19 63,01 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 time7 seconds
R Server'Gwilym Jenkins' @ 72.249.127.135


Multiple Linear Regression - Estimated Regression Equation
olieprijs[t] = -55.9227838874668 + 0.0102687293582253dowjones[t] + e[t]


Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STAT
H0: parameter = 0
2-tail p-value1-tail p-value
(Intercept)-55.922783887466814.489554-3.85950.0001939.6e-05
dowjones0.01026872935822530.0013737.478500


Multiple Linear Regression - Regression Statistics
Multiple R0.582326771814317
R-squared0.339104469171683
Adjusted R-squared0.333041207420965
F-TEST (value)55.9277305043773
F-TEST (DF numerator)1
F-TEST (DF denominator)109
p-value2.02758920764268e-11
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation21.5100723324371
Sum Squared Residuals50432.4700803879


Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolation
Forecast
Residuals
Prediction Error
132.6856.7033047787316-24.0233047787317
231.5451.2166199953384-19.6766199953384
332.4353.6012243269055-21.1712243269055
426.5453.6107742452087-27.0707742452087
525.8553.775381976821-27.9253819768210
627.654.7455715265862-27.1455715265862
725.7147.3046448590289-21.5946448590289
825.3848.9617097155657-23.5817097155657
928.5752.3796562824510-23.8096562824510
1027.6454.6426788584168-27.0026788584168
1125.3651.3289598945174-25.9689598945174
1225.949.9958734492326-24.0958734492326
1326.2936.932817458047-10.6428174580470
1421.7438.7626023423892-17.0226023423892
1519.243.9081599365023-24.7081599365023
1619.3246.5440400754652-27.2240400754652
1719.8245.9821352049831-26.1621352049831
1820.3645.6612374125386-25.3012374125386
1924.3151.90893772867-27.59893772867
2025.9748.606206305184-22.636206305184
2125.6147.5909370335362-21.9809370335363
2224.6741.5525134217255-16.8825134217254
2325.5932.557619940388-6.96761994038798
2426.0933.2652380804633-7.17523808046329
2528.3727.87692772432170.493072275678275
2627.3426.72097686046630.619023139533698
2724.4632.8114629301233-8.3514629301233
2827.4631.6348719202579-4.17487192025785
2930.2331.0965851272997-0.866585127299676
3032.3325.36581264706136.9641873529387
3129.8725.99744218988573.87255781011425
3224.8729.6628651343043-4.79286513430427
3325.4832.628166111079-7.148166111079
3427.2837.5024238755478-10.2224238755478
3528.2438.0806560257095-9.84065602570947
3629.5839.4195956467285-9.83959564672846
3726.9541.5530268581934-14.6030268581934
3829.0843.502647814146-14.4226478141460
3928.7644.3217843550517-15.5617843550517
4029.5948.0443014347019-18.4543014347019
4130.752.3101369846959-21.6101369846959
4230.5252.9422799639882-22.4222799639882
4332.6750.0888054499246-17.4188054499246
4433.1951.0609460582677-17.8709460582678
4537.1347.7190907759269-10.5890907759269
4635.5450.5116717248963-14.9716717248963
4737.7548.3262807428788-10.5762807428788
4841.8447.1013240177361-5.26132401773606
4942.9448.8653890341856-5.9253890341856
5049.1446.78093966175942.35906033824055
5144.6150.9926590080356-6.38265900803556
5240.2253.679266670028-13.4592666700280
5344.2352.3045918708424-8.07459187084243
5445.8554.1968106296826-8.3468106296826
5553.3853.7683992408574-0.388399240857432
5653.2649.67251116174213.58748883825788
5751.850.63766903412171.16233096587829
5855.351.7616841496733.53831585032695
5957.8152.36486931217525.44513068782481
6063.9652.456158316169811.5038416838302
6163.7752.233018827215611.5369811727844
6259.1550.09476131295239.05523868704767
6356.1253.90384378109242.21615621890757
6457.4255.26506654481882.15493345518123
6563.5255.72377068525077.7962293147493
6661.7156.73739696020114.97260303979887
6763.0158.52887948403714.48112051596289
6868.1859.44310445879998.7368955412001
6972.0360.461762411135911.5682375888641
7069.7557.012393532414412.7376064675856
7174.4157.412052479036516.9979475209635
7274.3359.675896553350914.6541034466491
7364.2462.5125303512671.72746964873295
7460.0366.9232576725056-6.89325767250557
7559.4469.2032236519123-9.76322365191232
7662.571.17964599149-8.67964599148996
7755.0472.5686970117771-17.5286970117771
7858.3473.786465626369-15.4464656263690
7961.9270.0594303058012-8.13943030580115
8067.6575.0528053308254-7.40280533082536
8167.6881.7577721652786-14.0777721652786
8270.382.5018442945756-12.2018442945756
8375.2684.4844278717682-9.22442787176816
8471.4480.0322148839224-8.5922148839224
8576.3683.297465445251-6.93746544525089
8681.7186.8256981654435-5.11569816544353
8792.679.63039950413512.9696004958649
8890.681.74976255637928.85023744362083
8992.2372.827777053485119.4022229465149
9094.0971.610419188067522.4795808119325
91102.7969.292869659209633.4971303407904
92109.6574.044724169728435.6052758302716
93124.0575.645105640207848.4048943597922
94132.6967.883897303967564.8061026960325
95135.8160.343672023516375.4663279764837
96116.0762.483367159889753.5866328401103
97101.4258.204695698197943.2153043018021
9875.7338.361916522831337.3680834771687
9955.4832.53769860543322.942301394567
10043.832.342695434920311.4573045650797
10145.2930.295521550064514.9944784499355
10244.0123.048879241964920.9611207580351
10347.4818.376299322091729.1037006779083
10451.0726.146133390992824.9238666090072
10557.8430.317804692771927.5221953072281
10669.0432.316407487763336.7235925122367
10765.6133.207219759589332.4027802404107
10872.8740.342754416032932.5272455839671
10968.4143.016115417153325.3938845828467
11073.2545.299572764541927.9504272354581
11177.4349.216990327411228.2130096725888


Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
50.00764736331781980.01529472663563960.99235263668218
60.001396772090417840.002793544180835680.998603227909582
70.0002181032986050270.0004362065972100530.999781896701395
83.32870984615191e-056.65741969230383e-050.999966712901538
94.32657197371528e-068.65314394743056e-060.999995673428026
106.92490248508037e-071.38498049701607e-060.999999307509752
111.26088191084538e-072.52176382169077e-070.99999987391181
121.64548617706270e-083.29097235412541e-080.999999983545138
134.550569371878e-099.101138743756e-090.99999999544943
149.37401733802968e-101.87480346760594e-090.999999999062598
151.12902616565253e-092.25805233130505e-090.999999998870974
161.15807862414103e-092.31615724828206e-090.999999998841921
175.76541196062174e-101.15308239212435e-090.999999999423459
181.95853873718305e-103.91707747436610e-100.999999999804146
195.1722977849872e-111.03445955699744e-100.999999999948277
209.98217808795113e-121.99643561759023e-110.999999999990018
211.92118740985458e-123.84237481970915e-120.999999999998079
224.55409013107618e-139.10818026215236e-130.999999999999545
233.61328381794412e-137.22656763588824e-130.999999999999639
241.43009747196045e-132.8601949439209e-130.999999999999857
251.14679009239687e-132.29358018479374e-130.999999999999885
263.44480927679641e-146.88961855359282e-140.999999999999966
276.36734941660004e-151.27346988332001e-140.999999999999994
281.53534694571255e-153.07069389142509e-150.999999999999998
297.46472522238545e-161.49294504447709e-151
306.25466533341625e-161.25093306668325e-151
311.62785444003324e-163.25570888006649e-161
323.40522949395136e-176.81045898790272e-171
336.78905287725539e-181.35781057545108e-171
341.41447291898268e-182.82894583796535e-181
353.26386693957087e-196.52773387914173e-191
369.85942924229823e-201.97188584845965e-191
372.28736224777857e-204.57472449555714e-201
387.11322538701448e-211.42264507740290e-201
392.19129109195900e-214.38258218391801e-211
409.10430135843322e-221.82086027168664e-211
415.9031628504441e-221.18063257008882e-211
423.72804978087277e-227.45609956174554e-221
434.44116319768361e-228.88232639536722e-221
446.19926696783512e-221.23985339356702e-211
455.07095772714657e-211.01419154542931e-201
461.28548559514558e-202.57097119029116e-201
477.096191835121e-201.4192383670242e-191
482.06176048572089e-184.12352097144179e-181
494.14401562304348e-178.28803124608696e-171
506.78394683087695e-151.35678936617539e-140.999999999999993
514.48667893932478e-148.97335787864956e-140.999999999999955
528.38379644382117e-141.67675928876423e-130.999999999999916
533.07761764994792e-136.15523529989584e-130.999999999999692
541.21855543953909e-122.43711087907819e-120.999999999998781
552.12614648342259e-114.25229296684519e-110.999999999978739
562.20552249924672e-104.41104499849344e-100.999999999779448
579.90749169876725e-101.98149833975345e-090.99999999900925
585.57508166833243e-091.11501633366649e-080.999999994424918
593.06670519974533e-086.13341039949066e-080.999999969332948
602.90637534814009e-075.81275069628017e-070.999999709362465
611.47339520884296e-062.94679041768592e-060.999998526604791
623.45383644486776e-066.90767288973552e-060.999996546163555
634.83369788890461e-069.66739577780923e-060.999995166302111
646.49759962382277e-061.29951992476455e-050.999993502400376
651.14785785513790e-052.29571571027580e-050.999988521421449
661.52170140278202e-053.04340280556403e-050.999984782985972
671.84803065523026e-053.69606131046052e-050.999981519693448
682.58928908964950e-055.17857817929899e-050.999974107109104
693.82430394317363e-057.64860788634726e-050.999961756960568
705.19461668422504e-050.0001038923336845010.999948053833158
718.2816094917897e-050.0001656321898357940.999917183905082
720.0001002919236310350.0002005838472620710.999899708076369
737.70807049668336e-050.0001541614099336670.999922919295033
746.33865769926826e-050.0001267731539853650.999936613423007
755.78810847324065e-050.0001157621694648130.999942118915268
765.08308886367328e-050.0001016617772734660.999949169111363
778.07681623927217e-050.0001615363247854430.999919231837607
780.0001186229571905250.0002372459143810510.99988137704281
790.0001332512203056630.0002665024406113250.999866748779694
800.000143226793434190.000286453586868380.999856773206566
810.0002368500665136890.0004737001330273770.999763149933486
820.0004210113652665780.0008420227305331560.999578988634733
830.0007653327987120770.001530665597424150.999234667201288
840.00192866465751560.00385732931503120.998071335342484
850.006242623063774810.01248524612754960.993757376936225
860.03081534224265650.06163068448531290.969184657757344
870.06217538139763190.1243507627952640.937824618602368
880.2037667788583620.4075335577167240.796233221141638
890.3745619907933690.7491239815867390.62543800920663
900.6054309423045340.7891381153909320.394569057695466
910.7327073237707960.5345853524584090.267292676229205
920.8737926298520520.2524147402958970.126207370147948
930.9331144729599050.1337710540801890.0668855270400947
940.9624925066999940.07501498660001120.0375074933000056
950.9992447254902630.001510549019474500.000755274509737249
960.9996192186303530.0007615627392948440.000380781369647422
970.9995934998382180.0008130003235640210.000406500161782011
980.9996374678243190.0007250643513628890.000362532175681444
990.999131158781410.001737682437182690.000868841218591343
1000.9997115405721450.0005769188557103720.000288459427855186
1010.9999160425093630.0001679149812733658.39574906366826e-05
1020.999912622669190.0001747546616217468.7377330810873e-05
1030.9995983468385130.0008033063229739190.000401653161486959
1040.9994285507781220.001142898443755230.000571449221877614
1050.9993752559991460.001249488001708490.000624744000854243
1060.9971193694334650.005761261133070570.00288063056653528


Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level910.892156862745098NOK
5% type I error level930.911764705882353NOK
10% type I error level950.931372549019608NOK
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2009/Dec/30/t1262197891md360pp6g214b1w/10iunh1262197807.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/30/t1262197891md360pp6g214b1w/10iunh1262197807.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/30/t1262197891md360pp6g214b1w/19wz71262197807.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/30/t1262197891md360pp6g214b1w/19wz71262197807.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/30/t1262197891md360pp6g214b1w/2c0zm1262197807.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/30/t1262197891md360pp6g214b1w/2c0zm1262197807.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/30/t1262197891md360pp6g214b1w/36ibh1262197807.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/30/t1262197891md360pp6g214b1w/36ibh1262197807.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/30/t1262197891md360pp6g214b1w/4fe4q1262197807.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/30/t1262197891md360pp6g214b1w/4fe4q1262197807.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/30/t1262197891md360pp6g214b1w/5xvck1262197807.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/30/t1262197891md360pp6g214b1w/5xvck1262197807.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/30/t1262197891md360pp6g214b1w/6ot421262197807.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/30/t1262197891md360pp6g214b1w/6ot421262197807.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/30/t1262197891md360pp6g214b1w/7ts091262197807.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/30/t1262197891md360pp6g214b1w/7ts091262197807.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/30/t1262197891md360pp6g214b1w/8fncw1262197807.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/30/t1262197891md360pp6g214b1w/8fncw1262197807.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/30/t1262197891md360pp6g214b1w/9m1031262197807.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/30/t1262197891md360pp6g214b1w/9m1031262197807.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