Home » date » 2008 » Nov » 27 »

seabelt law Q3.2

*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 06:05:29 -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/t12277917862xht04dub09jdy8.htm/, Retrieved Thu, 27 Nov 2008 13:16:26 +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/t12277917862xht04dub09jdy8.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 time9 seconds
R Server'Herman Ole Andreas Wold' @ 193.190.124.10:1001


Multiple Linear Regression - Estimated Regression Equation
W[t] = + 477621.443604266 + 72190.5134428678D[t] + 3835.02730592134M1[t] + 5797.27206152402M2[t] -5302.76245430301M3[t] -12182.1303034634M4[t] -22256.6092637348M5[t] -30456.7008287694M6[t] + 22570.709099848M7[t] + 35699.3412506877M8[t] + 33488.1868808144M9[t] + 19497.3329205429M10[t] -163.021039728533M11[t] + 520.478960271469t + e[t]


Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STAT
H0: parameter = 0
2-tail p-value1-tail p-value
(Intercept)477621.4436042669883.83217548.323500
D72190.51344286785794.28158912.458900
M13835.0273059213412148.8764830.31570.7529840.376492
M25797.2720615240212169.3756340.47640.6349570.317478
M3-5302.7624543030112169.56699-0.43570.6640690.332034
M4-12182.130303463412170.400547-1.0010.3195280.159764
M5-22256.609263734812171.876172-1.82850.0707830.035391
M6-30456.700828769412144.165812-2.50790.0139370.006968
M722570.70909984812145.1541761.85840.0663790.03319
M835699.341250687712146.7859112.9390.0041830.002092
M933488.186880814412496.5886112.67980.008760.00438
M1019497.332920542912495.0249531.56040.1221730.061087
M11-163.02103972853312494.086665-0.0130.9896180.494809
t520.47896027146988.4062515.887400


