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 08:57: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/t1258473497cgrbse54l6svaa5.htm/, Retrieved Tue, 17 Nov 2009 16:58:29 +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/t1258473497cgrbse54l6svaa5.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 «
403,5 0 395,1 395,3 403,3 0 403,5 395,1 405,7 0 403,3 403,5 406,7 0 405,7 403,3 407,2 0 406,7 405,7 412,4 0 407,2 406,7 415,9 0 412,4 407,2 414,0 0 415,9 412,4 411,8 0 414,0 415,9 409,9 0 411,8 414,0 412,4 0 409,9 411,8 415,9 0 412,4 409,9 416,3 0 415,9 412,4 417,2 0 416,3 415,9 421,8 0 417,2 416,3 421,4 0 421,8 417,2 415,1 0 421,4 421,8 412,4 0 415,1 421,4 411,8 0 412,4 415,1 408,8 0 411,8 412,4 404,5 0 408,8 411,8 402,5 0 404,5 408,8 409,4 0 402,5 404,5 410,7 0 409,4 402,5 413,4 0 410,7 409,4 415,2 0 413,4 410,7 417,7 0 415,2 413,4 417,8 0 417,7 415,2 417,9 0 417,8 417,7 418,4 0 417,9 417,8 418,2 0 418,4 417,9 416,6 0 418,2 418,4 418,9 0 416,6 418,2 421,0 0 418,9 416,6 423,5 0 421,0 418,9 432,3 0 423,5 421,0 432,3 0 432,3 423,5 428,6 0 432,3 432,3 426,7 0 428,6 432,3 427,3 0 426,7 428,6 428,5 0 427,3 426,7 437,0 0 428,5 427,3 442,0 0 437,0 428,5 444,9 0 442,0 437,0 441,4 0 444,9 442,0 440,3 0 441,4 444,9 447,1 0 440,3 441,4 455,3 0 447,1 440,3 478,6 0 455,3 44 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 time5 seconds
R Server'Gwilym Jenkins' @ 72.249.127.135


Multiple Linear Regression - Estimated Regression Equation
Y[t] = + 14.3225012216094 -3.18098980898201X[t] + 1.47915198643717Y1[t] -0.518658312352378Y2[t] + 0.133388825673378t + e[t]


Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STAT
H0: parameter = 0
2-tail p-value1-tail p-value
(Intercept)14.32250122160946.279132.2810.0244760.012238
X-3.180989808982013.248082-0.97930.3295590.164779
Y11.479151986437170.08156718.134300
Y2-0.5186583123523780.08114-6.392100
t0.1333888256733780.0653372.04150.043590.021795


