Home » date » 2008 » Nov » 24 »

Q3

*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 06:48:10 -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/t1227534563vejagke1sswx7rc.htm/, Retrieved Mon, 24 Nov 2008 13:49:33 +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/t1227534563vejagke1sswx7rc.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 1.4369 153.2 7.4583 1.4975 163.63 7.4595 1.577 168.45 7.4599 1.5553 166.26 7.4586 1.5557 162.31 7.4609 1.575 161.56 7.4603 1.5527 156.59 7.4561 1.4748 157.97 7.454 1.4718 158.68 7.4505 1.457 163.55 7.4599 1.4684 162.89 7.4543 1.4227 164.95 7.4534 1.3896 159.82 7.4506 1.3622 159.05 7.4429 1.3716 166.76 7.441 1.3419 164.55 7.4452 1.3511 163.22 7.4519 1.3516 160.68 7.453 1.3242 155.24 7.4494 1.3074 157.6 7.4541 1.2999 156.56 7.4539 1.3213 154.82 7.4549 1.2881 151.11 7.4564 1.2611 149.65 7.4555 1.2727 148.99 7.4601 1.2811 148.53 7.4609 1.2684 146.7 7.4602 1.265 145.11 7.4566 1.277 142.7 7.4565 1.2271 143.59 7.4618 1.202 140.96 7.4612 1.1938 140.77 7.4641 1.2103 139.81 7.4613 1.1856 140.58 7.4541 1.1786 139.59 7.4596 1.2015 138.05 7.462 1.2256 136.06 7.4584 1.2292 135.98 7.4596 1.2037 134.75 7.4584 1.2165 132.22 7.4448 1.2694 135.37 7.4443 1.2938 138.84 7.4499 1.3201 138.83 7.4466 1.3014 136.55 7.4427 1.3119 135.63 7.4405 1.3408 139.14 7.4338 1.2991 136.09 7.4313 1.249 135.97 7.4379 1.2218 134.51 7.4381 1.2176 134.54 7.4365 1.2266 134.08 7.4355 1.2138 132.86 7.4342 1.2007 134.48 7.4405 1.1985 129.08 7.4436 1.2262 133.13 7.4493 1.2646 134.78 7.4511 1.2613 134.13 7.4481 1.2286 132.43 7.4419 1.1702 127.84 7.437 1.1692 128.12 7.4301 1.1222 128.94 7.4273 1.1139 132.38 7.4322 1.1372 134.99 7.4332 1.1663 138.05 7.425 1.1582 135.83 7.4246 1.0848 130.12 7.4255 1.0807 128.16 7.4274 1.0773 128.6 7.4317 1.0622 126.12 7.4324 1.0183 124.2 7.4264 1.0014 121.65 7.428 0.9811 121.57 7.4297 0.9808 118.38 7.4271
 
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


Multiple Linear Regression - Estimated Regression Equation
Dollar[t] = -10.7013998458890 + 0.00820471163242128Yen[t] + 1.44995962091496DeenseKroon[t] + e[t]


Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STAT
H0: parameter = 0
2-tail p-value1-tail p-value
(Intercept)-10.70139984588906.289947-1.70130.0932530.046627
Yen0.008204711632421280.00076910.662800
DeenseKroon1.449959620914960.8536661.69850.093790.046895


