Home » date » 2008 » Nov » 27 »

seabelt law Q3.1

*Unverified author*
R Software Module: rwasp_multipleregression.wasp (opens new window with default values)
Title produced by software: Multiple Regression
Date of computation: Thu, 27 Nov 2008 05:49:31 -0700
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2008/Nov/27/t12277903850ob73t8my68w6mb.htm/, Retrieved Thu, 27 Nov 2008 12:53:05 +0000
 
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/2008/Nov/27/t12277903850ob73t8my68w6mb.htm/},
    year = {2008},
}
@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 = {2008},
    note = {{ISBN} 3-900051-07-0},
    url = {http://www.R-project.org},
}
 
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
 
Feedback Forum:

Post a new message
 
Original text written by user:
 
IsPrivate?
No (this computation is public)
 
User-defined keywords:
Severijns Britt
 
Dataseries X:
» Textbox « » Textfile « » CSV «
492865 0 480961 0 461935 0 456608 0 441977 0 439148 0 488180 0 520564 0 501492 0 485025 0 464196 0 460170 0 467037 0 460070 0 447988 0 442867 0 436087 0 431328 0 484015 0 509673 0 512927 0 502831 0 470984 0 471067 0 476049 0 474605 0 470439 0 461251 0 454724 0 455626 0 516847 0 525192 0 522975 0 518585 0 509239 0 512238 0 519164 0 517009 0 509933 0 509127 0 500857 0 506971 0 569323 0 579714 0 577992 0 565464 0 547344 0 554788 0 562325 0 560854 0 555332 0 543599 0 536662 0 542722 1 593530 1 610763 1 612613 1 611324 1 594167 1 595454 1 590865 1 589379 1 584428 1 573100 1 567456 1 569028 1 620735 1 628884 1 628232 1 612117 1 595404 1 597141 1 593408 1 590072 1 579799 1 574205 1 572775 1 572942 1 619567 1 625809 1 619916 1 587625 1 565742 1 557274 1 560576 1 548854 0 531673 0 525919 0 511038 0 498662 0 555362 0 564591 0 541657 0 527070 0 509846 0 514258 0 516922 0 507561 0 492622 0 490243 0 469357 0 477580 0 528379 0 533590 0
 
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'Sir Ronald Aylmer Fisher' @ 193.190.124.24


Multiple Linear Regression - Estimated Regression Equation
W[t] = + 504019.541666667 + 87763.3333333333D[t] + e[t]


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


