Home » date » 2010 » Dec » 14 »

Apple Inc - Multiple regression model 4

*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 11:00:31 +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/t1292324308bkh3jkzn3juu09w.htm/, Retrieved Tue, 14 Dec 2010 11:58:31 +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/t1292324308bkh3jkzn3juu09w.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 115.7 9.12 14163200 -0,2643 23.62 109.2 11.03 18184800 -0,2643 21.90 116.9 12.74 20810300 -0,1918 27.12 109.9 9.98 12843000 -0,1918 27.70 116.1 11.62 13866700 -0,1918 29.23 118.9 9.40 15119200 -0,2246 26.50 116.3 9.27 8301600 -0,2246 22.84 114.0 7.76 14039600 -0,2246 20.49 97.0 8.78 12139700 0,3654 23.28 85.3 10.65 9649000 0,3654 25.71 84.9 10.95 8513600 0,3654 26.52 94.6 12.36 15278600 0,0447 25.51 97.8 10.85 15590900 0,0447 23.36 95.0 11.84 9691100 0,0447 24.15 110.7 12.14 10882700 -0,0312 20.92 108.5 11.65 10294800 -0,0312 20.38 110.3 8.86 16031900 -0,0312 21.90 106.3 7.63 13683600 -0,0048 19.21 97.4 7.38 8677200 -0,0048 19.65 94.5 7.25 9874100 -0,0048 17.51 93.7 8.03 10725500 0,0705 21.41 79.6 7.75 8348400 0,0705 23.09 84.9 7.16 8046200 0,0705 20.70 80.7 7.18 10862300 -0,0134 19.00 78.8 7.51 8100300 -0,0134 19.04 64.8 7.07 7287500 -0,0134 19.45 61.4 7.11 14002500 0,0812 20.54 81.0 8.98 19037900 0,0812 19.77 83.6 9.53 10 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'RServer@AstonUniversity' @ vre.aston.ac.uk


Multiple Linear Regression - Estimated Regression Equation
APPLE[t] = -154.134352998398 -6.20191077240239e-07VOLUME[t] -14.5370902407824REV.GROWTH[t] + 8.00707285496616MICROSOFT[t] -0.48366229262046CONS.CONF[t] + 1.73128519781195t + e[t]


Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STAT
H0: parameter = 0
2-tail p-value1-tail p-value
(Intercept)-154.13435299839817.180336-8.971600
VOLUME-6.20191077240239e-070-2.70040.0080120.004006
REV.GROWTH-14.537090240782410.071044-1.44350.1517090.075854
MICROSOFT8.007072854966160.79731510.042500
CONS.CONF-0.483662292620460.147821-3.2720.0014240.000712
t1.731285197811950.13358512.960100