Multiple Linear Regression - Regression Statistics
Multiple R0.897427950099305
R-squared0.805376925619441
Adjusted R-squared0.777264703764472
F-TEST (value)28.6486400745685
F-TEST (DF numerator)13
F-TEST (DF denominator)90
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation24987.5477726451
Sum Squared Residuals56193978932.1201


Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolation
Forecast
Residuals
Prediction Error
1492865481976.94987045710888.0501295426
2480961484459.673586332-3498.6735863321
3461935473880.118030777-11945.1180307766
4456608467521.229141888-10913.2291418877
5441977457967.229141888-15990.2291418877
6439148450287.616537125-11139.6165371246
7488180503835.505426014-15655.5054260135
8520564517484.6165371253079.38346287537
9501492515793.941127523-14301.9411275228
10485025502323.566127523-17298.5661275229
11464196483183.691127523-18987.6911275229
12460170483867.191127523-23697.1911275229
13467037488222.697393716-21185.6973937157
14460070490705.42110959-30635.4211095898
15447988480125.865554034-32137.8655540343
16442867473766.976665145-30899.9766651454
17436087464212.976665145-28125.9766651454
18431328456533.364060382-25205.3640603823
19484015510081.252949271-26066.2529492712
20509673523730.364060382-14057.3640603823
21512927522039.68865078-9112.68865078049
22502831508569.31365078-5738.31365078048
23470984489429.43865078-18445.4386507805
24471067490112.93865078-19045.9386507805
25476049494468.444916973-18419.4449169733
26474605496951.168632847-22346.1686328475
27470439486371.613077292-15932.6130772919
28461251480012.724188403-18761.724188403
29454724470458.724188403-15734.724188403
30455626462779.11158364-7153.1115836399
31516847516327.000472529519.9995274712
32525192529976.11158364-4784.11158363991
33522975528285.436174038-5310.43617403812
34518585514815.0611740383769.93882596189
35509239495675.18617403813563.8138259619
36512238496358.68617403815879.3138259619
37519164500714.19244023118449.8075597691
38517009503196.91615610513812.0838438949
39509933492617.36060054917315.6393994505
40509127486258.47171166122868.5282883394
41500857476704.47171166124152.5282883394
42506971469024.85910689837946.1408931024
43569323522572.74799578646750.2520042135
44579714536221.85910689843492.1408931024
45577992534531.18369729643460.8163027042
46565464521060.80869729644403.1913027042
47547344501920.93369729645423.0663027043
48554788502604.43369729652183.5663027042
49562325506959.93996348955365.0600365114
50560854509442.66367936351411.3363206373
51555332498863.10812380756468.8918761928
52543599492504.21923491851094.7807650817
53536662482950.21923491853711.7807650817
54542722547461.120073023-4739.12007302299
55593530601009.008961912-7479.00896191187
56610763614658.120073023-3895.12007302298
57612613612967.444663421-354.444663421198
58611324599497.06966342111826.9303365788
59594167580357.19466342113809.8053365788
60595454581040.69466342114413.3053365788
61590865585396.2009296145468.79907038598
62589379587878.9246454881500.07535451183
63584428577299.3690899337128.6309100674
64573100570940.4802010442159.51979895629
65567456561386.4802010446069.51979895629
66569028553706.86759628115321.1324037194
67620735607254.7564851713480.2435148305
68628884620903.8675962817980.13240371939
69628232619213.1921866799018.80781332117
70612117605742.8171866796374.18281332118
71595404586602.9421866798801.05781332117
72597141587286.4421866799854.55781332117
73593408591641.9484528721766.05154712835
74590072594124.672168746-4052.6721687458
75579799583545.11661319-3746.11661319024
76574205577186.227724301-2981.22772430134
77572775567632.2277243015142.77227569865
78572942559952.61511953812989.3848804617
79619567613500.5040084276066.49599157287
80625809627149.615119538-1340.61511953825
81619916625458.939709937-5542.93970993646
82587625611988.564709937-24363.5647099365
83565742592848.689709937-27106.6897099365
84557274593532.189709937-36258.1897099365
85560576597887.695976129-37311.6959761293
86548854528179.90624913620674.0937508644
87531673517600.3506935814072.6493064199
88525919511241.46180469114677.5381953088
89511038501687.4618046919350.53819530884
90498662494007.8491999284654.15080007194
91555362547555.7380888177806.26191118304
92564591561204.8491999283386.15080007192
93541657559514.173790326-17857.1737903263
94527070546043.798790326-18973.7987903263
95509846526903.923790326-17057.9237903263
96514258527587.423790326-13329.4237903263
97516922531942.930056519-15020.9300565191
98507561534425.653772393-26864.6537723932
99492622523846.098216838-31224.0982168377
100490243517487.209327949-27244.2093279488
101469357507933.209327949-38576.2093279488
102477580500253.596723186-22673.5967231857
103528379553801.485612075-25422.4856120746
104533590567450.596723186-33860.5967231857


Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
170.02074818723032120.04149637446064230.979251812769679
180.006812322565405940.01362464513081190.993187677434594
190.003076754342945580.006153508685891160.996923245657054
200.0007494608073744770.001498921614748950.999250539192626
210.002742657103202510.005485314206405020.997257342896797
220.006555134365557510.01311026873111500.993444865634442
230.004333847699465630.008667695398931260.995666152300534
240.003623396903077410.007246793806154810.996376603096923
250.001849554895379490.003699109790758970.99815044510462
260.001415467157449730.002830934314899460.99858453284255
270.002262672952972560.004525345905945120.997737327047027
280.002507187996814120.005014375993628230.997492812003186
290.003579288517409560.007158577034819110.99642071148259
300.005788794156884820.01157758831376960.994211205843115
310.01577588557031390.03155177114062780.984224114429686
320.01551198936908620.03102397873817230.984488010630914
330.01926985818098090.03853971636196190.98073014181902
340.02865500057663020.05731000115326040.97134499942337
350.08685470936484540.1737094187296910.913145290635155
360.2128193728994780.4256387457989570.787180627100522
370.2741001381205620.5482002762411230.725899861879438
380.4113962165200930.8227924330401870.588603783479907
390.582369086607890.835261826784220.41763091339211
400.744051037678340.511897924643320.25594896232166
410.8639975010832630.2720049978334730.136002498916737
420.9245065635777980.1509868728444040.0754934364222022
430.9600986159482340.07980276810353180.0399013840517659
440.9635512250805770.0728975498388460.036448774919423
450.967781990330480.06443601933903930.0322180096695196
460.9668431087063230.06631378258735350.0331568912936767
470.9666754008030340.0666491983939310.0333245991969655
480.9699307782459750.06013844350804940.0300692217540247
490.9654895945180150.06902081096396960.0345104054819848
500.9603329084676670.07933418306466660.0396670915323333
510.9596758331628840.08064833367423110.0403241668371156
520.9507012744165970.0985974511668050.0492987255834025
530.9459102705468640.1081794589062720.0540897294531358
540.9678826097921530.06423478041569490.0321173902078474
550.9890268265806860.02194634683862880.0109731734193144
560.9957766411451580.008446717709684260.00422335885484213
570.9979006993871450.004198601225709280.00209930061285464
580.9971423280986080.005715343802783940.00285767190139197
590.9961058400609140.007788319878171330.00389415993908566
600.9944568967259030.01108620654819340.00554310327409671
610.994089595123550.01182080975290100.00591040487645052
620.9963087491959830.007382501608034460.00369125080401723
630.9961128318371280.007774336325744130.00388716816287207
640.9981997555607950.00360048887840970.00180024443920485
650.9988241562257390.002351687548522290.00117584377426115
660.9992548559254220.001490288149157030.000745144074578517
670.9997103927344170.0005792145311654850.000289607265582743
680.9999560253737318.79492525376047e-054.39746262688023e-05
690.9999557759187498.8448162502105e-054.42240812510525e-05
700.9999206886141520.0001586227716954437.93113858477213e-05
710.9998341232691440.0003317534617126900.000165876730856345
720.9996350502020430.0007298995959132180.000364949797956609
730.9994983665923450.001003266815309870.000501633407654933
740.99956125469130.0008774906174008050.000438745308700403
750.9993717142780180.001256571443963880.00062828572198194
760.9992613211138620.001477357772275390.000738678886137694
770.9985917903572420.002816419285516730.00140820964275837
780.9979212491757640.004157501648472710.00207875082423635
790.9957453018343660.00850939633126880.0042546981656344
800.992153089007420.01569382198516070.00784691099258036
810.9989479629612770.002104074077445290.00105203703872264
820.9991246048041480.001750790391704690.000875395195852343
830.999089294280010.001821411439979730.000910705719989863
840.9976499722240830.00470005555183490.00235002777591745
850.9935881560079320.01282368798413590.00641184399206794
860.9856781722564640.02864365548707160.0143218277435358
870.962649704297560.07470059140487920.0373502957024396


Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level360.507042253521127NOK
5% type I error level490.690140845070423NOK
10% type I error level620.873239436619718NOK
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/27/t12277917862xht04dub09jdy8/10ozt31227791115.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/27/t12277917862xht04dub09jdy8/10ozt31227791115.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/27/t12277917862xht04dub09jdy8/18os01227791115.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/27/t12277917862xht04dub09jdy8/18os01227791115.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/27/t12277917862xht04dub09jdy8/229e21227791115.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/27/t12277917862xht04dub09jdy8/229e21227791115.ps (open in new window)


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


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


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


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


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


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


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/27/t12277917862xht04dub09jdy8/94gtn1227791115.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/27/t12277917862xht04dub09jdy8/94gtn1227791115.ps (open in new window)


 
Parameters (Session):
par1 = 1 ; par2 = Include Monthly Dummies ; par3 = Linear Trend ;
 
Parameters (R input):
par1 = 1 ; par2 = Include Monthly 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