Home » date » 2010 » Dec » 11 »

Apple inc - Multiple regression 3 Lanceringen

*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: Sat, 11 Dec 2010 14:46:41 +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/11/t12920789933a9thfu2w03x2mc.htm/, Retrieved Sat, 11 Dec 2010 15:50:03 +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/11/t12920789933a9thfu2w03x2mc.htm/},
    year = {2010},
}
@Manual{R,
    title = {R: A Language and Environment for Statistical Computing},
    author = {{R Development Core Team}},
    organization = {R Foundation for Statistical Computing},
    address = {Vienna, Austria},
    year = {2010},
    note = {{ISBN} 3-900051-07-0},
    url = {http://www.R-project.org},
}
 
Original text written by user:
 
IsPrivate?
No (this computation is public)
 
User-defined keywords:
 
Dataseries X:
» Textbox « » Textfile « » CSV «
25.94 23688100 39.18 3940.35 0.02740 144.7 0 28.66 13741000 35.78 4696.69 0.03220 140.8 0 33.95 14143500 42.54 4572.83 0.03760 137.1 0 31.01 16763800 27.92 3860.66 0.03070 137.7 0 21.00 16634600 25.05 3400.91 0.03190 144.7 0 26.19 13693300 32.03 3966.11 0.03730 139.2 0 25.41 10545800 27.95 3766.99 0.03660 143.0 0 30.47 9409900 27.95 4206.35 0.03410 140.8 0 12.88 39182200 24.15 3672.82 0.03450 142.5 0 9.78 37005800 27.57 3369.63 0.03450 135.8 0 8.25 15818500 22.97 2597.93 0.03450 132.6 0 7.44 16952000 17.37 2470.52 0.03390 128.6 0 10.81 24563400 24.45 2772.73 0.03730 115.7 0 9.12 14163200 23.62 2151.83 0.03530 109.2 0 11.03 18184800 21.90 1840.26 0.02920 116.9 0 12.74 20810300 27.12 2116.24 0.03270 109.9 0 9.98 12843000 27.70 2110.49 0.03620 116.1 0 11.62 13866700 29.23 2160.54 0.03250 118.9 0 9.40 15119200 26.50 2027.13 0.02720 116.3 0 9.27 8301600 22.84 1805.43 0.02720 114.0 0 7.76 14039600 20.49 1498.80 0.02650 97.0 0 8.78 12139700 23.28 1690.20 0.02130 85.3 0 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 time9 seconds
R Server'Gwilym Jenkins' @ 72.249.127.135


Multiple Linear Regression - Estimated Regression Equation
APPLE[t] = -42.9866879231334 + 6.63274331102043e-07VOLUME[t] + 3.80563439777418MICROSOFT[t] + 0.00110067474813571NASDAQ[t] -86.4307633236699INFLATION[t] -0.296771689245468CONS.CONF[t] + 93.305945123973LANCERINGEN[t] + e[t]


Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STAT
H0: parameter = 0
2-tail p-value1-tail p-value
(Intercept)-42.986687923133416.584751-2.59190.0106990.005349
VOLUME6.63274331102043e-0702.91430.0042360.002118
MICROSOFT3.805634397774180.9377044.05858.7e-054.4e-05
NASDAQ0.001100674748135710.0070950.15510.8769770.438488
INFLATION-86.4307633236699208.817893-0.41390.6796650.339832
CONS.CONF-0.2967716892454680.179528-1.65310.1008680.050434
LANCERINGEN93.3059451239737.24554112.877700


Multiple Linear Regression - Regression Statistics
Multiple R0.939050560655683
R-squared0.881815955467753
Adjusted R-squared0.876050880124716
F-TEST (value)152.958270793960
F-TEST (DF numerator)6
F-TEST (DF denominator)123
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation26.9825524003687
Sum Squared Residuals89551.1504867532


Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolation
Forecast
Residuals
Prediction Error
125.9480.8557538591651-54.9157538591652
228.6662.8939670709372-34.2339670709372
333.9589.3820230721157-55.4320230721157
431.0135.1160676244502-4.10606762445021
52121.4210479030977-0.421047903097695
626.1947.8211067460395-21.6311067460395
725.4128.9200652053225-3.51006520532249
830.4729.51921897461370.95078102538635
912.8833.6786834555216-20.7986834555215
109.7846.9050595827561-37.1250595827561
118.2515.4464278200857-7.19642782008572
127.44-4.014595107829411.4545951078294
1310.8131.844867783762-21.0348677837620
149.1223.2064740909074-14.0864740909074
1511.0317.2273553945034-6.19735539450343
1612.7440.912852077269-28.1728520772690
179.9835.6867934250321-25.7067934250322
1811.6241.7323298519303-30.1123298519303
199.433.256547465217-23.856547465217
209.2715.2445417832451-5.97454178324506
217.7614.8752894138179-7.11528941381792
228.7828.3651923621954-19.5851923621954
2310.6536.5429461996102-25.8929461996102
2410.9536.3180660457339-25.3680660457339
2512.3636.3481048323019-23.9881048323019
2610.8528.9811615170905-18.1311615170905
2711.8423.2465695030647-11.4065695030647
2812.1412.08639856979030.0536014302096524
2911.659.42501056714462.22498943285541
308.8620.1291317007791-11.2691317007791
317.6310.4900600591011-2.86006005910109
327.389.39593583803132-2.01593583803132
337.252.376652491439344.87334750856066
348.0321.6919446583704-13.6619446583704
357.7524.9529523412318-17.2029523412318
367.1616.5902166773755-9.43021667737545
377.1812.3461337239074-5.16613372390735
387.5114.5110443536876-7.00104435368757
397.0716.5107139813911-9.44071398139105
407.1120.1230006941788-13.0130006941788
418.9820.0440454008582-11.0640454008582
429.5317.7379461020554-8.20794610205537
4310.5420.9087371484098-10.3687371484098
4411.3119.1087202060284-7.7987202060284
4510.3625.4573232422457-15.0973232422457
4611.4420.9811767333467-9.54117673334675
4710.4515.5290720046675-5.07907200466753
4810.6920.5822900359451-9.89229003594507
4911.2823.6376922778664-12.3576922778664
5011.9619.7983458919574-7.83834589195736
5113.5220.4620867002748-6.9420867002748
5212.8920.4842713546142-7.59427135461416
5314.0316.0309290824058-2.00092908240577
5416.2723.4300821098814-7.16008210988144
5516.1723.9172709786171-7.74727097861713
5617.2520.6669218378919-3.41692183789193
5719.3822.5893737726393-3.20937377263930
5826.234.1641842700399-7.96418427003985
5933.5341.7645245460467-8.2345245460467
6032.235.4141296487356-3.21412964873559
6138.4548.2737766299742-9.82377662997417
6244.8639.97147363548944.88852636451063
6341.6725.716240686949615.9537593130504
6436.0636.9980806718056-0.938080671805559
6539.7630.43688254688499.32311745311509
6636.8124.113655962885712.6963440371143
6742.6527.111323093824215.5386769061758
6846.8929.974306216901916.9156937830981
6953.6133.130785910788420.4792140892116
7057.5941.521757049199816.0682429508002
7167.8239.441305759967028.3786942400330
7271.8932.075241888202239.8147581117978
7375.5149.321571732299126.1884282677009
7468.4944.674877505177623.8151224948224
7562.7244.457085069200618.2629149307994
7670.3934.242079578095336.1479204219047
7759.7722.268789690966937.5012103090331
7857.2726.041973456355831.2280265436442
7967.9630.029465358079637.9305346419203
8067.8535.777430262784232.0725697372158
8176.9843.929283644562133.0507163554379
8281.0844.290893228237736.7891067717623
8391.6646.914417375493844.7455826245062
8484.8451.490242679612933.3497573203871
8585.7367.344148986383718.3858510136163
8684.6142.580517414163842.0294825858362
8792.9141.632273093766151.2777269062339
8899.848.721617928427851.0783820715722
89121.1954.481044976906466.7089550230936
90122.04151.845718798019-29.8057187980187
91131.76149.935150429140-18.1751504291402
92138.48148.537841746340-10.0578417463397
93153.47153.2741898858790.195810114120932
94189.95178.20410830168711.7458916983126
95182.22174.5261969731707.69380302682965
96198.08171.23434566527926.8456543347206
97135.36180.963594030809-45.6035940308092
98125.02155.25417618831-30.23417618831
99143.5159.810688589504-16.3106885895037
100173.95159.25304114866614.6969588513344
101188.75156.23095927028632.519040729714
102167.44155.42151466196012.0184853380404
103158.95147.29347179020011.6565282098003
104169.53145.07772127467024.4522787253302
105113.66155.662716347404-42.0027163474043
106107.59162.703552474707-55.1135524747073
10792.67141.217544664301-48.5475446643008
10885.35133.764004887750-48.4140048877502
10990.13135.241198990579-45.1111989905786
11089.31121.506058528397-32.1960585283973
111105.12128.927601682757-23.8076016827570
112125.83128.924053867594-3.09405386759378
113135.81125.9594746815629.85052531843817
114142.43140.7798985370271.65010146297288
115163.39139.28834522475224.1016547752482
116168.21138.68471174100029.5252882589995
117185.35145.24479979213440.1052002078659
118188.5155.90043832317932.5995616768208
119199.91156.23032717570943.6796728242911
120210.73160.84299635463349.8870036453667
121192.06252.486968263572-60.4269682635722
122204.62251.931361863989-47.3113618639892
123235251.424747720031-16.4247477200307
124261.09256.2339543767004.85604562329968
125256.88245.20724017405011.6727598259504
126251.53234.20230690089917.3276930991007
127257.25245.17804725648012.0719527435204
128243.1228.71898678916214.3810132108384
129283.75237.56675715343346.1832428465669
130300.98245.68440848798255.2955915120177


Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
100.008831826226382720.01766365245276540.991168173773617
110.003854062939816340.007708125879632680.996145937060184
120.0007144424992119080.001428884998423820.999285557500788
130.0002017591812022690.0004035183624045370.999798240818798
143.68802794864591e-057.37605589729181e-050.999963119720514
151.05259267654330e-052.10518535308660e-050.999989474073235
162.57232160790274e-065.14464321580548e-060.999997427678392
174.59744838510258e-079.19489677020516e-070.999999540255161
188.68607030947852e-081.73721406189570e-070.999999913139297
192.68182703280054e-085.36365406560107e-080.99999997318173
205.74445994089876e-091.14889198817975e-080.99999999425554
218.87565537715149e-101.77513107543030e-090.999999999112434
222.22863366541408e-104.45726733082815e-100.999999999777137
236.93060298338562e-111.38612059667712e-100.999999999930694
242.16361901884136e-114.32723803768273e-110.999999999978364
254.62657954982719e-129.25315909965439e-120.999999999995373
268.24991093731318e-131.64998218746264e-120.999999999999175
271.36525018800123e-132.73050037600245e-130.999999999999863
282.58446675724050e-145.16893351448099e-140.999999999999974
293.87061904033887e-157.74123808067774e-150.999999999999996
305.54459412905716e-161.10891882581143e-151
319.5974736985795e-171.9194947397159e-161
321.51837394087406e-173.03674788174812e-171
334.44904628550355e-188.8980925710071e-181
347.51841170712612e-191.50368234142522e-181
351.03911785052128e-192.07823570104256e-191
361.62425551247787e-203.24851102495573e-201
374.42849086817641e-218.85698173635282e-211
388.74656581669227e-221.74931316333845e-211
391.39654345922866e-222.79308691845732e-221
402.24914754338109e-234.49829508676218e-231
415.50016732403144e-241.10003346480629e-231
427.10717526563169e-251.42143505312634e-241
439.15157496165267e-261.83031499233053e-251
441.23779084457862e-262.47558168915725e-261
451.80240901739741e-273.60481803479483e-271
463.69104880193839e-287.38209760387679e-281
471.20980461893497e-282.41960923786993e-281
486.47068742109815e-291.29413748421963e-281
492.48461509538547e-294.96923019077095e-291
501.78864275654020e-293.57728551308041e-291
512.41104603248189e-294.82209206496378e-291
521.37164584432159e-292.74329168864317e-291
531.15957379986041e-292.31914759972083e-291
549.98527794834313e-291.99705558966863e-281
558.38041288679858e-281.67608257735972e-271
564.27593489576162e-278.55186979152323e-271
576.85289982928962e-261.37057996585792e-251
583.1052913760075e-216.210582752015e-211
591.81004499599053e-173.62008999198106e-171
601.46414043880065e-152.92828087760130e-150.999999999999999
611.95389619043278e-143.90779238086555e-140.99999999999998
628.35506308942592e-131.67101261788518e-120.999999999999164
633.77896007865473e-117.55792015730947e-110.99999999996221
643.8099270465788e-117.6198540931576e-110.9999999999619
653.24420038397389e-106.48840076794778e-100.99999999967558
661.99946513224456e-093.99893026448911e-090.999999998000535
672.95773615437723e-085.91547230875445e-080.999999970422638
685.60715027609537e-071.12143005521907e-060.999999439284972
692.48249147041372e-064.96498294082745e-060.99999751750853
703.55637144015454e-067.11274288030909e-060.99999644362856
717.35061210535285e-050.0001470122421070570.999926493878946
720.001056659783059470.002113319566118950.99894334021694
730.002134098450413380.004268196900826750.997865901549587
740.002659308892355270.005318617784710530.997340691107645
750.002650893203227890.005301786406455770.997349106796772
760.003640433803230750.00728086760646150.99635956619677
770.003580535715807080.007161071431614160.996419464284193
780.002802447205974500.005604894411949010.997197552794026
790.005730225783533660.01146045156706730.994269774216466
800.007116685307092930.01423337061418590.992883314692907
810.02068463225489850.04136926450979700.979315367745101
820.07370076456615780.1474015291323160.926299235433842
830.164747683904580.329495367809160.83525231609542
840.1871146024118620.3742292048237250.812885397588138
850.1646159261763820.3292318523527630.835384073823618
860.2073194173764960.4146388347529920.792680582623504
870.2963947844071890.5927895688143790.70360521559281
880.3846942647903580.7693885295807160.615305735209642
890.5866607514040650.826678497191870.413339248595935
900.6095060047645960.7809879904708080.390493995235404
910.5590668722358980.8818662555282040.440933127764102
920.5655797446637590.8688405106724810.434420255336241
930.6437474328397490.7125051343205030.356252567160251
940.7186314581396670.5627370837206660.281368541860333
950.6722354228469770.6555291543060460.327764577153023
960.6671801025866110.6656397948267770.332819897413389
970.7384090003234960.5231819993530090.261590999676505
980.7775044305078260.4449911389843480.222495569492174
990.7660851312249680.4678297375500640.233914868775032
1000.7410706512108560.5178586975782890.258929348789144
1010.7571026620376390.4857946759247220.242897337962361
1020.7004830641102830.5990338717794330.299516935889717
1030.664706174510610.6705876509787810.335293825489391
1040.6720783159925380.6558433680149250.327921684007462
1050.9593730732234980.08125385355300460.0406269267765023
1060.9711929746439250.05761405071215010.0288070253560751
1070.9592467618524020.08150647629519690.0407532381475984
1080.9769476427381150.04610471452376910.0230523572618846
1090.9643286595398840.07134268092023140.0356713404601157
1100.9419903942926440.1160192114147120.0580096057073558
1110.910426682469640.1791466350607210.0895733175303607
1120.9285938953838240.1428122092323530.0714061046161764
1130.947577989749190.1048440205016180.0524220102508092
1140.916622250094910.1667554998101800.0833777499050899
1150.9208483555394540.1583032889210920.0791516444605458
1160.9027709495501380.1944581008997240.097229050449862
1170.9962933188164360.007413362367128390.00370668118356419
1180.9997813026491340.0004373947017320140.000218697350866007
1190.9998566819691230.0002866360617548860.000143318030877443
1200.9984219840166740.003156031966652260.00157801598332613


Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level720.648648648648649NOK
5% type I error level770.693693693693694NOK
10% type I error level810.72972972972973NOK
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Dec/11/t12920789933a9thfu2w03x2mc/102uxu1292078791.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/11/t12920789933a9thfu2w03x2mc/102uxu1292078791.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/11/t12920789933a9thfu2w03x2mc/1vtij1292078791.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/11/t12920789933a9thfu2w03x2mc/1vtij1292078791.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/11/t12920789933a9thfu2w03x2mc/2vtij1292078791.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/11/t12920789933a9thfu2w03x2mc/2vtij1292078791.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/11/t12920789933a9thfu2w03x2mc/362h41292078791.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/11/t12920789933a9thfu2w03x2mc/362h41292078791.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/11/t12920789933a9thfu2w03x2mc/462h41292078791.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/11/t12920789933a9thfu2w03x2mc/462h41292078791.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/11/t12920789933a9thfu2w03x2mc/562h41292078791.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/11/t12920789933a9thfu2w03x2mc/562h41292078791.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/11/t12920789933a9thfu2w03x2mc/6gty61292078791.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/11/t12920789933a9thfu2w03x2mc/6gty61292078791.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/11/t12920789933a9thfu2w03x2mc/7w6ng1292078791.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/11/t12920789933a9thfu2w03x2mc/7w6ng1292078791.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/11/t12920789933a9thfu2w03x2mc/8w6ng1292078791.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/11/t12920789933a9thfu2w03x2mc/8w6ng1292078791.ps (open in new window)


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