Home » date » 2010 » Dec » 13 »

Paper - Multiple Regression Model 3

*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, 13 Dec 2010 21:45:42 +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/13/t1292277082ubyo2vb3gjmoovs.htm/, Retrieved Mon, 13 Dec 2010 22:51:22 +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/13/t1292277082ubyo2vb3gjmoovs.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 «
10.81 -0.2643 24563400 24.45 2772.73 0.0373 115.7 9.12 -0.2643 14163200 23.62 2151.83 0.0353 109.2 11.03 -0.2643 18184800 21.90 1840.26 0.0292 116.9 12.74 -0.1918 20810300 27.12 2116.24 0.0327 109.9 9.98 -0.1918 12843000 27.70 2110.49 0.0362 116.1 11.62 -0.1918 13866700 29.23 2160.54 0.0325 118.9 9.40 -0.2246 15119200 26.50 2027.13 0.0272 116.3 9.27 -0.2246 8301600 22.84 1805.43 0.0272 114.0 7.76 -0.2246 14039600 20.49 1498.80 0.0265 97.0 8.78 0.3654 12139700 23.28 1690.20 0.0213 85.3 10.65 0.3654 9649000 25.71 1930.58 0.019 84.9 10.95 0.3654 8513600 26.52 1950.40 0.0155 94.6 12.36 0.0447 15278600 25.51 1934.03 0.0114 97.8 10.85 0.0447 15590900 23.36 1731.49 0.0114 95.0 11.84 0.0447 9691100 24.15 1845.35 0.0148 110.7 12.14 -0.0312 10882700 20.92 1688.23 0.0164 108.5 11.65 -0.0312 10294800 20.38 1615.73 0.0118 110.3 8.86 -0.0312 16031900 21.90 1463.21 0.0107 106.3 7.63 -0.0048 13683600 19.21 1328.26 0.0146 97.4 7.38 -0.0048 8677200 19.65 1314.85 0.018 94.5 7.25 -0.0048 9 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 time6 seconds
R Server'Sir Ronald Aylmer Fisher' @ 193.190.124.24


Multiple Linear Regression - Estimated Regression Equation
Apple[t] = -148.389379308089 -18.2064906878529Omzetgroei[t] -7.06273178125017e-07Volume[t] + 6.83287017871577Microsoft[t] + 0.0189694137186282NASDAQ[t] + 82.274316728171Inflatie[t] -0.611219563554505Cons_vertrouwen[t] + 1.65811032276012t + e[t]


Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STAT
H0: parameter = 0
2-tail p-value1-tail p-value
(Intercept)-148.38937930808917.626702-8.418400
Omzetgroei-18.206490687852911.098972-1.64040.103810.051905
Volume-7.06273178125017e-070-2.74480.0070830.003542
Microsoft6.832870178715771.1275176.060100
NASDAQ0.01896941371862820.0144231.31520.1912040.095602
Inflatie82.274316728171218.0969230.37720.7067310.353365
Cons_vertrouwen-0.6112195635545050.17777-3.43830.000830.000415
t1.658110322760120.1752979.458900


