Home » date » 2009 » Nov » 17 »

ws3

*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, 17 Nov 2009 07:22:36 -0700
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2009/Nov/17/t1258468650y5zbytbt83k24f8.htm/, Retrieved Tue, 17 Nov 2009 15:37:42 +0100
 
BibTeX entries for LaTeX users:
@Manual{KEY,
    author = {{YOUR NAME}},
    publisher = {Office for Research Development and Education},
    title = {Statistical Computations at FreeStatistics.org, URL http://www.freestatistics.org/blog/date/2009/Nov/17/t1258468650y5zbytbt83k24f8.htm/},
    year = {2009},
}
@Manual{R,
    title = {R: A Language and Environment for Statistical Computing},
    author = {{R Development Core Team}},
    organization = {R Foundation for Statistical Computing},
    address = {Vienna, Austria},
    year = {2009},
    note = {{ISBN} 3-900051-07-0},
    url = {http://www.R-project.org},
}
 
Original text written by user:
 
IsPrivate?
No (this computation is public)
 
User-defined keywords:
 
Dataseries X:
» Textbox « » Textfile « » CSV «
395,3 0 395,1 0 403,5 0 403,3 0 405,7 0 406,7 0 407,2 0 412,4 0 415,9 0 414,0 0 411,8 0 409,9 0 412,4 0 415,9 0 416,3 0 417,2 0 421,8 0 421,4 0 415,1 0 412,4 0 411,8 0 408,8 0 404,5 0 402,5 0 409,4 0 410,7 0 413,4 0 415,2 0 417,7 0 417,8 0 417,9 0 418,4 0 418,2 0 416,6 0 418,9 0 421,0 0 423,5 0 432,3 0 432,3 0 428,6 0 426,7 0 427,3 0 428,5 0 437,0 0 442,0 0 444,9 0 441,4 0 440,3 0 447,1 0 455,3 0 478,6 0 486,5 0 487,8 0 485,9 0 483,8 0 488,4 0 494,0 0 493,6 0 487,3 0 482,1 0 484,2 0 496,8 0 501,1 0 499,8 0 495,5 0 498,1 0 503,8 0 516,2 0 526,1 0 527,1 0 525,1 0 528,9 0 540,1 0 549,0 0 556,0 0 568,9 0 589,1 0 590,3 0 603,3 0 638,8 0 643,0 0 656,7 0 656,1 0 654,1 0 659,9 0 662,1 0 669,2 0 673,1 0 678,3 0 677,4 0 678,5 0 672,4 0 665,3 0 667,9 0 672,1 0 662,5 0 682,3 0 692,1 0 702,7 0 721,4 0 733,2 0 747,7 0 737,6 0 729,3 0 706,1 0 674,3 0 659,0 0 645,7 0 646,1 0 633,0 1 622,3 1 628,2 1 637,3 1 639,6 1 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'Gwilym Jenkins' @ 72.249.127.135


Multiple Linear Regression - Estimated Regression Equation
Y[t] = + 516.289908256881 + 121.810091743119X[t] + e[t]


Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STAT
H0: parameter = 0
2-tail p-value1-tail p-value
(Intercept)516.28990825688110.33379349.961300
X121.81009174311939.5191583.08230.0025710.001286


Multiple Linear Regression - Regression Statistics
Multiple R0.276242092860516
R-squared0.076309693867958
Adjusted R-squared0.0682776042494186
F-TEST (value)9.50060289315269
F-TEST (DF numerator)1
F-TEST (DF denominator)115
p-value0.00257126214987702
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation107.887964388953
Sum Squared Residuals1338578.47889908


Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolation
Forecast
Residuals
Prediction Error
1395.3516.289908256882-120.989908256882
2395.1516.289908256881-121.189908256881
3403.5516.289908256881-112.789908256881
4403.3516.289908256881-112.989908256881
5405.7516.289908256881-110.589908256881
6406.7516.289908256881-109.589908256881
7407.2516.289908256881-109.089908256881
8412.4516.289908256881-103.889908256881
9415.9516.289908256881-100.389908256881
10414516.289908256881-102.289908256881
11411.8516.289908256881-104.489908256881
12409.9516.289908256881-106.389908256881
13412.4516.289908256881-103.889908256881
14415.9516.289908256881-100.389908256881
15416.3516.289908256881-99.9899082568807
16417.2516.289908256881-99.0899082568807
17421.8516.289908256881-94.4899082568807
18421.4516.289908256881-94.8899082568807
19415.1516.289908256881-101.189908256881
20412.4516.289908256881-103.889908256881
21411.8516.289908256881-104.489908256881
22408.8516.289908256881-107.489908256881
23404.5516.289908256881-111.789908256881
24402.5516.289908256881-113.789908256881
25409.4516.289908256881-106.889908256881
26410.7516.289908256881-105.589908256881
27413.4516.289908256881-102.889908256881
28415.2516.289908256881-101.089908256881
29417.7516.289908256881-98.5899082568807
30417.8516.289908256881-98.4899082568807
31417.9516.289908256881-98.3899082568807
32418.4516.289908256881-97.8899082568807
33418.2516.289908256881-98.0899082568807
34416.6516.289908256881-99.6899082568807
35418.9516.289908256881-97.3899082568807
36421516.289908256881-95.2899082568807
37423.5516.289908256881-92.7899082568807
38432.3516.289908256881-83.9899082568807
39432.3516.289908256881-83.9899082568807
40428.6516.289908256881-87.6899082568807
41426.7516.289908256881-89.5899082568807
42427.3516.289908256881-88.9899082568807
43428.5516.289908256881-87.7899082568807
44437516.289908256881-79.2899082568807
45442516.289908256881-74.2899082568807
46444.9516.289908256881-71.3899082568807
47441.4516.289908256881-74.8899082568807
48440.3516.289908256881-75.9899082568807
49447.1516.289908256881-69.1899082568807
50455.3516.289908256881-60.9899082568807
51478.6516.289908256881-37.6899082568807
52486.5516.289908256881-29.7899082568807
53487.8516.289908256881-28.4899082568807
54485.9516.289908256881-30.3899082568808
55483.8516.289908256881-32.4899082568807
56488.4516.289908256881-27.8899082568808
57494516.289908256881-22.2899082568807
58493.6516.289908256881-22.6899082568807
59487.3516.289908256881-28.9899082568807
60482.1516.289908256881-34.1899082568807
61484.2516.289908256881-32.0899082568807
62496.8516.289908256881-19.4899082568807
63501.1516.289908256881-15.1899082568807
64499.8516.289908256881-16.4899082568807
65495.5516.289908256881-20.7899082568807
66498.1516.289908256881-18.1899082568807
67503.8516.289908256881-12.4899082568807
68516.2516.289908256881-0.0899082568806833
69526.1516.2899082568819.8100917431193
70527.1516.28990825688110.8100917431193
71525.1516.2899082568818.8100917431193
72528.9516.28990825688112.6100917431192
73540.1516.28990825688123.8100917431193
74549516.28990825688132.7100917431193
75556516.28990825688139.7100917431193
76568.9516.28990825688152.6100917431192
77589.1516.28990825688172.8100917431193
78590.3516.28990825688174.0100917431192
79603.3516.28990825688187.0100917431192
80638.8516.289908256881122.510091743119
81643516.289908256881126.710091743119
82656.7516.289908256881140.410091743119
83656.1516.289908256881139.810091743119
84654.1516.289908256881137.810091743119
85659.9516.289908256881143.610091743119
86662.1516.289908256881145.810091743119
87669.2516.289908256881152.910091743119
88673.1516.289908256881156.810091743119
89678.3516.289908256881162.010091743119
90677.4516.289908256881161.110091743119
91678.5516.289908256881162.210091743119
92672.4516.289908256881156.110091743119
93665.3516.289908256881149.010091743119
94667.9516.289908256881151.610091743119
95672.1516.289908256881155.810091743119
96662.5516.289908256881146.210091743119
97682.3516.289908256881166.010091743119
98692.1516.289908256881175.810091743119
99702.7516.289908256881186.410091743119
100721.4516.289908256881205.110091743119
101733.2516.289908256881216.910091743119
102747.7516.289908256881231.410091743119
103737.6516.289908256881221.310091743119
104729.3516.289908256881213.010091743119
105706.1516.289908256881189.810091743119
106674.3516.289908256881158.010091743119
107659516.289908256881142.710091743119
108645.7516.289908256881129.410091743119
109646.1516.289908256881129.810091743119
110633638.1-5.09999999999999
111622.3638.1-15.8000000000000
112628.2638.1-9.89999999999995
113637.3638.1-0.80000000000004
114639.6638.11.50000000000003
115638.5638.10.400000000000006
116650.5638.112.4
117655.4638.117.3


Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
50.0002158546766235020.0004317093532470050.999784145323376
61.64807411532695e-053.29614823065390e-050.999983519258847
71.21591717907825e-062.43183435815651e-060.99999878408282
82.13637548064001e-074.27275096128003e-070.999999786362452
95.31805738106365e-081.06361147621273e-070.999999946819426
106.89822643182639e-091.37964528636528e-080.999999993101774
116.27107798508578e-101.25421559701716e-090.999999999372892
124.68168980977308e-119.36337961954617e-110.999999999953183
134.184376634378e-128.368753268756e-120.999999999995816
145.75403257940686e-131.15080651588137e-120.999999999999425
157.69772821937148e-141.53954564387430e-130.999999999999923
161.09489170470793e-142.18978340941586e-140.99999999999999
173.22872443093611e-156.45744886187222e-150.999999999999997
187.18917829030674e-161.43783565806135e-151
196.88014452965067e-171.37602890593013e-161
205.67716850457109e-181.13543370091422e-171
214.57214132233776e-199.14428264467551e-191
223.76449677491932e-207.52899354983863e-201
234.29966457470694e-218.59932914941388e-211
246.32171994565715e-221.26434398913143e-211
255.25674342644445e-231.05134868528889e-221
264.36955144606109e-248.73910289212219e-241
274.04685621221371e-258.09371242442741e-251
284.38652391470248e-268.77304782940496e-261
296.54117706638642e-271.30823541327728e-261
309.80204016986107e-281.96040803397221e-271
311.48339429083147e-282.96678858166293e-281
322.41312040807779e-294.82624081615557e-291
333.82344056394588e-307.64688112789176e-301
345.0641019737419e-311.01282039474838e-301
359.14561919695966e-321.82912383939193e-311
362.35933833103317e-324.71867666206634e-321
379.88292578396888e-331.97658515679378e-321
384.12243261655865e-328.2448652331173e-321
399.99167652199906e-321.99833530439981e-311
407.6437757575562e-321.52875515151124e-311
413.92200798148844e-327.84401596297689e-321
422.2122950652129e-324.4245901304258e-321
431.51863872100385e-323.03727744200770e-321
445.46334847562186e-321.09266969512437e-311
454.56286983617537e-319.12573967235074e-311
464.5175481725295e-309.035096345059e-301
471.51201424132605e-293.02402848265211e-291
483.74106555839698e-297.48213111679395e-291
492.48005158493425e-284.96010316986849e-281
505.15622022793929e-271.03124404558786e-261
515.01838327639068e-241.00367665527814e-231
522.40016230937660e-214.80032461875321e-211
532.51679643232849e-195.03359286465697e-191
547.68673778369329e-181.53734755673866e-171
551.11031770672159e-162.22063541344317e-161
561.59613808529198e-153.19227617058397e-150.999999999999998
572.37169437235536e-144.74338874471072e-140.999999999999976
582.46223930794818e-134.92447861589637e-130.999999999999754
591.56952528541959e-123.13905057083918e-120.99999999999843
608.08397132030437e-121.61679426406087e-110.999999999991916
614.57055532653194e-119.14111065306389e-110.999999999954294
623.68943325095777e-107.37886650191554e-100.999999999631057
633.09776467556148e-096.19552935112296e-090.999999996902235
642.35530616060263e-084.71061232120526e-080.999999976446938
651.68543352411099e-073.37086704822198e-070.999999831456648
661.30306132460379e-062.60612264920757e-060.999998696938675
671.08160935530978e-052.16321871061955e-050.999989183906447
689.2414117118286e-050.0001848282342365720.999907585882882
690.0007159134918606450.001431826983721290.99928408650814
700.004560523739077730.009121047478155460.995439476260922
710.02431357858818950.04862715717637890.97568642141181
720.1030091387908980.2060182775817960.896990861209102
730.3056272131263410.6112544262526820.694372786873659
740.6154870165245330.7690259669509340.384512983475467
750.8745634625075070.2508730749849850.125436537492493
760.9773306388088230.04533872238235450.0226693611911772
770.9970278646436280.005944270712744330.00297213535637217
780.9997919497387260.0004161005225489550.000208050261274477
790.9999881333378312.37333243371322e-051.18666621685661e-05
800.9999981509646263.69807074837933e-061.84903537418967e-06
810.999999622940597.54118818990046e-073.77059409495023e-07
820.9999998772144272.45571145520027e-071.22785572760013e-07
830.9999999500473729.99052561396703e-084.99526280698351e-08
840.9999999768157324.63685362009822e-082.31842681004911e-08
850.9999999859153752.81692497392974e-081.40846248696487e-08
860.9999999897589942.04820118193421e-081.02410059096711e-08
870.9999999904905121.90189751493123e-089.50948757465615e-09
880.9999999895393832.09212334751242e-081.04606167375621e-08
890.999999986600592.67988202275636e-081.33994101137818e-08
900.9999999810587543.78824925947177e-081.89412462973589e-08
910.9999999706124155.8775169801245e-082.93875849006225e-08
920.9999999541744649.16510728957403e-084.58255364478701e-08
930.9999999352620351.29475929580598e-076.47379647902991e-08
940.9999999013116451.97376709766211e-079.86883548831053e-08
950.999999832675393.34649220093995e-071.67324610046998e-07
960.9999997842865044.31426992885191e-072.15713496442595e-07
970.9999995540526468.91894708227204e-074.45947354113602e-07
980.9999989605819532.07883609450927e-061.03941804725464e-06
990.999997512967964.97406408124844e-062.48703204062422e-06
1000.9999953750401329.249919735495e-064.6249598677475e-06
1010.9999942362413541.15275172920555e-055.76375864602777e-06
1020.9999975721161194.85576776256499e-062.42788388128250e-06
1030.999999188236151.6235276980218e-068.117638490109e-07
1040.9999999196867621.60626476200699e-078.03132381003495e-08
1050.999999994502751.09945003912364e-085.49725019561818e-09
1060.9999999909941741.80116518479478e-089.00582592397388e-09
1070.9999999435052761.12989448670926e-075.64947243354631e-08
1080.9999993890509321.22189813673235e-066.10949068366174e-07
1090.9999937306312051.2538737589268e-056.269368794634e-06
1100.9999430266416260.0001139467167480025.69733583740012e-05
1110.9998068741381930.0003862517236142040.000193125861807102
1120.9991378857167480.001724228566503560.000862114283251778


Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level1020.944444444444444NOK
5% type I error level1040.962962962962963NOK
10% type I error level1040.962962962962963NOK
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2009/Nov/17/t1258468650y5zbytbt83k24f8/10tnxt1258467749.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/17/t1258468650y5zbytbt83k24f8/10tnxt1258467749.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Nov/17/t1258468650y5zbytbt83k24f8/1y3fd1258467749.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/17/t1258468650y5zbytbt83k24f8/1y3fd1258467749.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Nov/17/t1258468650y5zbytbt83k24f8/2pqwk1258467749.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/17/t1258468650y5zbytbt83k24f8/2pqwk1258467749.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Nov/17/t1258468650y5zbytbt83k24f8/3ikwp1258467749.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/17/t1258468650y5zbytbt83k24f8/3ikwp1258467749.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Nov/17/t1258468650y5zbytbt83k24f8/4m4ow1258467749.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/17/t1258468650y5zbytbt83k24f8/4m4ow1258467749.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Nov/17/t1258468650y5zbytbt83k24f8/5vgb71258467749.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/17/t1258468650y5zbytbt83k24f8/5vgb71258467749.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Nov/17/t1258468650y5zbytbt83k24f8/6se6p1258467749.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/17/t1258468650y5zbytbt83k24f8/6se6p1258467749.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Nov/17/t1258468650y5zbytbt83k24f8/7egek1258467749.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/17/t1258468650y5zbytbt83k24f8/7egek1258467749.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Nov/17/t1258468650y5zbytbt83k24f8/839k81258467749.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/17/t1258468650y5zbytbt83k24f8/839k81258467749.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Nov/17/t1258468650y5zbytbt83k24f8/9o9t61258467749.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/17/t1258468650y5zbytbt83k24f8/9o9t61258467749.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