Multiple Linear Regression - Regression Statistics
Multiple R0.952350239811516
R-squared0.906970979269052
Adjusted R-squared0.90278048283973
F-TEST (value)216.435211094022
F-TEST (DF numerator)5
F-TEST (DF denominator)111
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation23.6893841431663
Sum Squared Residuals62291.7482401575


Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolation
Forecast
Residuals
Prediction Error
110.81-23.981712308894834.7917123088949
29.12-19.302381437157828.4223814371578
311.03-37.561621639294748.5916216392947
412.746.669969194033086.07003080596692
59.9814.9878988031746-5.0078988031746
611.6226.9808614439767-15.3608614439767
79.47.810386944198481.58961305580153
89.27-14.423576545945623.6935765459456
97.76-26.845309983960934.6053099839609
108.78-4.5140249115467913.2940249115468
1110.6518.4126221569634-7.76262215696339
1210.9522.642277077978-11.692277077978
1312.3615.2051515585774-2.84515155857738
1410.850.8817988641272129.96820113587279
1511.845.004176940723166.83582305927684
1612.14-17.698980677604729.8389806776047
1711.65-20.797496613881832.4474966138818
188.86-8.5189097352743717.3789097352744
197.63-22.949440588672730.5794405886727
207.38-13.187498076980820.5674980769808
217.25-28.946725655048936.1967256550489
228.039.20910842478632-1.17910842478632
237.7523.3031220777607-15.5531220777607
247.168.11630652475149-0.956306524751487
257.18-3.3723319963147610.5523319963148
267.517.16347596771980.346524032280196
277.0714.3262041385583-7.25620413855832
287.119.76562599247612-2.65562599247612
298.980.9510329808154328.02896701918457
309.5314.5013798060706-4.97137980607063
3110.5423.8259811787228-13.2859811787228
3211.3124.7410430241728-13.4310430241728
3310.3635.8725128759893-25.5125128759893
3411.4422.0594692033944-10.6194692033944
3510.4516.8673638578927-6.41736385789267
3610.6929.9358445389532-19.2458445389532
3711.2828.9142696925118-17.6342696925118
3811.9629.880610730741-17.920610730741
3913.5215.9947127255577-2.47471272555774
4012.8924.841221523558-11.951221523558
4114.0331.0400322857486-17.0100322857486
4216.2740.0977510422493-23.8277510422493
4316.1737.5637580844737-21.3937580844737
4417.2537.5931386179208-20.3431386179208
4519.3842.4368549540992-23.0568549540992
4626.233.428273332118-7.22827333211802
4733.5346.0664700494242-12.5364700494242
4832.245.4137781651326-13.2137781651326
4938.4529.38179943578379.06820056421626
5044.8628.494009439898316.3659905601017
5141.6734.04406843987837.62593156012175
5236.0640.2420689809901-4.18206898099008
5339.7650.5845979694464-10.8245979694464
5436.8146.0134170964051-9.20341709640509
5542.6557.2869169778635-14.6369169778635
5646.8973.9115114369084-27.0215114369084
5753.6168.1949221279359-14.5849221279359
5857.5962.5314927606709-4.94149276067093
5967.8278.815166642706-10.995166642706
6071.8967.05999541542594.83000458457413
6175.5175.5970302172293-0.0870302172293338
6268.4972.4775609145483-3.98756091454829
6362.7274.5983102003232-11.8783102003232
6470.3953.067221205959217.3227787940408
6559.7754.1918575227085.57814247729202
6657.2758.4449839595593-1.17498395955928
6767.9662.53862566603755.42137433396248
6867.8582.9376600622813-15.0876600622813
6976.9891.7868115446541-14.8068115446541
7081.08110.185281621652-29.1052816216515
7191.66116.824994508139-25.1649945081387
7284.84115.658415262778-30.8184152627784
7385.73113.857770767879-28.1277707678791
7484.61109.901822268718-25.2918222687181
7592.91111.279596730886-18.3695967308862
7699.8129.54925949676-29.7492594967602
77121.19133.342199343209-12.1521993432094
78122.04120.5280849297991.51191507020111
79131.76112.6782048381419.0817951618596
80138.48119.14323524506219.3367647549377
81153.47128.53884086429424.9311591357059
82189.95187.9017223790012.04827762099925
83182.22164.33836953643417.8816304635657
84198.08188.9365478433349.14345215666628
85135.36149.920694939395-14.5606949393949
86125.02126.928702254653-1.90870225465328
87143.5145.39321692647-1.89321692647006
88173.95154.24591552660719.7040844733933
89188.75161.56309289546127.1869071045388
90167.44159.4064279760058.03357202399498
91158.95142.02271240178616.9272875982136
92169.53159.30476641623410.2252335837656
93113.66142.402740914777-28.7427409147771
94107.59116.317650302864-8.7276503028642
9592.67113.6554537575-20.9854537574997
9685.35119.427615201161-34.0776152011609
9790.13120.162068298861-30.0320682988613
9889.31108.88444188496-19.5744418849596
99105.12127.864806851276-22.7448068512758
100125.83138.386232072637-12.5562320726365
101135.81141.286914030145-5.4769140301446
102142.43165.798287199066-23.3682871990664
103163.39171.595383746337-8.20538374633718
104168.21182.242844969093-14.032844969093
105185.35190.668675483738-5.3186754837375
106188.5203.918760294222-15.4187602942221
107199.91222.836237710126-22.9262377101257
108210.73229.53178474948-18.8017847494797
109192.06202.123011991288-10.0630119912882
110204.62219.606025936263-14.9860259362633
111235224.40212465133410.5978753486658
112261.09230.02880718323731.0611928167628
113256.88185.60939227676471.2706077232363
114251.53172.73549890235978.7945010976412
115257.25197.96922531798159.2807746820188
116243.1188.01541222069655.0845877793041
117283.75196.92622645515386.8237735448472


Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
90.0001175582642716820.0002351165285433640.999882441735728
101.5781671081611e-053.15633421632221e-050.999984218328918
111.24465711461738e-062.48931422923476e-060.999998755342885
126.21287816322216e-081.24257563264443e-070.999999937871218
135.81582113990924e-091.16316422798185e-080.99999999418418
142.72623905391665e-105.4524781078333e-100.999999999727376
151.32348132953493e-112.64696265906986e-110.999999999986765
169.84608663156577e-131.96921732631315e-120.999999999999015
175.20143080275554e-141.04028616055111e-130.999999999999948
181.65889003858968e-133.31778007717937e-130.999999999999834
194.16690307087893e-148.33380614175786e-140.999999999999958
204.16813414520556e-158.33626829041112e-150.999999999999996
215.07659668604166e-161.01531933720833e-151
223.84276835817564e-177.68553671635128e-171
232.43921484952769e-184.87842969905539e-181
241.59794948600967e-193.19589897201934e-191
251.51282600666492e-203.02565201332984e-201
265.57374473679934e-211.11474894735987e-201
276.98294570623628e-221.39658914124726e-211
281.16184251177684e-222.32368502355369e-221
291.48452529062283e-232.96905058124567e-231
302.18120856310836e-244.36241712621673e-241
315.76931911710791e-251.15386382342158e-241
321.72774667746903e-253.45549335493806e-251
331.65522676613996e-263.31045353227992e-261
341.74271610626315e-273.48543221252629e-271
352.07894409053406e-284.15788818106811e-281
361.95377868097028e-293.90755736194056e-291
371.91155521026798e-303.82311042053596e-301
382.56266186094295e-315.1253237218859e-311
391.44762485719806e-312.89524971439612e-311
402.0996468904676e-324.1992937809352e-321
411.0280788118076e-322.05615762361521e-321
423.09129841125242e-336.18259682250483e-331
433.17466261881958e-346.34932523763916e-341
442.78527815999615e-345.5705563199923e-341
453.41772361435461e-336.83544722870922e-331
461.66022374650212e-313.32044749300424e-311
471.05978198987408e-282.11956397974817e-281
482.92138002643539e-285.84276005287078e-281
494.17251962415204e-298.34503924830408e-291
509.44861277674694e-271.88972255534939e-261
513.20713206220087e-236.41426412440174e-231
526.43046472181005e-241.28609294436201e-231
537.12021886398933e-231.42404377279787e-221
541.05038857469729e-222.10077714939457e-221
551.10695001900515e-202.2139000380103e-201
561.60250660180371e-183.20501320360741e-181
571.28469961382699e-152.56939922765397e-150.999999999999999
581.96481865246388e-143.92963730492775e-140.99999999999998
592.7115562191646e-125.4231124383292e-120.999999999997288
602.08395258344003e-104.16790516688005e-100.999999999791605
612.64833385004755e-105.2966677000951e-100.999999999735167
621.52321495214356e-103.04642990428711e-100.999999999847679
636.05907606525856e-111.21181521305171e-100.99999999993941
647.28177599765085e-111.45635519953017e-100.999999999927182
655.43163222072865e-111.08632644414573e-100.999999999945684
662.73506153883574e-115.47012307767148e-110.99999999997265
671.74704768075416e-113.49409536150831e-110.99999999998253
687.54493255916509e-121.50898651183302e-110.999999999992455
693.34769848357329e-126.69539696714658e-120.999999999996652
701.80007501491063e-123.60015002982125e-120.9999999999982
711.84266089007633e-123.68532178015265e-120.999999999998157
728.2568442578117e-131.65136885156234e-120.999999999999174
731.11008039735225e-122.22016079470449e-120.99999999999889
745.65832198119229e-131.13166439623846e-120.999999999999434
754.63913540800578e-139.27827081601156e-130.999999999999536
769.21740337737614e-131.84348067547523e-120.999999999999078
771.30240904133525e-112.6048180826705e-110.999999999986976
784.51201879881548e-119.02403759763095e-110.99999999995488
796.30556957821753e-101.26111391564351e-090.999999999369443
801.44697588778303e-082.89395177556607e-080.999999985530241
815.80358857583954e-071.16071771516791e-060.999999419641142
821.08611025440451e-052.17222050880902e-050.999989138897456
834.15039807861259e-058.30079615722518e-050.999958496019214
840.0002353377757985810.0004706755515971620.999764662224201
850.0003150753169000270.0006301506338000530.9996849246831
860.0002167320321258560.0004334640642517110.999783267967874
870.0001309640970573650.0002619281941147290.999869035902943
880.0005214592739029750.001042918547805950.999478540726097
890.02048067390191540.04096134780383080.979519326098085
900.1486052704687670.2972105409375330.851394729531233
910.2734138632342990.5468277264685970.726586136765701
920.9245768736711910.1508462526576170.0754231263288087
930.9537617460982750.09247650780344950.0462382539017248
940.9646334718539870.0707330562920270.0353665281460135
950.9568749454189680.08625010916206330.0431250545810316
960.9438759772397620.1122480455204770.0561240227602383
970.9367164109857580.1265671780284850.0632835890142425
980.9039282739303410.1921434521393180.0960717260696588
990.8579774651684660.2840450696630690.142022534831534
1000.8337310095709160.3325379808581670.166268990429084
1010.7820319735691020.4359360528617960.217968026430898
1020.7298944904552960.5402110190894080.270105509544704
1030.7248812529579730.5502374940840550.275118747042027
1040.6232310576657340.7535378846685320.376768942334266
1050.5080418247544310.9839163504911390.491958175245569
1060.57721935120880.84556129758240.4227806487912
1070.65499277746160.69001444507680.3450072225384
1080.4839895082183860.9679790164367720.516010491781614


Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level800.8NOK
5% type I error level810.81NOK
10% type I error level840.84NOK
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Dec/14/t1292324308bkh3jkzn3juu09w/10x7b31292324421.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/14/t1292324308bkh3jkzn3juu09w/10x7b31292324421.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/14/t1292324308bkh3jkzn3juu09w/186wr1292324421.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/14/t1292324308bkh3jkzn3juu09w/186wr1292324421.ps (open in new window)


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


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


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


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


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


http://www.freestatistics.org/blog/date/2010/Dec/14/t1292324308bkh3jkzn3juu09w/74xc01292324421.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/14/t1292324308bkh3jkzn3juu09w/74xc01292324421.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/14/t1292324308bkh3jkzn3juu09w/84xc01292324421.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/14/t1292324308bkh3jkzn3juu09w/84xc01292324421.ps (open in new window)


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