Multiple Linear Regression - Regression Statistics
Multiple R0.953327788951627
R-squared0.908833873187398
Adjusted R-squared0.902979167795763
F-TEST (value)155.231358777832
F-TEST (DF numerator)7
F-TEST (DF denominator)109
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation23.6651650789451
Sum Squared Residuals61044.364165296


Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolation
Forecast
Residuals
Prediction Error
110.81-7.256297199728418.0662971997284
29.12-11.893817266414821.0138172664148
311.03-35.947156067917946.9771560679179
412.748.005921635199174.73407836480084
59.9815.6435116393184-5.66351163931839
611.6225.9664908898376-14.3464908898376
79.47.305838866043852.09416113395615
89.27-14.028981671355123.2989816713551
97.76-27.964162534484635.7241625344845
108.78-6.2881372754742615.0681372754743
1110.6518.348086752952-7.69808675295201
1210.9520.5019083917910-9.55190839179096
1312.3613.7159467430930-1.35594674309297
1410.85-1.6678332085325912.5178332085326
1511.842.398558026788009.441441973212
1612.14-18.977377140435431.1173771404354
1711.65-23.447738278710335.0977382787103
188.86-15.994463609071424.8544636090714
197.63-28.33808254747935.968082547479
207.38-18.339733733901825.7197337339018
217.25-34.607566413042341.8575664130423
228.033.763777016453874.26622298354613
237.7518.3074055892636-10.5574055892636
247.163.845859972894193.31414002710581
257.18-5.5079531091059112.6879531091059
267.517.55899679398065-0.0489967939806476
277.0714.7729373320438-7.70293733204384
287.117.11171336524197-0.00171336524196974
298.980.7277107626249278.25228923737507
309.5314.5055971361330-4.97559713613304
3110.5425.7610561328307-15.2210561328307
3211.3127.4719510025171-16.1619510025171
3310.3637.4505056793357-27.0905056793357
3411.4426.1257305101076-14.6857305101076
3510.4520.3567994669585-9.90679946695853
3610.6932.8196379052649-22.1296379052649
3711.2831.8784521117184-20.5984521117184
3811.9634.33606389021-22.37606389021
3913.5220.5235594591248-7.00355945912476
4012.8926.8274749188411-13.9374749188411
4114.0335.2727695470326-21.2427695470326
4216.2741.7302900552444-25.4602900552444
4316.1735.10920895656-18.93920895656
4417.2536.0721675869396-18.8221675869396
4519.3841.7793624298572-22.3993624298572
4626.232.2492387747191-6.04923877471912
4733.5345.3859719600091-11.8559719600091
4832.245.1794136375662-12.9794136375662
4938.4525.062951774589113.3870482254109
5044.8625.759329648448519.1006703515515
5141.6733.02735294832098.6426470516791
5236.0636.4939573251818-0.433957325181776
5339.7648.6278629707337-8.86786297073368
5436.8144.4741283007009-7.66412830070093
5542.6558.8100399117758-16.1600399117758
5646.8973.2396907361254-26.3496907361254
5753.6171.7884825284871-18.1784825284871
5857.5964.2220932111743-6.63209321117433
5967.8278.7661913964846-10.9461913964846
6071.8967.37883722620974.51116277379035
6175.5175.29961892841240.210381071587581
6268.4973.388425385918-4.89842538591804
6362.7275.4018417627668-12.6818417627668
6470.3956.828547524799213.5614524752008
6559.7758.85961375597580.910386244024243
6657.2761.9524316798376-4.68243167983761
6767.9662.83159105839385.12840894160618
6867.8583.9814792821416-16.1314792821416
6976.9889.8955146736437-12.9155146736437
7081.08109.265356797849-28.1853567978494
7191.66116.701207254884-25.0412072548836
7284.84113.857358290331-29.0173582903314
7385.73109.96614092045-24.2361409204501
7484.61109.945971681826-25.3359716818258
7592.91112.423071766595-19.5130717665951
7699.8130.308730431090-30.5087304310903
77121.19133.981578404424-12.7915784044243
78122.04121.8498478561930.190152143807104
79131.76111.72152524161920.0384747583807
80138.48120.12324555787718.3567544421227
81153.47131.94543472176421.5245652782355
82189.95187.2382580550672.71174194493265
83182.22164.04071094561618.1792890543843
84198.08186.91965898785411.1603410121462
85135.36143.895211762662-8.53521176266158
86125.02127.024258859856-2.00425885985605
87143.5145.916186263863-2.41618626386301
88173.95158.35627393613815.5937260638620
89188.75169.17090362326119.579096376739
90167.44164.9064159593162.53358404068357
91158.95149.0279972976989.9220027023024
92169.53164.992206413484.53779358651992
93113.66140.975753105341-27.3157531053406
94107.59114.694156140423-7.10415614042256
9592.67109.629811992367-16.9598119923670
9685.35117.941860679225-32.5918606792251
9790.13123.718469444614-33.5884694446144
9889.31109.429071953966-20.1190719539662
99105.12128.092141566345-22.9721415663454
100125.83137.798060082972-11.9680600829715
101135.81138.888140749212-3.07814074921232
102142.43161.471995142760-19.0419951427598
103163.39170.969958455698-7.57995845569844
104168.21180.631328480647-12.4213284806473
105185.35189.909342094546-4.55934209454583
106188.5199.505779171235-11.0057791712348
107199.91220.124438930834-20.2144389308344
108210.73227.941368013672-17.2113680136724
109192.06198.723587232262-6.66358723226227
110204.62218.857212908644-14.2372129086436
111235225.4241002219579.57589977804272
112261.09229.31297587268731.7770241273128
113256.88184.45834880466672.4216511953337
114251.53172.69812167003678.8318783299642
115257.25197.81622882670959.4337711732909
116243.1188.29736514100554.802634858995
117283.75200.92223537549882.8277646245024


Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
110.000276637721498650.00055327544299730.999723362278501
121.32118051307657e-052.64236102615314e-050.99998678819487
136.18289109599182e-071.23657821919836e-060.99999938171089
142.52697611101983e-085.05395222203965e-080.999999974730239
152.6251729500623e-095.2503459001246e-090.999999997374827
163.52460288704445e-107.0492057740889e-100.99999999964754
171.90491888485379e-113.80983776970757e-110.99999999998095
181.64813992186741e-113.29627984373482e-110.999999999983519
191.57505323327943e-123.15010646655887e-120.999999999998425
201.13852461647358e-132.27704923294715e-130.999999999999886
211.22924062596919e-142.45848125193839e-140.999999999999988
221.62993357055266e-153.25986714110532e-150.999999999999998
239.85205552349457e-171.97041110469891e-161
248.05964884453106e-181.61192976890621e-171
251.19283679518757e-182.38567359037513e-181
263.06554929894649e-196.13109859789298e-191
273.65319242510013e-207.30638485020025e-201
287.62891516151893e-211.52578303230379e-201
291.98339526256837e-213.96679052513675e-211
305.45257125979081e-221.09051425195816e-211
319.9354383843536e-231.98708767687072e-221
321.8116375054732e-233.6232750109464e-231
332.36978147368195e-244.73956294736389e-241
341.95322666949368e-253.90645333898737e-251
352.72452494956219e-265.44904989912438e-261
362.5519700159105e-275.103940031821e-271
371.87001595046553e-283.74003190093107e-281
381.26037464609738e-292.52074929219477e-291
397.98055063650383e-301.59611012730077e-291
403.58711932288147e-307.17423864576294e-301
415.95626010672955e-301.19125202134591e-291
429.45641009499621e-301.89128201899924e-291
434.52361170611115e-309.0472234122223e-301
442.12069982473014e-294.24139964946027e-291
451.00046488107864e-272.00092976215728e-271
461.68171575568682e-263.36343151137364e-261
473.26126345211134e-246.52252690422269e-241
485.59635689932798e-241.11927137986560e-231
491.42366175256992e-242.84732350513985e-241
509.20740537612325e-221.84148107522465e-211
511.66390484630100e-183.32780969260199e-181
527.71090430554323e-191.54218086110865e-181
538.6140817871572e-181.72281635743144e-171
541.13945183337122e-172.27890366674244e-171
551.58869958305464e-153.17739916610927e-150.999999999999998
568.12692986791242e-141.62538597358248e-130.999999999999919
571.09244669772710e-112.18489339545421e-110.999999999989076
581.75361428704093e-103.50722857408187e-100.999999999824639
596.80901079946795e-081.36180215989359e-070.999999931909892
608.14828592415321e-061.62965718483064e-050.999991851714076
614.95780565604758e-059.91561131209516e-050.99995042194344
628.15463841357651e-050.0001630927682715300.999918453615864
635.13341323143491e-050.0001026682646286980.999948665867686
645.16580006943076e-050.0001033160013886150.999948341999306
653.92578576286452e-057.85157152572905e-050.999960742142371
662.67171750013394e-055.34343500026788e-050.999973282824999
670.0001335743978312280.0002671487956624570.999866425602169
680.0002598860321464900.0005197720642929790.999740113967854
690.0005885936317428430.001177187263485690.999411406368257
700.0007025688299282570.001405137659856510.999297431170072
710.001097867776046970.002195735552093940.998902132223953
720.0007722078907737290.001544415781547460.999227792109226
730.0008703011312242640.001740602262448530.999129698868776
740.0005489022966403920.001097804593280780.99945109770336
750.0004924665717497270.0009849331434994540.99950753342825
760.0005929317651240560.001185863530248110.999407068234876
770.002150174859554350.004300349719108700.997849825140446
780.006660317086536250.01332063417307250.993339682913464
790.01876642623823140.03753285247646290.981233573761769
800.067863163929250.13572632785850.93213683607075
810.3694165242295250.738833048459050.630583475770475
820.5920643471755810.8158713056488380.407935652824419
830.6691349326809590.6617301346380830.330865067319041
840.9732413528697060.0535172942605870.0267586471302935
850.9695297827128650.0609404345742690.0304702172871345
860.9661251005623920.06774979887521690.0338748994376084
870.9590627385160280.0818745229679450.0409372614839725
880.9679139545664710.0641720908670570.0320860454335285
890.9725229405520050.05495411889599020.0274770594479951
900.9869053803801950.02618923923960930.0130946196198046
910.9821822369301250.03563552613975080.0178177630698754
920.9977106902311050.004578619537789680.00228930976889484
930.9965454401351870.006909119729626140.00345455986481307
940.9957312143240040.00853757135199260.0042687856759963
950.9942662677024110.01146746459517720.00573373229758859
960.9917216455292330.01655670894153440.00827835447076718
970.9844403515834520.03111929683309540.0155596484165477
980.9736776810591970.05264463788160680.0263223189408034
990.963868224563610.07226355087278030.0361317754363901
1000.9583274343811910.08334513123761720.0416725656188086
1010.9341197331115940.1317605337768110.0658802668884056
1020.8849632019768720.2300735960462560.115036798023128
1030.8247106892108060.3505786215783870.175289310789194
1040.729268926311730.5414621473765410.270731073688271
1050.872123752234410.2557524955311810.127876247765591
1060.9712314558592640.05753708828147130.0287685441407356


Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level700.729166666666667NOK
5% type I error level770.802083333333333NOK
10% type I error level870.90625NOK
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Dec/13/t1292277082ubyo2vb3gjmoovs/10wubd1292276732.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/13/t1292277082ubyo2vb3gjmoovs/10wubd1292276732.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/13/t1292277082ubyo2vb3gjmoovs/1pbej1292276732.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/13/t1292277082ubyo2vb3gjmoovs/1pbej1292276732.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/13/t1292277082ubyo2vb3gjmoovs/2pbej1292276732.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/13/t1292277082ubyo2vb3gjmoovs/2pbej1292276732.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/13/t1292277082ubyo2vb3gjmoovs/302e41292276732.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/13/t1292277082ubyo2vb3gjmoovs/302e41292276732.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/13/t1292277082ubyo2vb3gjmoovs/402e41292276732.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/13/t1292277082ubyo2vb3gjmoovs/402e41292276732.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/13/t1292277082ubyo2vb3gjmoovs/502e41292276732.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/13/t1292277082ubyo2vb3gjmoovs/502e41292276732.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/13/t1292277082ubyo2vb3gjmoovs/6sbv71292276732.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/13/t1292277082ubyo2vb3gjmoovs/6sbv71292276732.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/13/t1292277082ubyo2vb3gjmoovs/73lua1292276732.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/13/t1292277082ubyo2vb3gjmoovs/73lua1292276732.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/13/t1292277082ubyo2vb3gjmoovs/83lua1292276732.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/13/t1292277082ubyo2vb3gjmoovs/83lua1292276732.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/13/t1292277082ubyo2vb3gjmoovs/93lua1292276732.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/13/t1292277082ubyo2vb3gjmoovs/93lua1292276732.ps (open in new window)


 
Parameters (Session):
par1 = 1 ; par2 = Do not include Seasonal Dummies ; par3 = Linear Trend ;
 
