Home » date » 2008 » Nov » 24 »

Q3 vervolg

*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: Mon, 24 Nov 2008 07:05:06 -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/24/t1227535613vfr3qc7btb6zvhg.htm/, Retrieved Mon, 24 Nov 2008 14:07:03 +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/24/t1227535613vfr3qc7btb6zvhg.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:
 
Dataseries X:
» Textbox « » Textfile « » CSV «
1,3322 133,52 7,4545 0 1,4369 153,2 7,4583 0 1,4975 163,63 7,4595 0 1,577 168,45 7,4599 0 1,5553 166,26 7,4586 0 1,5557 162,31 7,4609 0 1,575 161,56 7,4603 0 1,5527 156,59 7,4561 0 1,4748 157,97 7,454 0 1,4718 158,68 7,4505 0 1,457 163,55 7,4599 0 1,4684 162,89 7,4543 0 1,4227 164,95 7,4534 0 1,3896 159,82 7,4506 0 1,3622 159,05 7,4429 0 1,3716 166,76 7,441 0 1,3419 164,55 7,4452 0 1,3511 163,22 7,4519 0 1,3516 160,68 7,453 0 1,3242 155,24 7,4494 0 1,3074 157,6 7,4541 0 1,2999 156,56 7,4539 0 1,3213 154,82 7,4549 0 1,2881 151,11 7,4564 0 1,2611 149,65 7,4555 0 1,2727 148,99 7,4601 0 1,2811 148,53 7,4609 0 1,2684 146,7 7,4602 0 1,265 145,11 7,4566 0 1,277 142,7 7,4565 0 1,2271 143,59 7,4618 0 1,202 140,96 7,4612 0 1,1938 140,77 7,4641 0 1,2103 139,81 7,4613 0 1,1856 140,58 7,4541 0 1,1786 139,59 7,4596 0 1,2015 138,05 7,462 0 1,2256 136,06 7,4584 0 1,2292 135,98 7,4596 0 1,2037 134,75 7,4584 0 1,2165 132,22 7,4448 0 1,2694 135,37 7,4443 1 1,2938 138,84 7,4499 1 1,3201 138,83 7,4466 1 1,3014 136,55 7,4427 1 1,3119 135,63 7,4405 1 1,3408 139,14 7,4338 1 1,2991 136,09 7,4313 1 1,249 135,97 7,4379 1 1,2218 134,51 7,4381 1 1,2176 134,54 7,4365 1 1,2266 134,08 7,4355 1 1,2138 132,86 7,4342 1 1,2007 134,48 7,4405 1 1,1985 129,08 7,4436 1 1,2262 133,13 7,4493 1 1,2646 134,78 7,4511 1 1,2613 134,13 7,4481 1 1,2286 132,43 7,4419 1 1,1702 127,84 7,437 1 1,1692 128,12 7,4301 1 1,1222 128,94 7,4273 1 1,1139 132,38 7,4322 1 1,1372 134,99 7,4332 1 1,1663 138,05 7,425 1 1,1582 135,83 7,4246 1 1,0848 130,12 7,4255 1 1,0807 128,16 7,4274 1 1,0773 128,6 7,4317 1 1,0622 126,12 7,4324 1 1,0183 124,2 7,4264 1 1,0014 121,65 7,428 1 0,9811 121,57 7,4297 1 0,9808 118,38 7,4271 1
 
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 time4 seconds
R Server'George Udny Yule' @ 72.249.76.132
R Framework
error message
Warning: there are blank lines in the 'Data X' field.
Please, use NA for missing data - blank lines are simply
 deleted and are NOT treated as missing values.