Multiple Linear Regression - Regression Statistics
Multiple R0.997939861436151
R-squared0.995883967043205
Adjusted R-squared0.995734293117503
F-TEST (value)6653.69042987728
F-TEST (DF numerator)4
F-TEST (DF denominator)110
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation7.27669185542326
Sum Squared Residuals5824.52687946615


Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolation
Forecast
Residuals
Prediction Error
1403.5393.8432090157119.65679098428868
2403.3406.505206189928-3.2052061899278
3405.7401.9860347945543.71396520544628
4406.7405.7731200501470.926879949853032
5407.2406.1408809126121.05911908738821
6412.4406.4951874191515.9048125808486
7415.9414.0608374181221.83916258187818
8414416.674234972093-2.67423497209290
9411.8412.181930930302-0.381930930302359
10409.9410.046636179283-0.146636179283528
11412.4408.5106845179013.88931548209854
12415.9413.3274041031372.5725958968627
13416.3417.34117910046-1.04117910045979
14417.2416.2509246274750.949075372525225
15421.8417.5080869160014.29191308399942
16421.4423.978782398168-2.57878239816786
17415.1421.134682192445-6.03468219244532
18412.4412.1568768285060.243123171494364
19411.8411.5641026586190.235897341381475
20408.8412.210377735781-3.41037773578110
21404.5408.217505589554-3.71750558955441
22402.5403.546515810605-1.04651581060508
23409.4402.9518314065196.44816859348061
24410.7414.328685563314-3.62868556331393
25413.4412.8062296161240.59377038387574
26415.2416.25907299912-1.05907299911985
27417.7417.6545579570290.0454420429712915
28417.8420.552241786561-2.75224178656070
29417.9419.536900029997-1.63690002999694
30418.4419.766338223079-1.36633822307872
31418.2420.587437210735-2.38743721073546
32416.6420.165666482945-3.5656664829452
33418.9418.0361437927900.863856207210331
34421422.401435487032-1.40143548703223
35423.5424.448129365813-0.948129365813238
36432.3427.190215701645.10978429836047
37432.3439.043496227079-6.74349622707904
38428.6434.612691904051-6.01269190405147
39426.7429.273218379907-2.57321837990738
40427.3428.515254187054-1.21525418705385
41428.5430.521584998059-2.02158499805912
42437432.1187612200464.88123877995437
43442444.202551955612-2.20255195561208
44444.9447.323105058476-2.4231050584761
45441.4449.152743083055-7.75274308305534
46440.3442.604990850377-2.30499085037671
47447.1442.9266165842034.17338341579742
48455.3453.6887630612361.61123693876370
49478.6462.42432165169816.1756783483017
50486.5492.768953600068-6.26895360006813
51487.8492.502904440785-4.70290444078466
52485.9490.461790181243-4.56179018124263
53483.8487.110534426627-3.31053442662721
54488.4485.1231548742523.27684512574784
55494493.1498252934760.850174706523593
56493.6499.180637006377-5.580637006377
57487.3495.817878488302-8.51787848830223
58482.1486.840073124362-4.74007312436237
59484.2482.5494189883831.65058101161747
60496.8488.4860502098068.31394979019375
61501.1506.167571608648-5.06757160864796
62499.8506.126219240361-6.3262192403612
63495.5502.106479740551-6.60647974055103
64498.1496.5537708306031.54622916939735
65503.8502.7631855641281.03681443587206
66516.2509.9792291003776.22077089962308
67526.1525.4977501774630.602249822537321
68527.1533.843380595694-6.74338059569445
69525.1530.321204115516-5.22120411551647
70528.9526.9776306559631.92236934403682
71540.1533.7691136548026.33088634519757
72549548.4981031416330.501896858366855
73556555.9869715482510.0130284517494041
74568.9561.8583652990487.04163470095198
75589.1577.44220656329411.6577934367059
76590.3600.763773285653-10.4637732856527
77603.3592.19524658553211.1047534144675
78638.8610.93522126006627.8647787399338
79643656.835947543678-13.8359475436781
80656.7644.76940462387811.9305953761219
81656.1662.988810751861-6.8888107518608
82654.1655.129089506444-1.02908950644422
83659.9652.6153693466557.28463065334526
84662.1662.365156318368-0.265156318368306
85669.2662.744461302566.45553869744028
86673.1672.2387809447620.8612190552382
87678.3674.4583884998383.84161150016176
88677.4680.26060023681-2.86060023681051
89678.5676.3657290504582.1342709495419
90672.4678.59297754233-6.19297754232958
91665.3669.133015107149-3.83301510714862
92667.9661.9282405344685.97175946553243
93672.1669.589898542582.51010145742053
94662.5674.587214099173-12.0872140991728
95682.3658.3423789431723.9576210568306
96692.1692.742096898881-0.642096898881373
97702.7697.1017406070625.59825939293798
98721.4707.83128902791613.5687109720839
99733.2730.1270418890293.07295811097089
100747.7738.0155137136729.6844862863283
101737.6753.476438256926-15.8764382569259
102729.3731.149846490474-1.84984649047443
103706.1724.244722783478-18.1447227834782
104674.3694.366649516334-20.0666495163343
105659659.49587801988-0.495878019880785
106645.7653.491575785871-7.79157578587121
107646.1641.8877153709224.21228462907827
108633646.329930736475-13.3299307364746
109622.3626.87896521488-4.57896521488015
110628.2617.97985167749210.2201483225081
111637.3632.3898811653154.91011883468478
112639.6642.923469024688-3.32346902468752
113638.5641.73911677676-3.23911677675991
114650.5639.05252429894211.4474757010581
115655.4657.506261105449-2.10626110544889


Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
80.02297690076638640.04595380153277270.977023099233614
90.02433114960719240.04866229921438470.975668850392808
100.02909905405628450.0581981081125690.970900945943715
110.01060034753790320.02120069507580650.989399652462097
120.003821292397840470.007642584795680950.99617870760216
130.001256333490491510.002512666980983030.998743666509508
140.000381203176906390.000762406353812780.999618796823094
150.0002536671649788310.0005073343299576630.99974633283502
167.64227095512754e-050.0001528454191025510.999923577290449
170.0002002523561648350.000400504712329670.999799747643835
180.0001624485317416240.0003248970634832490.999837551468258
199.84752373237073e-050.0001969504746474150.999901524762676
208.99652214839157e-050.0001799304429678310.999910034778516
216.61173570651626e-050.0001322347141303250.999933882642935
222.51752830949185e-055.0350566189837e-050.999974824716905
235.44706700090183e-050.0001089413400180370.999945529329991
242.16351251372732e-054.32702502745463e-050.999978364874863
251.03419218973295e-052.06838437946589e-050.999989658078103
264.24381524605465e-068.4876304921093e-060.999995756184754
272.10813094042634e-064.21626188085268e-060.99999789186906
287.65125253933757e-071.53025050786751e-060.999999234874746
292.82221435008822e-075.64442870017644e-070.999999717778565
301.04818567692531e-072.09637135385062e-070.999999895181432
313.54645895210230e-087.09291790420461e-080.99999996453541
321.21691066237309e-082.43382132474618e-080.999999987830893
336.2125915281806e-091.24251830563612e-080.999999993787408
342.41285499992283e-094.82570999984566e-090.999999997587145
351.11039557073494e-092.22079114146989e-090.999999998889604
361.61868498973029e-083.23736997946058e-080.99999998381315
376.22498818298106e-091.24499763659621e-080.999999993775012
382.44082067697163e-094.88164135394326e-090.99999999755918
398.52322197621955e-101.70464439524391e-090.999999999147678
403.32368755954365e-106.6473751190873e-100.999999999667631
411.21441164808283e-102.42882329616565e-100.99999999987856
429.44681034775554e-101.88936206955111e-090.999999999055319
435.2037380313025e-101.0407476062605e-090.999999999479626
442.51296371783233e-105.02592743566465e-100.999999999748704
451.30371956793445e-102.60743913586890e-100.999999999869628
465.17031525165696e-111.03406305033139e-100.999999999948297
471.89534546738177e-103.79069093476353e-100.999999999810465
482.89059783341128e-105.78119566682257e-100.99999999971094
491.34192142431997e-062.68384284863993e-060.999998658078576
501.01417662179946e-062.02835324359892e-060.999998985823378
515.54431051498493e-071.10886210299699e-060.999999445568948
522.83409223541876e-075.66818447083752e-070.999999716590776
531.33436588711018e-072.66873177422035e-070.999999866563411
541.11393329866957e-072.22786659733914e-070.99999988860667
555.93153965102735e-081.18630793020547e-070.999999940684604
563.59740280617694e-087.19480561235387e-080.999999964025972
574.18304785857955e-088.3660957171591e-080.999999958169521
582.33944848220043e-084.67889696440087e-080.999999976605515
591.41177359104766e-082.82354718209531e-080.999999985882264
605.32745674252418e-081.06549134850484e-070.999999946725433
613.11310750371321e-086.22621500742642e-080.999999968868925
622.33839260360350e-084.67678520720700e-080.999999976616074
632.06878358325708e-084.13756716651416e-080.999999979312164
641.23615452939668e-082.47230905879335e-080.999999987638455
657.41913125898957e-091.48382625179791e-080.999999992580869
661.21255118451460e-082.42510236902919e-080.999999987874488
677.0187221479334e-091.40374442958668e-080.999999992981278
687.47232670782399e-091.49446534156480e-080.999999992527673
697.31919566791137e-091.46383913358227e-080.999999992680804
705.27021890098909e-091.05404378019782e-080.999999994729781
717.30962728519218e-091.46192545703844e-080.999999992690373
725.3258558927286e-091.06517117854572e-080.999999994674144
734.37293981294657e-098.74587962589314e-090.99999999562706
745.61944206535925e-091.12388841307185e-080.999999994380558
751.49598990829468e-082.99197981658937e-080.9999999850401
762.83961592242696e-075.67923184485392e-070.999999716038408
773.42152411152521e-076.84304822305042e-070.99999965784759
780.0001024142714518230.0002048285429036470.999897585728548
790.001679254122212610.003358508244425220.998320745877787
800.001398623099421740.002797246198843490.998601376900578
810.003150577704059780.006301155408119550.99684942229594
820.002792961221995790.005585922443991580.997207038778004
830.001873437466178660.003746874932357320.998126562533821
840.001391428290568820.002782856581137630.998608571709431
850.0008822912519918070.001764582503983610.999117708748008
860.0005589378488970.0011178756977940.999441062151103
870.0003251389599975480.0006502779199950970.999674861040002
880.0002573194623244910.0005146389246489830.999742680537675
890.00014606401306630.00029212802613260.999853935986934
900.0001889912600062130.0003779825200124260.999811008739994
910.0001862115810999810.0003724231621999610.9998137884189
920.0001008492200948990.0002016984401897990.999899150779905
935.91216598580282e-050.0001182433197160560.999940878340142
940.001650844616312830.003301689232625660.998349155383687
950.009942214852618840.01988442970523770.990057785147381
960.01415752502020650.02831505004041310.985842474979793
970.009648273723070080.01929654744614020.99035172627693
980.01226678371494480.02453356742988960.987733216285055
990.00778319753485610.01556639506971220.992216802465144
1000.07863660723030450.1572732144606090.921363392769695
1010.08006865782440580.1601373156488120.919931342175594
1020.5041311671984710.9917376656030590.495868832801529
1030.8472234522860710.3055530954278570.152776547713929
1040.8221473331599030.3557053336801950.177852666840097
1050.8991385194202070.2017229611595860.100861480579793
1060.8073661229113880.3852677541772240.192633877088612
1070.6573459888861920.6853080222276160.342654011113808


Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level830.83NOK
5% type I error level910.91NOK
10% type I error level920.92NOK
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2009/Nov/17/t1258473497cgrbse54l6svaa5/10vhw51258473450.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/17/t1258473497cgrbse54l6svaa5/10vhw51258473450.ps (open in new window)


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


http://www.freestatistics.org/blog/date/2009/Nov/17/t1258473497cgrbse54l6svaa5/23wx21258473450.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/17/t1258473497cgrbse54l6svaa5/23wx21258473450.ps (open in new window)


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


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


http://www.freestatistics.org/blog/date/2009/Nov/17/t1258473497cgrbse54l6svaa5/57a5j1258473450.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/17/t1258473497cgrbse54l6svaa5/57a5j1258473450.ps (open in new window)


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


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


http://www.freestatistics.org/blog/date/2009/Nov/17/t1258473497cgrbse54l6svaa5/89us11258473450.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/17/t1258473497cgrbse54l6svaa5/89us11258473450.ps (open in new window)


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