Parameters (R input):
par1 = 1 ; par2 = Do not include Seasonal Dummies ; par3 = Linear Trend ;
 
R code (references can be found in the software module):
library(lattice)
library(lmtest)
n25 <- 25 #minimum number of obs. for Goldfeld-Quandt test
par1 <- as.numeric(par1)
x <- t(y)
k <- length(x[1,])
n <- length(x[,1])
x1 <- cbind(x[,par1], x[,1:k!=par1])
mycolnames <- c(colnames(x)[par1], colnames(x)[1:k!=par1])
colnames(x1) <- mycolnames #colnames(x)[par1]
x <- x1
if (par3 == 'First Differences'){
x2 <- array(0, dim=c(n-1,k), dimnames=list(1:(n-1), paste('(1-B)',colnames(x),sep='')))
for (i in 1:n-1) {
for (j in 1:k) {
x2[i,j] <- x[i+1,j] - x[i,j]
}
}
x <- x2
}
if (par2 == 'Include Monthly Dummies'){
x2 <- array(0, dim=c(n,11), dimnames=list(1:n, paste('M', seq(1:11), sep ='')))
for (i in 1:11){
x2[seq(i,n,12),i] <- 1
}
x <- cbind(x, x2)
}
if (par2 == 'Include Quarterly Dummies'){
x2 <- array(0, dim=c(n,3), dimnames=list(1:n, paste('Q', seq(1:3), sep ='')))
for (i in 1:3){
x2[seq(i,n,4),i] <- 1
}
x <- cbind(x, x2)
}
k <- length(x[1,])
if (par3 == 'Linear Trend'){
x <- cbind(x, c(1:n))
colnames(x)[k+1] <- 't'
}
x
k <- length(x[1,])
df <- as.data.frame(x)
(mylm <- lm(df))
(mysum <- summary(mylm))
if (n > n25) {
kp3 <- k + 3
nmkm3 <- n - k - 3
gqarr <- array(NA, dim=c(nmkm3-kp3+1,3))
numgqtests <- 0
numsignificant1 <- 0
numsignificant5 <- 0
numsignificant10 <- 0
for (mypoint in kp3:nmkm3) {
j <- 0
numgqtests <- numgqtests + 1
for (myalt in c('greater', 'two.sided', 'less')) {
j <- j + 1
gqarr[mypoint-kp3+1,j] <- gqtest(mylm, point=mypoint, alternative=myalt)$p.value
}
if (gqarr[mypoint-kp3+1,2] < 0.01) numsignificant1 <- numsignificant1 + 1
if (gqarr[mypoint-kp3+1,2] < 0.05) numsignificant5 <- numsignificant5 + 1
if (gqarr[mypoint-kp3+1,2] < 0.10) numsignificant10 <- numsignificant10 + 1
}
gqarr
}
bitmap(file='test0.png')
plot(x[,1], type='l', main='Actuals and Interpolation', ylab='value of Actuals and Interpolation (dots)', xlab='time or index')
points(x[,1]-mysum$resid)
grid()
dev.off()
bitmap(file='test1.png')
plot(mysum$resid, type='b', pch=19, main='Residuals', ylab='value of Residuals', xlab='time or index')
grid()
dev.off()
bitmap(file='test2.png')
hist(mysum$resid, main='Residual Histogram', xlab='values of Residuals')
grid()
dev.off()
bitmap(file='test3.png')
densityplot(~mysum$resid,col='black',main='Residual Density Plot', xlab='values of Residuals')
dev.off()
bitmap(file='test4.png')
qqnorm(mysum$resid, main='Residual Normal Q-Q Plot')
qqline(mysum$resid)
grid()
dev.off()
(myerror <- as.ts(mysum$resid))
bitmap(file='test5.png')
dum <- cbind(lag(myerror,k=1),myerror)
dum
dum1 <- dum[2:length(myerror),]
dum1
z <- as.data.frame(dum1)
z
plot(z,main=paste('Residual Lag plot, lowess, and regression line'), ylab='values of Residuals', xlab='lagged values of Residuals')
lines(lowess(z))
abline(lm(z))
grid()
dev.off()
bitmap(file='test6.png')
acf(mysum$resid, lag.max=length(mysum$resid)/2, main='Residual Autocorrelation Function')
grid()
dev.off()
bitmap(file='test7.png')
pacf(mysum$resid, lag.max=length(mysum$resid)/2, main='Residual Partial Autocorrelation Function')
grid()
dev.off()
bitmap(file='test8.png')
opar <- par(mfrow = c(2,2), oma = c(0, 0, 1.1, 0))
plot(mylm, las = 1, sub='Residual Diagnostics')
par(opar)
dev.off()
if (n > n25) {
bitmap(file='test9.png')
plot(kp3:nmkm3,gqarr[,2], main='Goldfeld-Quandt test',ylab='2-sided p-value',xlab='breakpoint')
grid()
dev.off()
}
load(file='createtable')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a, 'Multiple Linear Regression - Estimated Regression Equation', 1, TRUE)
a<-table.row.end(a)
myeq <- colnames(x)[1]
myeq <- paste(myeq, '[t] = ', sep='')
for (i in 1:k){
if (mysum$coefficients[i,1] > 0) myeq <- paste(myeq, '+', '')
myeq <- paste(myeq, mysum$coefficients[i,1], sep=' ')
if (rownames(mysum$coefficients)[i] != '(Intercept)') {
myeq <- paste(myeq, rownames(mysum$coefficients)[i], sep='')
if (rownames(mysum$coefficients)[i] != 't') myeq <- paste(myeq, '[t]', sep='')
}
}
myeq <- paste(myeq, ' + e[t]')
a<-table.row.start(a)
a<-table.element(a, myeq)
a<-table.row.end(a)
a<-table.end(a)
table.save(a,file='mytable1.tab')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a,hyperlink('http://www.xycoon.com/ols1.htm','Multiple Linear Regression - Ordinary Least Squares',''), 6, TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'Variable',header=TRUE)
a<-table.element(a,'Parameter',header=TRUE)
a<-table.element(a,'S.D.',header=TRUE)
a<-table.element(a,'T-STAT<br />H0: parameter = 0',header=TRUE)
a<-table.element(a,'2-tail p-value',header=TRUE)
a<-table.element(a,'1-tail p-value',header=TRUE)
a<-table.row.end(a)
for (i in 1:k){
a<-table.row.start(a)
a<-table.element(a,rownames(mysum$coefficients)[i],header=TRUE)
a<-table.element(a,mysum$coefficients[i,1])
a<-table.element(a, round(mysum$coefficients[i,2],6))
a<-table.element(a, round(mysum$coefficients[i,3],4))
a<-table.element(a, round(mysum$coefficients[i,4],6))
a<-table.element(a, round(mysum$coefficients[i,4]/2,6))
a<-table.row.end(a)
}
a<-table.end(a)
table.save(a,file='mytable2.tab')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a, 'Multiple Linear Regression - Regression Statistics', 2, TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'Multiple R',1,TRUE)
a<-table.element(a, sqrt(mysum$r.squared))
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'R-squared',1,TRUE)
a<-table.element(a, mysum$r.squared)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'Adjusted R-squared',1,TRUE)
a<-table.element(a, mysum$adj.r.squared)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'F-TEST (value)',1,TRUE)
a<-table.element(a, mysum$fstatistic[1])
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'F-TEST (DF numerator)',1,TRUE)
a<-table.element(a, mysum$fstatistic[2])
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'F-TEST (DF denominator)',1,TRUE)
a<-table.element(a, mysum$fstatistic[3])
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'p-value',1,TRUE)
a<-table.element(a, 1-pf(mysum$fstatistic[1],mysum$fstatistic[2],mysum$fstatistic[3]))
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'Multiple Linear Regression - Residual Statistics', 2, TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'Residual Standard Deviation',1,TRUE)
a<-table.element(a, mysum$sigma)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'Sum Squared Residuals',1,TRUE)
a<-table.element(a, sum(myerror*myerror))
a<-table.row.end(a)
a<-table.end(a)
table.save(a,file='mytable3.tab')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a, 'Multiple Linear Regression - Actuals, Interpolation, and Residuals', 4, TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'Time or Index', 1, TRUE)
a<-table.element(a, 'Actuals', 1, TRUE)
a<-table.element(a, 'Interpolation<br />Forecast', 1, TRUE)
a<-table.element(a, 'Residuals<br />Prediction Error', 1, TRUE)
a<-table.row.end(a)
for (i in 1:n) {
a<-table.row.start(a)
a<-table.element(a,i, 1, TRUE)
a<-table.element(a,x[i])
a<-table.element(a,x[i]-mysum$resid[i])
a<-table.element(a,mysum$resid[i])
a<-table.row.end(a)
}
a<-table.end(a)
table.save(a,file='mytable4.tab')
if (n > n25) {
a<-table.start()
a<-table.row.start(a)
a<-table.element(a,'Goldfeld-Quandt test for Heteroskedasticity',4,TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'p-values',header=TRUE)
a<-table.element(a,'Alternative Hypothesis',3,header=TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'breakpoint index',header=TRUE)
a<-table.element(a,'greater',header=TRUE)
a<-table.element(a,'2-sided',header=TRUE)
a<-table.element(a,'less',header=TRUE)
a<-table.row.end(a)
for (mypoint in kp3:nmkm3) {
a<-table.row.start(a)
a<-table.element(a,mypoint,header=TRUE)
a<-table.element(a,gqarr[mypoint-kp3+1,1])
a<-table.element(a,gqarr[mypoint-kp3+1,2])
a<-table.element(a,gqarr[mypoint-kp3+1,3])
a<-table.row.end(a)
}
a<-table.end(a)
table.save(a,file='mytable5.tab')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a,'Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity',4,TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'Description',header=TRUE)
a<-table.element(a,'# significant tests',header=TRUE)
a<-table.element(a,'% significant tests',header=TRUE)
a<-table.element(a,'OK/NOK',header=TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'1% type I error level',header=TRUE)
a<-table.element(a,numsignificant1)
a<-table.element(a,numsignificant1/numgqtests)
if (numsignificant1/numgqtests < 0.01) dum <- 'OK' else dum <- 'NOK'
a<-table.element(a,dum)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'5% type I error level',header=TRUE)
a<-table.element(a,numsignificant5)
a<-table.element(a,numsignificant5/numgqtests)
if (numsignificant5/numgqtests < 0.05) dum <- 'OK' else dum <- 'NOK'
a<-table.element(a,dum)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'10% type I error level',header=TRUE)
a<-table.element(a,numsignificant10)
a<-table.element(a,numsignificant10/numgqtests)
if (numsignificant10/numgqtests < 0.1) dum <- 'OK' else dum <- 'NOK'
a<-table.element(a,dum)
a<-table.row.end(a)
a<-table.end(a)
table.save(a,file='mytable6.tab')
}
 