Multiple Linear Regression - Estimated Regression Equation
Dollar[t] = -17.5591525902905 + 0.00350468724936866Yen[t] + 2.48338256066758DeenseKroon[t] + 0.217718242006334`(Y/N)`[t] -0.0233279490086631M1[t] -0.0145722863144368M2[t] -0.0079625062616061M3[t] + 0.00746575775475982M4[t] + 0.0239101519213048M5[t] + 0.000565823432548992M6[t] -0.00651859027095586M7[t] + 0.00440537472594684M8[t] -0.0082024995482914M9[t] + 0.00612796500313673M10[t] + 0.00642078012929746M11[t] -0.00697509153826563t + e[t]


Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STAT
H0: parameter = 0
2-tail p-value1-tail p-value
(Intercept)-17.55915259029056.494117-2.70390.0089790.00449
Yen0.003504687249368660.0009643.6350.0005910.000296
DeenseKroon2.483382560667580.8632132.87690.0056110.002805
`(Y/N)`0.2177182420063340.0234189.296900
M1-0.02332794900866310.023521-0.99180.3254270.162713
M2-0.01457228631443680.023307-0.62520.5342670.267133
M3-0.00796250626160610.024171-0.32940.7430260.371513
M40.007465757754759820.0243470.30660.7602130.380107
M50.02391015192130480.0243750.98090.33070.16535
M60.0005658234325489920.0243620.02320.981550.490775
M7-0.006518590270955860.024484-0.26620.7910030.395501
M80.004405374725946840.0243050.18130.8567980.428399
M9-0.00820249954829140.024536-0.33430.7393570.369678
M100.006127965003136730.0242670.25250.8015310.400765
M110.006420780129297460.0241630.26570.7913950.395698
t-0.006975091538265630.000774-9.013700