Multiple Linear Regression - Regression Statistics
Multiple R0.871427976632575
R-squared0.759386718457944
Adjusted R-squared0.752608879541266
F-TEST (value)112.039652726090
F-TEST (DF numerator)2
F-TEST (DF denominator)71
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation0.0688078191277582
Sum Squared Residuals0.336150634091398


Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolation
Forecast
Residuals
Prediction Error
11.33221.202817245382490.129382754617515
21.43691.369795816868020.0671041831319826
31.49751.457110910739270.0403890892607317
41.5771.497237604655900.0797623953440951
51.55531.477384338673710.0779156613262879
61.55571.448310634853750.107389365146248
71.5751.441287125356890.133712874643112
81.55271.394419878135910.158280121864088
91.47481.402697464984730.0721025350152692
101.47181.403447951570550.068352048429452
111.4571.45703451765704-3.45176570406523e-05
121.46841.443499634102520.0249003658974816
131.42271.45909637640648-0.0363963764064831
141.38961.4129463187936-0.0233463187935993
151.36221.39546400175559-0.0332640017555900
161.37161.45596740516182-0.0843674051618196
171.34191.44392482286201-0.102024822862011
181.35111.44272728585102-0.091627285851022
191.35161.42348227388768-0.0718822738876786
201.32421.37362878797201-0.0494287879720121
211.30741.39980671764283-0.0924067176428275
221.29991.39098382562093-0.0910838256209257
231.32131.37815758700143-0.0568575870014282
241.28811.34989304627652-0.0617930462765178
251.26111.33660920363436-0.0755092036343583
261.27271.33786390821317-0.0651639082131692
271.28111.33524970855899-0.0541497085589872
281.26841.31922011453702-0.0508201145370167
291.2651.30095476840617-0.0359547684061726
301.2771.28103641740995-0.00403641740994588
311.22711.29602339675365-0.0689233967536502
321.2021.27357502938783-0.0715750293878329
331.19381.27622101707833-0.0824210170783267
341.21031.26428460697264-0.0539846069726395
351.18561.26016252565902-0.0745625256590173
361.17861.26001463905795-0.0814146390579518
371.20151.25085928623422-0.0493592862342187
381.22561.22931205545041-0.003712055450407
391.22921.23039563006491-0.00119563006491091
401.20371.21856388321194-0.0148638832119351
411.21651.178086511937470.0384134880625345
421.26941.203206373769140.0661936262308647
431.29381.239796497010760.0540035029892386
441.32011.234929583145420.0851704168545826
451.30141.210567998101930.090832001898071
461.31191.199829752234090.112070247765912
471.34081.218913560603760.121886439396244
481.29911.190264291072580.108835708927416
491.2491.198849459174730.050150540825268
501.22181.187160572115580.0346394278844194
511.21761.185086778071090.0325132219289118
521.22661.179862651099260.0467373489007395
531.21381.167967955400520.0458320445994837
541.20071.190394333856800.0103056661431967
551.19851.150583765866560.047916234133435
561.22621.192077617817090.0341223821829137
571.26461.208225319328230.0563746806717712
581.26131.198542377904410.0627576220955903
591.22861.175604618479620.0529953815203786
601.17021.130840189944320.0393598100556758
611.16921.123132787817090.0460672121829111
621.12221.12580076441711-0.00360076441711151
631.11391.16112977457512-0.0472297745751244
641.13721.18399403155666-0.0467940315566594
651.16631.19721078026037-0.0309107802603654
661.15821.17841633658802-0.0202163365880242
671.08481.13287239682572-0.0480723968257228
681.08071.11954608530591-0.0388460853059142
691.07731.12939098479411-0.0520909847941148
701.06221.11005827168035-0.0478582716803507
711.01831.08560546762061-0.0673054676206118
721.00141.06700338835140-0.0656033883514011
730.98111.06881194277636-0.0877119427763635
740.98081.03886901765456-0.0580690176545605


Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
60.1176197112123110.2352394224246230.882380288787689
70.1146404736168790.2292809472337580.885359526383121
80.2314221528826920.4628443057653850.768577847117307
90.1856433895351580.3712867790703150.814356610464842
100.1266166861226250.2532333722452500.873383313877375
110.2734952306004850.546990461200970.726504769399515
120.2557135945827670.5114271891655350.744286405417233
130.3443875432082790.6887750864165590.655612456791721
140.3146859976357950.629371995271590.685314002364205
150.2367913164847750.4735826329695510.763208683515225
160.1706967986556720.3413935973113440.829303201344328
170.1707151017944620.3414302035889240.829284898205538
180.2904754626537440.5809509253074880.709524537346256
190.3816430586469630.7632861172939260.618356941353037
200.3595461591481590.7190923182963170.640453840851841
210.5693315438502620.8613369122994760.430668456149738
220.71668347534020.56663304931960.2833165246598
230.7584921020829170.4830157958341650.241507897917083
240.8262106496107150.3475787007785710.173789350389285
250.880209761963510.2395804760729820.119790238036491
260.924799539675280.1504009206494400.0752004603247199
270.9403778258222530.1192443483554940.0596221741777472
280.9441777966639270.1116444066721460.0558222033360729
290.9336274052257840.1327451895484330.0663725947742165
300.909263172915530.1814736541689390.0907368270844694
310.9280082862437850.1439834275124310.0719917137562154
320.9378866858812070.1242266282375860.062113314118793
330.9581763393765550.08364732124688960.0418236606234448
340.9590907472152830.08181850556943330.0409092527847166
350.976381628246470.04723674350706160.0236183717535308
360.9924770318962230.01504593620755340.00752296810377672
370.996868855950240.006262288099522320.00313114404976116
380.9972329752339650.005534049532069650.00276702476603482
390.9980638279104950.003872344179009420.00193617208950471
400.9994277713955380.001144457208923740.000572228604461871
410.9995233063808470.0009533872383065510.000476693619153276
420.9995114476770840.000977104645831880.00048855232291594
430.9995296150447790.000940769910442440.00047038495522122
440.9994079163839390.001184167232121860.000592083616060931
450.9992545365699250.001490926860149820.00074546343007491
460.9994864451364780.001027109727043710.000513554863521855
470.9998008332904380.0003983334191242290.000199166709562114
480.9999813767475453.72465049106824e-051.86232524553412e-05
490.9999624565551997.50868896027206e-053.75434448013603e-05
500.999915664562110.0001686708757804048.4335437890202e-05
510.9998252134020360.0003495731959279010.000174786597963950
520.999761487402160.0004770251956817820.000238512597840891
530.999771048043240.0004579039135207250.000228951956760362
540.9995165908257680.0009668183484648260.000483409174232413
550.9991196864557170.001760627088565380.000880313544282691
560.9983458797026930.003308240594613820.00165412029730691
570.9969124199924870.006175160015025730.00308758000751287
580.9937294327097820.01254113458043650.00627056729021823
590.989440916515810.02111816696838210.0105590834841911
600.9943341366808980.01133172663820440.00566586331910221
610.9999669466233816.6106753237574e-053.3053376618787e-05
620.9999978804438054.2391123900512e-062.1195561950256e-06
630.999988712570412.25748591793458e-051.12874295896729e-05
640.9999484603820.0001030792360015455.15396180007726e-05
650.9997854355068520.0004291289862953740.000214564493147687
660.9989557965425650.002088406914869450.00104420345743472
670.995187048665740.009625902668518940.00481295133425947
680.982167139314370.03566572137126090.0178328606856304


Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level280.444444444444444NOK
5% type I error level340.53968253968254NOK
10% type I error level360.571428571428571NOK
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/24/t1227534563vejagke1sswx7rc/1077mk1227534485.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/24/t1227534563vejagke1sswx7rc/1077mk1227534485.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/24/t1227534563vejagke1sswx7rc/12f5x1227534485.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/24/t1227534563vejagke1sswx7rc/12f5x1227534485.ps (open in new window)


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


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


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/24/t1227534563vejagke1sswx7rc/43tmk1227534485.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/24/t1227534563vejagke1sswx7rc/43tmk1227534485.ps (open in new window)


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


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


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


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/24/t1227534563vejagke1sswx7rc/80nwp1227534485.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/24/t1227534563vejagke1sswx7rc/80nwp1227534485.ps (open in new window)


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