Copyright

Creative Commons License

This work is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 License.

Software written by Ed van Stee & Patrick Wessa


Disclaimer

Information provided on this web site is provided "AS IS" without warranty of any kind, either express or implied, including, without limitation, warranties of merchantability, fitness for a particular purpose, and noninfringement. We use reasonable efforts to include accurate and timely information and periodically update the information, and software without notice. However, we make no warranties or representations as to the accuracy or completeness of such information (or software), and we assume no liability or responsibility for errors or omissions in the content of this web site, or any software bugs in online applications. Your use of this web site is AT YOUR OWN RISK. Under no circumstances and under no legal theory shall we be liable to you or any other person for any direct, indirect, special, incidental, exemplary, or consequential damages arising from your access to, or use of, this web site.


Privacy Policy

We may request personal information to be submitted to our servers in order to be able to:

  • personalize online software applications according to your needs
  • enforce strict security rules with respect to the data that you upload (e.g. statistical data)
  • manage user sessions of online applications
  • alert you about important changes or upgrades in resources or applications

We NEVER allow other companies to directly offer registered users information about their products and services. Banner references and hyperlinks of third parties NEVER contain any personal data of the visitor.

We do NOT sell, nor transmit by any means, personal information, nor statistical data series uploaded by you to third parties.

We carefully protect your data from loss, misuse, alteration, and destruction. However, at any time, and under any circumstance you are solely responsible for managing your passwords, and keeping them secret.

We store a unique ANONYMOUS USER ID in the form of a small 'Cookie' on your computer. This allows us to track your progress when using this website which is necessary to create state-dependent features. The cookie is used for NO OTHER PURPOSE. At any time you may opt to disallow cookies from this website - this will not affect other features of this website.

We examine cookies that are used by third-parties (banner and online ads) very closely: abuse from third-parties automatically results in termination of the advertising contract without refund. We have very good reason to believe that the cookies that are produced by third parties (banner ads) do NOT cause any privacy or security risk.

FreeStatistics.org is safe. There is no need to download any software to use the applications and services contained in this website. Hence, your system's security is not compromised by their use, and your personal data - other than data you submit in the account application form, and the user-agent information that is transmitted by your browser - is never transmitted to our servers.

As a general rule, we do not log on-line behavior of individuals (other than normal logging of webserver 'hits'). However, in cases of abuse, hacking, unauthorized access, Denial of Service attacks, illegal copying, hotlinking, non-compliance with international webstandards (such as robots.txt), or any other harmful behavior, our system engineers are empowered to log, track, identify, publish, and ban misbehaving individuals - even if this leads to ban entire blocks of IP addresses, or disclosing user's identity.


FreeStatistics.org is powered by