Multiple Linear Regression - Regression Statistics
Multiple R0.96326748849804
R-squared0.927884254397322
Adjusted R-squared0.90923363053456
F-TEST (value)49.7508427184554
F-TEST (DF numerator)15
F-TEST (DF denominator)58
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation0.0416781296745391
Sum Squared Residuals0.100749856603726


Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolation
Forecast
Residuals
Prediction Error
11.33221.39086550919470-0.0586655091946951
21.43691.47105517914878-0.034155179148775
31.49751.51022381474706-0.0127238147470555
41.5771.536562932791380.0404370672086207
51.55531.535128573014670.0201714269853274
61.55571.496677418242180.0590225817578199
71.5751.478499368026980.096500631973016
81.55271.454599739101460.0981002608985449
91.47481.434638138315680.0401618616843232
101.47181.435790000313560.0360099996864448
111.4571.46951934687615-0.0125193468761514
121.46841.439903439284270.0284965607157341
131.42271.414585010166440.00811498983356346
141.38961.39143306456327-0.00183306456326552
151.36221.36924709817868-0.0070470981786768
161.37161.40000298248414-0.0284029824841409
171.34191.41215713304612-0.0702571330461194
181.35111.39381514213391-0.0427151421339114
191.35161.37358545209548-0.0219854520954791
201.32421.34952864969915-0.0253286496991461
211.30741.34988864383029-0.0424886438302914
221.29991.35310246559198-0.0532024655919758
231.32131.34280541592664-0.0215054159266379
241.28811.32013222840492-0.0320322284049186
251.26111.28247730016931-0.0213773001693092
261.27271.29336833751976-0.0206683375197575
271.28111.29337757594815-0.0122775759481467
281.26841.29367880296744-0.0252788029674369
291.2651.28863547565082-0.0236354756508157
301.2771.249621421096750.0273785789032505
311.22711.25184301507846-0.0247430150784554
321.2021.24508453153485-0.0430845315348515
331.19381.23203748457090-0.0382374845709045
341.21031.22907488665480-0.0187748866548024
351.18561.20721086498791-0.0216108649879068
361.17861.20400395702714-0.0254039570271392
371.20151.174263816261780.0272361837382157
381.22561.16012988257310.0654701174269008
391.22921.162464255180520.0667357448194846
401.20371.163626603269090.0400733967309084
411.21651.130455044331390.0860449556686114
421.26941.32765193986588-0.0582519398658795
431.29381.33966064171916-0.0458606417191574
441.32011.33537930585510-0.0152793058550971
451.30141.298120461127430.00327953887257013
461.31191.296788080237700.0151119197622962
471.34081.285768592914410.0550314070855907
481.29911.255474968734600.0436250312653957
491.2491.241141690618160.00785830938184373
501.22181.23830209490217-0.0165020949021734
511.21761.23406851193715-0.0164685119371496
521.22661.23842614571987-0.0118261457198743
531.21381.24039133257505-0.0265913325750546
541.20071.23139481602422-0.030694816024217
551.19851.20610848557393-0.00760848557392517
561.22621.23840662298831-0.0122066229883104
571.26461.229076479746470.0355235202535328
581.26131.226703658365540.0345963416344631
591.22861.198666441753370.0299335582466329
601.17021.157015481063930.0131845189360695
611.16921.110558413278220.0586415867217811
621.12221.108259356808790.0139406431912089
631.11391.13211874400846-0.0182187440084559
641.13721.15220253276808-0.0150025327680768
651.16631.152032441381950.0142675586180508
661.15821.112939262637060.0452607373629376
671.08481.0811030375060.00369696249400098
681.08071.08290115082114-0.00220115082113971
691.07731.075538792409230.00176120759076976
701.06221.07594090883643-0.013740908836426
711.01831.04762933754153-0.0293293375415274
721.00141.02926992548514-0.0278699254851418
730.98111.0029082603114-0.0218082603113996
740.98080.987052084484138-0.00625208448413824


Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
190.8534553677254480.2930892645491040.146544632274552
200.7578631261963150.4842737476073710.242136873803685
210.698846516845230.6023069663095410.301153483154771
220.6254897269146620.7490205461706750.374510273085338
230.7870874563941850.4258250872116310.212912543605815
240.7471100466874640.5057799066250720.252889953312536
250.8009001207253820.3981997585492360.199099879274618
260.7981367231141350.403726553771730.201863276885865
270.7580326297028280.4839347405943440.241967370297172
280.6960475143124030.6079049713751940.303952485687597
290.708304372712730.5833912545745390.291695627287270
300.7362762582610820.5274474834778350.263723741738918
310.6854135900964380.6291728198071230.314586409903562
320.699912356296860.600175287406280.30008764370314
330.7102200914362930.5795598171274130.289779908563707
340.7125321565366680.5749356869266650.287467843463332
350.8314520022700140.3370959954599710.168547997729986
360.9400840022770440.1198319954459110.0599159977229555
370.9834530474837810.03309390503243840.0165469525162192
380.9947854281829430.01042914363411410.00521457181705704
390.995415188457660.00916962308468030.00458481154234015
400.995137065650540.009725868698919470.00486293434945973
410.9969899971176440.006020005764711920.00301000288235596
420.9952460863186650.009507827362669420.00475391368133471
430.9966576278031330.006684744393733890.00334237219686695
440.9946161318904320.01076773621913580.00538386810956791
450.992002043041060.01599591391788010.00799795695894003
460.9861148992738350.02777020145233010.0138851007261650
470.9818675248817250.03626495023655020.0181324751182751
480.9704831105363450.05903377892730980.0295168894636549
490.965867883408260.06826423318347850.0341321165917393
500.988257499255060.02348500148988040.0117425007449402
510.9734120158765930.05317596824681360.0265879841234068
520.9446427944207320.1107144111585360.0553572055792681
530.8923236496074640.2153527007850720.107676350392536
540.9074446368882030.1851107262235940.092555363111797
550.825728867621950.34854226475610.17427113237805


Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level50.135135135135135NOK
5% type I error level120.324324324324324NOK
10% type I error level150.405405405405405NOK
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/24/t1227535613vfr3qc7btb6zvhg/106t2w1227535501.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/24/t1227535613vfr3qc7btb6zvhg/106t2w1227535501.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/24/t1227535613vfr3qc7btb6zvhg/1vqbg1227535501.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/24/t1227535613vfr3qc7btb6zvhg/1vqbg1227535501.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/24/t1227535613vfr3qc7btb6zvhg/2r3gh1227535501.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/24/t1227535613vfr3qc7btb6zvhg/2r3gh1227535501.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/24/t1227535613vfr3qc7btb6zvhg/3lmom1227535501.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/24/t1227535613vfr3qc7btb6zvhg/3lmom1227535501.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/24/t1227535613vfr3qc7btb6zvhg/4jiqm1227535501.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/24/t1227535613vfr3qc7btb6zvhg/4jiqm1227535501.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/24/t1227535613vfr3qc7btb6zvhg/5f2a61227535501.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/24/t1227535613vfr3qc7btb6zvhg/5f2a61227535501.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/24/t1227535613vfr3qc7btb6zvhg/6oxbj1227535501.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/24/t1227535613vfr3qc7btb6zvhg/6oxbj1227535501.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/24/t1227535613vfr3qc7btb6zvhg/7af8s1227535501.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/24/t1227535613vfr3qc7btb6zvhg/7af8s1227535501.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/24/t1227535613vfr3qc7btb6zvhg/8tbf41227535501.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/24/t1227535613vfr3qc7btb6zvhg/8tbf41227535501.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/24/t1227535613vfr3qc7btb6zvhg/91pl11227535501.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/24/t1227535613vfr3qc7btb6zvhg/91pl11227535501.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