Home » date » 2010 » Dec » 14 »

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


Multiple Linear Regression - Estimated Regression Equation
APPLE[t] = -148.389379308089 -7.06273178125015e-07VOLUME[t] -18.2064906878529REV.GROWTH[t] + 6.83287017871576MICROSOFT[t] + 0.0189694137186282NASDAQ[t] + 82.2743167281702INFLATION[t] -0.611219563554504CONS.CONF[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
VOLUME-7.06273178125015e-070-2.74480.0070830.003542
REV.GROWTH-18.206490687852911.098972-1.64040.103810.051905
MICROSOFT6.832870178715761.1275176.060100
NASDAQ0.01896941371862820.0144231.31520.1912040.095602
INFLATION82.2743167281702218.0969230.37720.7067310.353365
CONS.CONF-0.6112195635545040.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.2562971997285318.0662971997285
29.12-11.893817266414621.0138172664146
311.03-35.947156067917846.9771560679178
412.748.005921635199334.73407836480067
59.9815.6435116393184-5.66351163931843
611.6225.9664908898376-14.3464908898376
79.47.305838866043612.09416113395639
89.27-14.028981671355223.2989816713552
97.76-27.964162534484635.7241625344846
108.78-6.2881372754742815.0681372754743
1110.6518.348086752952-7.698086752952
1210.9520.5019083917910-9.55190839179096
1312.3613.7159467430930-1.35594674309297
1410.85-1.6678332085326112.5178332085326
1511.842.398558026788019.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.607566413042241.8575664130422
228.033.763777016453884.26622298354612
237.7518.3074055892636-10.5574055892636
247.163.845859972894213.31414002710579
257.18-5.5079531091059112.6879531091059
267.517.55899679398066-0.0489967939806604
277.0714.7729373320439-7.70293733204385
287.117.11171336524198-0.00171336524197807
298.980.7277107626249388.25228923737506
309.5314.5055971361330-4.97559713613304
3110.5425.7610561328307-15.2210561328307
3211.3127.4719510025171-16.1619510025171
3310.3637.4505056793357-27.0905056793357
3411.4426.1257305101077-14.6857305101077
3510.4520.3567994669585-9.90679946695851
3610.6932.8196379052649-22.1296379052649
3711.2831.8784521117184-20.5984521117184
3811.9634.33606389021-22.37606389021
3913.5220.5235594591247-7.00355945912474
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.04923877471913
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.433957325181782
5339.7648.6278629707337-8.8678629707337
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.51116277379034
6175.5175.29961892841240.210381071587573
6268.4973.388425385918-4.89842538591805
6362.7275.4018417627668-12.6818417627668
6470.3956.828547524799213.5614524752008
6559.7758.85961375597580.910386244024246
6657.2761.9524316798376-4.68243167983759
6767.9662.83159105839385.12840894160617
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.7915784044244
78122.04121.8498478561930.190152143807101
79131.76111.72152524161920.0384747583807
80138.48120.12324555787718.3567544421226
81153.47131.94543472176421.5245652782355
82189.95187.2382580550672.71174194493264
83182.22164.04071094561618.1792890543843
84198.08186.91965898785411.1603410121462
85135.36143.895211762662-8.5352117626616
86125.02127.024258859856-2.00425885985605
87143.5145.916186263863-2.41618626386300
88173.95158.35627393613815.593726063862
89188.75169.17090362326119.579096376739
90167.44164.9064159593162.53358404068357
91158.95149.0279972976989.92200270230243
92169.53164.992206413484.53779358651994
93113.66140.975753105341-27.3157531053406
94107.59114.694156140423-7.10415614042257
9592.67109.629811992367-16.9598119923669
9685.35117.941860679225-32.5918606792251
9790.13123.718469444614-33.5884694446144
9889.31109.429071953966-20.1190719539663
99105.12128.092141566345-22.9721415663454
100125.83137.798060082971-11.9680600829715
101135.81138.888140749212-3.07814074921229
102142.43161.471995142760-19.0419951427598
103163.39170.969958455698-7.57995845569842
104168.21180.631328480647-12.4213284806473
105185.35189.909342094546-4.55934209454584
106188.5199.505779171235-11.0057791712348
107199.91220.124438930834-20.2144389308344
108210.73227.941368013672-17.2113680136724
109192.06198.723587232262-6.66358723226224
110204.62218.857212908644-14.2372129086437
111235225.4241002219579.57589977804273
112261.09229.31297587268731.7770241273128
113256.88184.45834880466672.4216511953336
114251.53172.69812167003678.8318783299642
115257.25197.81622882670959.4337711732909
116243.1188.29736514100554.802634858995
117283.75200.92223537549882.8277646245023


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.99999997473024
152.62517295006229e-095.25034590012458e-090.999999997374827
163.52460288704446e-107.04920577408892e-100.99999999964754
171.90491888485377e-113.80983776970755e-110.99999999998095
181.64813992186741e-113.29627984373482e-110.999999999983519
191.57505323327944e-123.15010646655888e-120.999999999998425
201.13852461647358e-132.27704923294717e-130.999999999999886
211.22924062596919e-142.45848125193837e-140.999999999999988
221.62993357055265e-153.2598671411053e-150.999999999999998
239.85205552349464e-171.97041110469893e-161
248.05964884453112e-181.61192976890622e-171
251.19283679518757e-182.38567359037513e-181
263.06554929894651e-196.13109859789302e-191
273.65319242510013e-207.30638485020025e-201
287.62891516151882e-211.52578303230376e-201
291.98339526256844e-213.96679052513689e-211
305.45257125979069e-221.09051425195814e-211
319.93543838435353e-231.98708767687071e-221
321.81163750547319e-233.62327501094637e-231
332.36978147368201e-244.73956294736403e-241
341.95322666949359e-253.90645333898717e-251
352.72452494956233e-265.44904989912465e-261
362.55197001591057e-275.10394003182115e-271
371.87001595046548e-283.74003190093096e-281
381.26037464609739e-292.52074929219479e-291
397.98055063650405e-301.59611012730081e-291
403.58711932288152e-307.17423864576304e-301
415.95626010672981e-301.19125202134596e-291
429.45641009499601e-301.89128201899920e-291
434.52361170611147e-309.04722341222295e-301
442.12069982473014e-294.24139964946028e-291
451.00046488107864e-272.00092976215728e-271
461.68171575568683e-263.36343151137367e-261
473.26126345211141e-246.52252690422283e-241
485.5963568993283e-241.11927137986566e-231
491.42366175256984e-242.84732350513969e-241
509.2074053761228e-221.84148107522456e-211
511.66390484630104e-183.32780969260208e-181
527.71090430554334e-191.54218086110867e-181
538.61408178715721e-181.72281635743144e-171
541.13945183337120e-172.27890366674241e-171
551.58869958305457e-153.17739916610915e-150.999999999999998
568.12692986791222e-141.62538597358244e-130.999999999999919
571.09244669772712e-112.18489339545423e-110.999999999989076
581.75361428704096e-103.50722857408192e-100.999999999824638
596.80901079946783e-081.36180215989357e-070.999999931909892
608.1482859241526e-061.62965718483052e-050.999991851714076
614.95780565604735e-059.9156113120947e-050.99995042194344
628.15463841357615e-050.0001630927682715230.999918453615864
635.13341323143487e-050.0001026682646286970.999948665867686
645.16580006943093e-050.0001033160013886190.999948341999306
653.92578576286463e-057.85157152572926e-050.999960742142371
662.67171750013388e-055.34343500026776e-050.999973282824999
670.0001335743978312210.0002671487956624420.999866425602169
680.0002598860321465040.0005197720642930070.999740113967853
690.0005885936317428390.001177187263485680.999411406368257
700.0007025688299282760.001405137659856550.999297431170072
710.001097867776046980.002195735552093960.998902132223953
720.0007722078907737140.001544415781547430.999227792109226
730.0008703011312242750.001740602262448550.999129698868776
740.0005489022966403880.001097804593280780.99945109770336
750.0004924665717497450.000984933143499490.99950753342825
760.0005929317651240490.001185863530248100.999407068234876
770.002150174859554280.004300349719108550.997849825140446
780.006660317086536280.01332063417307260.993339682913464
790.01876642623823220.03753285247646430.981233573761768
800.06786316392924910.1357263278584980.93213683607075
810.3694165242295250.738833048459050.630583475770475
820.592064347175580.815871305648840.40793565282442
830.6691349326809440.6617301346381120.330865067319056
840.9732413528697060.05351729426058710.0267586471302936
850.9695297827128660.06094043457426870.0304702172871344
860.966125100562390.0677497988752180.033874899437609
870.9590627385160250.08187452296794980.0409372614839749
880.9679139545664710.06417209086705810.0320860454335290
890.9725229405520080.05495411889598330.0274770594479916
900.9869053803801950.02618923923960930.0130946196198046
910.9821822369301250.03563552613975020.0178177630698751
920.9977106902311050.004578619537789680.00228930976889484
930.9965454401351870.006909119729626230.00345455986481312
940.9957312143240040.008537571351992980.00426878567599649
950.9942662677024110.01146746459517710.00573373229758854
960.9917216455292330.01655670894153440.00827835447076718
970.9844403515834520.03111929683309520.0155596484165476
980.9736776810591960.05264463788160760.0263223189408038
990.963868224563610.0722635508727810.0361317754363905
1000.9583274343811920.08334513123761680.0416725656188084
1010.9341197331115940.1317605337768110.0658802668884057
1020.8849632019768720.2300735960462560.115036798023128
1030.8247106892108050.350578621578390.175289310789195
1040.7292689263117280.5414621473765440.270731073688272
1050.872123752234410.2557524955311790.127876247765589
1060.9712314558592650.05753708828147060.0287685441407353


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/14/t1292323565t2bmzwfmbgutcaa/10pm6k1292323666.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/14/t1292323565t2bmzwfmbgutcaa/10pm6k1292323666.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/14/t1292323565t2bmzwfmbgutcaa/1jlr81292323666.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/14/t1292323565t2bmzwfmbgutcaa/1jlr81292323666.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/14/t1292323565t2bmzwfmbgutcaa/2bc8t1292323666.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/14/t1292323565t2bmzwfmbgutcaa/2bc8t1292323666.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/14/t1292323565t2bmzwfmbgutcaa/3bc8t1292323666.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/14/t1292323565t2bmzwfmbgutcaa/3bc8t1292323666.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/14/t1292323565t2bmzwfmbgutcaa/4bc8t1292323666.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/14/t1292323565t2bmzwfmbgutcaa/4bc8t1292323666.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/14/t1292323565t2bmzwfmbgutcaa/5bc8t1292323666.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/14/t1292323565t2bmzwfmbgutcaa/5bc8t1292323666.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/14/t1292323565t2bmzwfmbgutcaa/6m3qe1292323666.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/14/t1292323565t2bmzwfmbgutcaa/6m3qe1292323666.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/14/t1292323565t2bmzwfmbgutcaa/7fvpz1292323666.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/14/t1292323565t2bmzwfmbgutcaa/7fvpz1292323666.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/14/t1292323565t2bmzwfmbgutcaa/8fvpz1292323666.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/14/t1292323565t2bmzwfmbgutcaa/8fvpz1292323666.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/14/t1292323565t2bmzwfmbgutcaa/9pm6k1292323666.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/14/t1292323565t2bmzwfmbgutcaa/9pm6k1292323666.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