Home » date » 2010 » Nov » 28 »

paper 1

*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: Sun, 28 Nov 2010 09:52:50 +0000
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2010/Nov/28/t1290937964br237eo7w2txy7o.htm/, Retrieved Sun, 28 Nov 2010 10:52:46 +0100
 
BibTeX entries for LaTeX users:
@Manual{KEY,
    author = {{YOUR NAME}},
    publisher = {Office for Research Development and Education},
    title = {Statistical Computations at FreeStatistics.org, URL http://www.freestatistics.org/blog/date/2010/Nov/28/t1290937964br237eo7w2txy7o.htm/},
    year = {2010},
}
@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 = {2010},
    note = {{ISBN} 3-900051-07-0},
    url = {http://www.R-project.org},
}
 
Original text written by user:
 
IsPrivate?
No (this computation is public)
 
User-defined keywords:
 
Dataseries X:
» Textbox « » Textfile « » CSV «
1.579 9.769 2.146 9.321 2.462 9.939 3.695 9.336 4.831 10.195 5.134 9.464 6.250 10.010 5.760 10.213 6.249 9.563 2.917 9.890 1.741 9.305 2.359 9.391 1.511 9.928 2.059 8.686 2.635 9.843 2.867 9.627 4.403 10.074 5.720 9.503 4.502 10.119 5.749 10.000 5.627 9.313 2.846 9.866 1.762 9.172 2.429 9.241 1.169 9.659 2.154 8.904 2.249 9.755 2.687 9.080 4.359 9.435 5.382 8.971 4.459 10.063 6.398 9.793 4.596 9.454 3.024 9.759 1.887 8.820 2.070 9.403 1.351 9.676 2.218 8.642 2.461 9.402 3.028 9.610 4.784 9.294 4.975 9.448 4.607 10.319 6.249 9.548 4.809 9.801 3.157 9.596 1.910 8.923 2.228 9.746 1.594 9.829 2.467 9.125 2.222 9.782 3.607 9.441 4.685 9.162 4.962 9.915 5.770 10.444 5.480 10.209 5.000 9.985 3.228 9.842 1.993 9.429 2.288 10.132 1.580 9.849 2.111 9.172 2.192 10.313 3.601 9.819 4.665 9.955 4.876 10.048 5.813 10.082 5.589 10.541 5.331 10.208 3.075 10.233 2.002 9.439 2.306 9.963 1.507 10.158 1.992 9.225 2.487 10.474 3.490 9.757 4.647 10.490 5.5 etc...
 
Output produced by software:

Enter (or paste) a matrix (table) containing all data (time) series. Every column represents a different variable and must be delimited by a space or Tab. Every row represents a period in time (or category) and must be delimited by hard returns. The easiest way to enter data is to copy and paste a block of spreadsheet cells. Please, do not use commas or spaces to seperate groups of digits!


Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time8 seconds
R Server'RServer@AstonUniversity' @ vre.aston.ac.uk


Multiple Linear Regression - Estimated Regression Equation
huwelijk[t] = -8.06040832663055 + 1.18849990912292geboortes[t] + e[t]


Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STAT
H0: parameter = 0
2-tail p-value1-tail p-value
(Intercept)-8.060408326630552.919378-2.7610.006930.003465
geboortes1.188499909122920.2969864.00190.0001256.3e-05


Multiple Linear Regression - Regression Statistics
Multiple R0.381537512253696
R-squared0.145570873256739
Adjusted R-squared0.136481201695641
F-TEST (value)16.0149761493854
F-TEST (DF numerator)1
F-TEST (DF denominator)94
p-value0.000125324935773441
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation1.48456585486723
Sum Squared Residuals207.169963079142


Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolation
Forecast
Residuals
Prediction Error
11.5793.5500472855913-1.9710472855913
22.1463.0175993263042-0.871599326304203
32.4623.75209227014217-1.29009227014217
43.6953.035426824941050.659573175058951
54.8314.056348246877640.774651753122362
65.1343.187554813308781.94644518669122
76.253.83647576368992.4135242363101
85.764.077741245241851.68225875475815
96.2493.305216304311952.94378369568805
102.9173.69385577459515-0.776855774595148
111.7412.99858332775824-1.25758332775824
122.3593.10079431994281-0.741794319942809
131.5113.73901877114182-2.22801877114182
142.0592.26290188401115-0.203901884011149
152.6353.63799627886637-1.00299627886637
162.8673.38128029849582-0.514280298495819
174.4033.912539757873760.490460242126235
185.723.233906309764582.48609369023542
194.5023.96602225378430.535977746215704
205.7493.824590764598671.92440923540133
215.6273.008091327031222.61890867296878
222.8463.6653317767762-0.819331776776196
231.7622.84051283984489-1.07851283984489
242.4292.92251933357437-0.493519333574371
251.1693.41931229558775-2.25031229558775
262.1542.52199486419995-0.367994864199946
272.2493.53340828686355-1.28440828686355
282.6872.73117084820558-0.0441708482055808
294.3593.153088315944221.20591168405578
305.3822.601624358111182.78037564188882
314.4593.899466258873410.559533741126587
326.3983.578571283410222.81942871658978
334.5963.175669814217551.42033018578245
343.0243.53816228650004-0.514162286500045
351.8872.42216087183362-0.535160871833621
362.073.11505631885229-1.04505631885229
371.3513.43951679404284-2.08851679404284
382.2182.210607888009740.0073921119902597
392.4613.11386781894316-0.65286781894316
403.0283.36107580004073-0.333075800040728
414.7842.985509828757891.79849017124211
424.9753.168538814762821.80646118523718
434.6074.203722235608880.403277764391119
446.2493.287388805675112.96161119432489
454.8093.588079282683211.22092071731679
463.1573.34443680131301-0.187436801313008
471.912.54457636247328-0.634576362473282
482.2283.52271178768145-1.29471178768145
491.5943.62135728013865-2.02735728013865
502.4672.78465334411611-0.317653344116112
512.2223.56549778440987-1.34349778440987
523.6073.160219315398960.446780684601044
534.6852.828627840753661.85637215924634
544.9623.723568272323221.23843172767678
555.774.352284724249251.41771527575075
565.484.072987245605361.40701275439464
5753.806763265961821.19323673403818
583.2283.63680777895725-0.408807778957247
591.9933.14595731648948-1.15295731648948
602.2883.98147275260289-1.69347275260289
611.583.64512727832111-2.06512727832111
622.1112.84051283984489-0.72951283984489
632.1924.19659123615414-2.00459123615414
643.6013.60947228104742-0.0084722810474205
654.6653.771108268688140.893891731311863
664.8763.881638760236570.994361239763432
675.8133.922047757146751.89095224285325
685.5894.467569215434171.12143078456583
695.3314.071798745696241.25920125430376
703.0754.10151124342431-1.02651124342431
712.0023.15784231558071-1.15584231558071
722.3063.78061626796112-1.47461626796112
731.5074.01237375024009-2.50537375024009
741.9922.9035033350284-0.911503335028404
752.4874.38793972152293-1.90093972152293
763.493.5357852866818-0.0457852866817977
774.6474.40695572006890.2400442799311
785.5944.158559239062211.43544076093779
795.6114.352284724249251.25871527575075
805.7884.585230706437341.20276929356266
816.2044.65059820143911.5534017985609
823.0134.75875169316928-1.74575169316928
831.9313.62492277986602-1.69392277986602
842.5493.52390028759057-0.974900287590569
851.5044.31306422724819-2.80906422724819
862.093.24341430903756-1.15341430903756
872.7024.30236772806608-1.60036772806608
882.9393.46922929177092-0.530229291770915
894.54.466380715525040.0336192844749552
906.2083.957702754420442.25029724557956
916.4154.912068181446141.50293181855386
925.6575.230586157091080.426413842908916
935.9644.280974729701871.68302527029813
943.1634.81579968880718-1.65279968880718
951.9973.68910177495865-1.69210177495865
962.4224.08130674496922-1.65930674496922


Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
50.5420045493542450.9159909012915090.457995450645755
60.6845746760839120.6308506478321750.315425323916088
70.8034982572409180.3930034855181640.196501742759082
80.7519272035206110.4961455929587780.248072796479389
90.8611519792627620.2776960414744770.138848020737238
100.8420256003506740.3159487992986510.157974399649326
110.8281320914679730.3437358170640540.171867908532027
120.7769357320854220.4461285358291560.223064267914578
130.8630957577082230.2738084845835540.136904242291777
140.8108314594335240.3783370811329520.189168540566476
150.7793056108896010.4413887782207970.220694389110399
160.7201779169565630.5596441660868740.279822083043437
170.6524483444253020.6951033111493960.347551655574698
180.7554839570616390.4890320858767220.244516042938361
190.6948875481848130.6102249036303730.305112451815187
200.7070149376910850.585970124617830.292985062308915
210.7988036365876150.402392726824770.201196363412385
220.77177345673740.45645308652520.2282265432626
230.7491010843588920.5017978312822170.250898915641108
240.6982391833062520.6035216333874970.301760816693748
250.7726068692944720.4547862614110560.227393130705528
260.7202240358722860.5595519282554290.279775964127714
270.7082185976791710.5835628046416580.291781402320829
280.6494329804502050.701134039099590.350567019549795
290.6261729616780650.747654076643870.373827038321935
300.7553972074863840.4892055850272320.244602792513616
310.7083660516392890.5832678967214230.291633948360711
320.814250798877430.3714984022451410.185749201122571
330.8056589405556760.3886821188886470.194341059444324
340.769266044545860.4614679109082790.23073395545414
350.7277209906474110.5445580187051770.272279009352589
360.7034083410502070.5931833178995870.296591658949793
370.7546537985404670.4906924029190660.245346201459533
380.7050801404651730.5898397190696540.294919859534827
390.661716456406860.6765670871862810.33828354359314
400.6085735072398290.7828529855203410.391426492760171
410.635732479627770.7285350407444610.364267520372231
420.6644645741544640.6710708516910710.335535425845536
430.6114428254147860.7771143491704290.388557174585214
440.7736001071392460.4527997857215090.226399892860754
450.7628060563224870.4743878873550250.237193943677513
460.717831338226260.564337323547480.28216866177374
470.673790074224370.652419851551260.32620992577563
480.6591340678691880.6817318642616240.340865932130812
490.7005949068756550.5988101862486910.299405093124345
500.6503437845938920.6993124308122150.349656215406108
510.6351600996639930.7296798006720130.364839900336007
520.5904884251217210.8190231497565580.409511574878279
530.6665110877447940.6669778245104120.333488912255206
540.6644038361949650.671192327610070.335596163805035
550.6566148340306140.6867703319387720.343385165969386
560.6579429660235280.6841140679529450.342057033976472
570.655535028733840.688929942532320.34446497126616
580.6037955103633070.7924089792733850.396204489636693
590.5641299268005430.8717401463989130.435870073199457
600.5755197882655390.8489604234689230.424480211734461
610.607724697962040.784550604075920.39227530203796
620.5543218221262680.8913563557474650.445678177873732
630.5991506660505080.8016986678989830.400849333949492
640.5415623786797350.916875242640530.458437621320265
650.5188928622814050.962214275437190.481107137718595
660.5021033085496990.9957933829006010.497896691450301
670.5810245555616870.8379508888766260.418975444438313
680.5564212423979370.8871575152041260.443578757602063
690.5667674169920030.8664651660159950.433232583007997
700.5204744580427640.9590510839144730.479525541957236
710.4653757886774380.9307515773548770.534624211322562
720.4333777077528630.8667554155057250.566622292247137
730.5188186187933650.962362762413270.481181381206635
740.455106251332320.910212502664640.54489374866768
750.4907664453379760.9815328906759530.509233554662024
760.4287775697544220.8575551395088430.571222430245578
770.3587474239057550.717494847811510.641252576094245
780.3762650973398060.7525301946796110.623734902660194
790.3704926844936620.7409853689873230.629507315506338
800.3523523975284430.7047047950568870.647647602471557
810.3806257110590270.7612514221180530.619374288940973
820.389889528618520.7797790572370390.61011047138148
830.3417067646034570.6834135292069130.658293235396543
840.2657257134631120.5314514269262250.734274286536888
850.4203608100183690.8407216200367380.579639189981631
860.3321482209720140.6642964419440280.667851779027986
870.3279221750152470.6558443500304930.672077824984753
880.2322344269314470.4644688538628930.767765573068553
890.1495993735478740.2991987470957480.850400626452126
900.3116614857050670.6233229714101350.688338514294933
910.2769724144972880.5539448289945760.723027585502712


Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level00OK
5% type I error level00OK
10% type I error level00OK
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Nov/28/t1290937964br237eo7w2txy7o/10ailm1290937959.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/28/t1290937964br237eo7w2txy7o/10ailm1290937959.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Nov/28/t1290937964br237eo7w2txy7o/13h6s1290937959.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/28/t1290937964br237eo7w2txy7o/13h6s1290937959.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Nov/28/t1290937964br237eo7w2txy7o/23h6s1290937959.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/28/t1290937964br237eo7w2txy7o/23h6s1290937959.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Nov/28/t1290937964br237eo7w2txy7o/3e85d1290937959.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/28/t1290937964br237eo7w2txy7o/3e85d1290937959.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Nov/28/t1290937964br237eo7w2txy7o/4e85d1290937959.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/28/t1290937964br237eo7w2txy7o/4e85d1290937959.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Nov/28/t1290937964br237eo7w2txy7o/5e85d1290937959.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/28/t1290937964br237eo7w2txy7o/5e85d1290937959.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Nov/28/t1290937964br237eo7w2txy7o/66hmy1290937959.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/28/t1290937964br237eo7w2txy7o/66hmy1290937959.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Nov/28/t1290937964br237eo7w2txy7o/7hrl11290937959.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/28/t1290937964br237eo7w2txy7o/7hrl11290937959.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Nov/28/t1290937964br237eo7w2txy7o/8hrl11290937959.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/28/t1290937964br237eo7w2txy7o/8hrl11290937959.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Nov/28/t1290937964br237eo7w2txy7o/9hrl11290937959.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/28/t1290937964br237eo7w2txy7o/9hrl11290937959.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