Multiple Linear Regression - Regression Statistics
Multiple R0.768758533580744
R-squared0.590989682953217
Adjusted R-squared0.58697977788413
F-TEST (value)147.382462370339
F-TEST (DF numerator)1
F-TEST (DF denominator)102
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation34026.3036590776
Sum Squared Residuals118094512751.375


Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolation
Forecast
Residuals
Prediction Error
1492865504019.541666666-11154.5416666661
2480961504019.541666667-23058.5416666666
3461935504019.541666667-42084.5416666667
4456608504019.541666667-47411.5416666667
5441977504019.541666667-62042.5416666667
6439148504019.541666667-64871.5416666667
7488180504019.541666667-15839.5416666667
8520564504019.54166666716544.4583333333
9501492504019.541666667-2527.54166666668
10485025504019.541666667-18994.5416666667
11464196504019.541666667-39823.5416666667
12460170504019.541666667-43849.5416666667
13467037504019.541666667-36982.5416666667
14460070504019.541666667-43949.5416666667
15447988504019.541666667-56031.5416666667
16442867504019.541666667-61152.5416666667
17436087504019.541666667-67932.5416666667
18431328504019.541666667-72691.5416666667
19484015504019.541666667-20004.5416666667
20509673504019.5416666675653.45833333332
21512927504019.5416666678907.45833333332
22502831504019.541666667-1188.54166666668
23470984504019.541666667-33035.5416666667
24471067504019.541666667-32952.5416666667
25476049504019.541666667-27970.5416666667
26474605504019.541666667-29414.5416666667
27470439504019.541666667-33580.5416666667
28461251504019.541666667-42768.5416666667
29454724504019.541666667-49295.5416666667
30455626504019.541666667-48393.5416666667
31516847504019.54166666712827.4583333333
32525192504019.54166666721172.4583333333
33522975504019.54166666718955.4583333333
34518585504019.54166666714565.4583333333
35509239504019.5416666675219.45833333332
36512238504019.5416666678218.45833333332
37519164504019.54166666715144.4583333333
38517009504019.54166666712989.4583333333
39509933504019.5416666675913.45833333332
40509127504019.5416666675107.45833333332
41500857504019.541666667-3162.54166666668
42506971504019.5416666672951.45833333332
43569323504019.54166666765303.4583333333
44579714504019.54166666775694.4583333333
45577992504019.54166666773972.4583333333
46565464504019.54166666761444.4583333333
47547344504019.54166666743324.4583333333
48554788504019.54166666750768.4583333333
49562325504019.54166666758305.4583333333
50560854504019.54166666756834.4583333333
51555332504019.54166666751312.4583333333
52543599504019.54166666739579.4583333333
53536662504019.54166666732642.4583333333
54542722591782.875-49060.875
55593530591782.8751747.12500000000
56610763591782.87518980.125
57612613591782.87520830.125
58611324591782.87519541.125
59594167591782.8752384.125
60595454591782.8753671.125
61590865591782.875-917.875000000006
62589379591782.875-2403.87500000001
63584428591782.875-7354.875
64573100591782.875-18682.875
65567456591782.875-24326.875
66569028591782.875-22754.875
67620735591782.87528952.125
68628884591782.87537101.125
69628232591782.87536449.125
70612117591782.87520334.125
71595404591782.8753621.125
72597141591782.8755358.125
73593408591782.8751625.12500000000
74590072591782.875-1710.87500000001
75579799591782.875-11983.875
76574205591782.875-17577.875
77572775591782.875-19007.875
78572942591782.875-18840.875
79619567591782.87527784.125
80625809591782.87534026.125
81619916591782.87528133.125
82587625591782.875-4157.87500000001
83565742591782.875-26040.875
84557274591782.875-34508.875
85560576591782.875-31206.875
86548854504019.54166666744834.4583333333
87531673504019.54166666727653.4583333333
88525919504019.54166666721899.4583333333
89511038504019.5416666677018.45833333332
90498662504019.541666667-5357.54166666668
91555362504019.54166666751342.4583333333
92564591504019.54166666760571.4583333333
93541657504019.54166666737637.4583333333
94527070504019.54166666723050.4583333333
95509846504019.5416666675826.45833333332
96514258504019.54166666710238.4583333333
97516922504019.54166666712902.4583333333
98507561504019.5416666673541.45833333332
99492622504019.541666667-11397.5416666667
100490243504019.541666667-13776.5416666667
101469357504019.541666667-34662.5416666667
102477580504019.541666667-26439.5416666667
103528379504019.54166666724359.4583333333
104533590504019.54166666729570.4583333333


Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
50.3040112957682590.6080225915365180.695988704231741
60.2790810173521140.5581620347042270.720918982647886
70.2385420341267820.4770840682535650.761457965873218
80.4444021056854190.8888042113708380.555597894314581
90.4035299996744030.8070599993488070.596470000325597
100.3063742391912270.6127484783824540.693625760808773
110.2391375301997500.4782750603994990.76086246980025
120.1925685899473680.3851371798947370.807431410052632
130.1415591243850600.2831182487701190.85844087561494
140.1118107178782710.2236214357565410.88818928212173
150.1143359662284580.2286719324569150.885664033771542
160.1333100132974070.2666200265948130.866689986702593
170.1849599388821650.369919877764330.815040061117835
180.2788306700993410.5576613401986830.721169329900659
190.2501599481297550.500319896259510.749840051870245
200.3148268755859890.6296537511719780.685173124414011
210.3800540710567240.7601081421134480.619945928943276
220.3813470508394390.7626941016788780.618652949160561
230.3473500420663470.6947000841326950.652649957933653
240.3183441919722880.6366883839445760.681655808027712
250.2881961290893330.5763922581786670.711803870910667
260.2642345112209580.5284690224419160.735765488779042
270.2515239263471330.5030478526942670.748476073652867
280.2698317515234670.5396635030469330.730168248476533
290.3303264566042550.6606529132085110.669673543395745
300.4106263746748240.8212527493496470.589373625325176
310.5010978837779160.9978042324441690.498902116222084
320.6165420793691540.7669158412616920.383457920630846
330.6888641917955040.6222716164089910.311135808204496
340.7248912363340480.5502175273319050.275108763665952
350.729288584466640.541422831066720.27071141553336
360.7359934332060310.5280131335879380.264006566793969
370.7535486850544780.4929026298910450.246451314945522
380.7607571362406340.4784857275187330.239242863759366
390.754583349486670.490833301026660.24541665051333
400.7466014870694910.5067970258610180.253398512930509
410.7370267909101530.5259464181796940.262973209089847
420.7282284068030240.5435431863939510.271771593196976
430.8997013336827520.2005973326344950.100298666317248
440.9795335618153050.04093287636939070.0204664381846954
450.9961140964392250.007771807121550460.00388590356077523
460.998610849311490.002778301377018700.00138915068850935
470.9988899377760930.002220124447814710.00111006222390736
480.9993085025450080.001382994909983830.000691497454991916
490.999695869830820.0006082603383604120.000304130169180206
500.9998594982823560.0002810034352884540.000140501717644227
510.9999161860134230.0001676279731532818.38139865766405e-05
520.999917646515080.0001647069698405138.23534849202567e-05
530.9998987497360080.0002025005279838340.000101250263991917
540.999946456754910.0001070864901810245.35432450905122e-05
550.999919849843730.0001603003125413318.01501562706656e-05
560.9998966900603250.0002066198793507980.000103309939675399
570.9998633191891940.0002733616216116550.000136680810805828
580.9998096108872010.0003807782255970160.000190389112798508
590.9996680483753040.0006639032493916320.000331951624695816
600.9994348443712580.001130311257484460.00056515562874223
610.9990488214553570.001902357089286120.000951178544643061
620.9984328528783070.003134294243385260.00156714712169263
630.9975257375643130.004948524871373920.00247426243568696
640.9966835160965060.006632967806987520.00331648390349376
650.9961269136610520.00774617267789650.00387308633894825
660.9954026541442820.009194691711435320.00459734585571766
670.9950505057661520.009898988467696840.00494949423384842
680.9960465587951510.007906882409697440.00395344120484872
690.997011141032780.005977717934438720.00298885896721936
700.9963572932336920.007285413532616330.00364270676630817
710.9943003194017030.01139936119659350.00569968059829676
720.9914074368775170.01718512624496630.00859256312248317
730.9869691128636190.02606177427276200.0130308871363810
740.9803809068512040.03923818629759220.0196190931487961
750.9715280196764950.05694396064701030.0284719803235051
760.9613481420022850.0773037159954290.0386518579977145
770.9495228020083220.1009543959833570.0504771979916783
780.9357079384244040.1285841231511930.0642920615755964
790.9349641426887640.1300717146224720.0650358573112358
800.9533173399920140.0933653200159730.0466826600079865
810.972112326051430.05577534789713810.0278876739485691
820.966193403955060.0676131920898810.0338065960449405
830.9514145203186480.0971709593627040.048585479681352
840.9321859446740670.1356281106518660.067814055325933
850.9054879647016060.1890240705967880.0945120352983942
860.913283455316650.1734330893666980.0867165446833492
870.8888004728909180.2223990542181640.111199527109082
880.8505528583390770.2988942833218450.149447141660923
890.794095624696810.4118087506063790.205904375303189
900.7425826285995610.5148347428008780.257417371400439
910.7946692804814150.410661439037170.205330719518585
920.91529451279530.1694109744093990.0847054872046993
930.9322445146005370.1355109707989260.067755485399463
940.9157799802802790.1684400394394420.084220019719721
950.8596110805624530.2807778388750940.140388919437547
960.7872347990719580.4255304018560830.212765200928042
970.7037923519699820.5924152960600350.296207648030018
980.5688622766428590.8622754467142810.431137723357141
990.4056528005104380.8113056010208750.594347199489562


Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level260.273684210526316NOK
5% type I error level310.326315789473684NOK
10% type I error level370.389473684210526NOK
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/27/t12277903850ob73t8my68w6mb/10gpmf1227790160.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/27/t12277903850ob73t8my68w6mb/10gpmf1227790160.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/27/t12277903850ob73t8my68w6mb/1sizo1227790159.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/27/t12277903850ob73t8my68w6mb/1sizo1227790159.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/27/t12277903850ob73t8my68w6mb/2d83y1227790159.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/27/t12277903850ob73t8my68w6mb/2d83y1227790159.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/27/t12277903850ob73t8my68w6mb/3pj4s1227790159.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/27/t12277903850ob73t8my68w6mb/3pj4s1227790159.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/27/t12277903850ob73t8my68w6mb/4elnv1227790159.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/27/t12277903850ob73t8my68w6mb/4elnv1227790159.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/27/t12277903850ob73t8my68w6mb/5bphk1227790159.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/27/t12277903850ob73t8my68w6mb/5bphk1227790159.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/27/t12277903850ob73t8my68w6mb/6hj1z1227790159.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/27/t12277903850ob73t8my68w6mb/6hj1z1227790159.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/27/t12277903850ob73t8my68w6mb/7f3c61227790159.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/27/t12277903850ob73t8my68w6mb/7f3c61227790159.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/27/t12277903850ob73t8my68w6mb/8jr6z1227790160.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/27/t12277903850ob73t8my68w6mb/8jr6z1227790160.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/27/t12277903850ob73t8my68w6mb/916ez1227790160.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/27/t12277903850ob73t8my68w6mb/916ez1227790160.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