Home » date » 2009 » Dec » 28 »

paper multiple regressie 4 vertragingen

*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, 28 Dec 2009 07:18:34 -0700
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2009/Dec/28/t1262009976ln7t2g7189j7g72.htm/, Retrieved Mon, 28 Dec 2009 15:19:49 +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/2009/Dec/28/t1262009976ln7t2g7189j7g72.htm/},
    year = {2009},
}
@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 = {2009},
    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 «
97.7 0 98.3 91.6 104.6 111.6 106.3 0 97.7 98.3 91.6 104.6 102.3 0 106.3 97.7 98.3 91.6 106.6 0 102.3 106.3 97.7 98.3 108.1 0 106.6 102.3 106.3 97.7 93.8 0 108.1 106.6 102.3 106.3 88.2 0 93.8 108.1 106.6 102.3 108.9 0 88.2 93.8 108.1 106.6 114.2 0 108.9 88.2 93.8 108.1 102.5 0 114.2 108.9 88.2 93.8 94.2 0 102.5 114.2 108.9 88.2 97.4 0 94.2 102.5 114.2 108.9 98.5 0 97.4 94.2 102.5 114.2 106.5 0 98.5 97.4 94.2 102.5 102.9 0 106.5 98.5 97.4 94.2 97.1 0 102.9 106.5 98.5 97.4 103.7 0 97.1 102.9 106.5 98.5 93.4 0 103.7 97.1 102.9 106.5 85.8 0 93.4 103.7 97.1 102.9 108.6 0 85.8 93.4 103.7 97.1 110.2 0 108.6 85.8 93.4 103.7 101.2 0 110.2 108.6 85.8 93.4 101.2 0 101.2 110.2 108.6 85.8 96.9 0 101.2 101.2 110.2 108.6 99.4 0 96.9 101.2 101.2 110.2 118.7 0 99.4 96.9 101.2 101.2 108.0 0 118.7 99.4 96.9 101.2 101.2 0 108.0 118.7 99.4 96.9 119.9 0 101.2 108.0 118.7 99.4 94.8 0 119.9 101.2 108.0 118.7 95.3 0 94.8 119.9 101.2 108.0 118.0 0 95.3 94.8 119.9 101.2 115.9 0 118.0 95.3 94.8 119.9 111. 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 time5 seconds
R Server'Gwilym Jenkins' @ 72.249.127.135


Multiple Linear Regression - Estimated Regression Equation
y[t] = + 6.22104629349978 -2.97334629831363x[t] + 0.303288878357398y1[t] + 0.430522582438265y2[t] + 0.493879466224932y3[t] -0.342943786844925y4[t] + 8.26140347753671M1[t] + 20.3893106924825M2[t] + 5.65105926012792M3[t] + 1.25757816772481M4[t] + 8.94165957078786M5[t] -5.91154539630798M6[t] -7.84346025105621M7[t] + 17.2355755305452M8[t] + 26.470150117162M9[t] + 2.61838399538435M10[t] -13.4368118308086M11[t] + 0.0484069423384669t + e[t]


Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STAT
H0: parameter = 0
2-tail p-value1-tail p-value
(Intercept)6.221046293499787.9050720.7870.4338130.216907
x-2.973346298313631.823726-1.63040.1072730.053636
y10.3032888783573980.1105912.74240.0076440.003822
y20.4305225824382650.0991954.34024.4e-052.2e-05
y30.4938794662249320.1002114.92845e-062e-06
y4-0.3429437868449250.111269-3.08210.0028870.001443
M18.261403477536712.5829913.19840.0020350.001017
M220.38931069248252.8749367.092100
M35.651059260127923.9039071.44750.1519690.075985
M41.257578167724813.5395680.35530.7233820.361691
M58.941659570787862.8796573.10510.0026950.001348
M6-5.911545396307983.17459-1.86210.0665530.033276
M7-7.843460251056212.865403-2.73730.0077530.003877
M817.23557553054522.6314356.549900
M926.4701501171623.9583346.687200
M102.618383995384354.9499870.5290.5984110.299205
M11-13.43681183080863.875828-3.46680.0008810.00044
t0.04840694233846690.0378321.27950.2047110.102356


Multiple Linear Regression - Regression Statistics
Multiple R0.949649820599297
R-squared0.901834781764276
Adjusted R-squared0.879283312710123
F-TEST (value)39.9900680349782
F-TEST (DF numerator)17
F-TEST (DF denominator)74
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation4.55047197789962
Sum Squared Residuals1532.30284640208


Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolation
Forecast
Residuals
Prediction Error
197.797.16728756248660.532712437513421
2106.3108.026303142083-1.72630314208309
3102.3103.453691109169-1.15369110916869
4106.699.00390460304777.59609539695233
5108.1110.771574477274-2.67157447727433
693.893.34812244277150.451877557228548
788.291.2688242956552-3.06882429565520
8108.9107.8075372878311.09246271216933
9114.2113.3807800898460.81921991015409
10102.5102.2350405631960.264959436804194
1194.297.1053316466703-2.90533164667025
1297.498.5547632982254-1.15476329822538
1398.596.66576886949681.83423113050318
14106.5110.466615793195-3.96661579319535
15102.9103.103504893453-0.203504893453175
1697.1100.556618735752-3.4566187357517
17103.7108.553947854173-4.8539478541726
1893.488.7323090752634.66769092473705
1985.884.93647148840170.863528511598348
20108.6108.5732145784960.026785421503674
21110.2114.148823412176-3.94882341217615
22101.2100.4254783788940.774521621105549
23101.296.24475033167454.95524966832547
2496.998.8263546687728-1.92635466877279
2599.4100.838397656735-1.43839765673487
26118.7115.0081809870323.6918190129676
27108105.1244366006432.87556339935744
28101.2108.552614242208-7.35261424220776
29119.9118.2906608137181.60933918628157
3094.894.32648587895040.473514121049625
3195.393.19231756027662.10768243972339
32118119.232851673146-1.23285167314649
33115.9116.806328615788-0.906328615787921
34111.4110.9937541960670.406245803933119
35108.2103.7576599263674.44234007363271
36108.8105.5130318273463.28696817265369
37109.5111.124867664796-1.62486766479561
38124.8123.7346303352751.06536966472463
39115.3115.380219289473-0.0802192894729799
40109.5114.880845660569-5.380845660569
41124.2124.0805891607840.119410839215884
4292.9101.298211801874-8.39821180187434
4398.496.64390902964271.75609097035732
44120.9119.2131858714381.68681412856235
45111.7117.188340407384-5.48834040738406
46116.1113.7319592444012.36804075559896
47109.4104.3249308293015.07506917069902
48111.7105.4124871869026.28751281309837
49114.3116.863513215025-2.56351321502546
50133.7126.0006353098227.69936469017775
51114.3121.747599918457-7.4475999184575
52126.5120.3661755300036.13382446999685
53131132.136257891029-1.13625789102949
54104107.714264215072-3.714264215072
55108.9112.257747160720-3.35774716072038
56128.5125.2857390612823.2142609387175
57132.4127.7447506311154.65524936888507
58128125.2419523223752.75804767762528
59116.4117.579343427725-1.17934342772548
60120.9120.8565435453150.0434564546849588
61118.6122.026541541430-3.42654154142973
62133.1131.2225937533731.87740624662739
63121.1126.140841585344-5.0408415853441
64127.6121.7197085272265.880291472774
65135.4134.2073265626961.19267343730371
66114.9113.6673400710251.23265992897527
67114.3116.250028267908-1.95002826790794
68128.9133.992909946911-5.09290994691142
69138.9134.6461049554204.25389504457978
70129.4126.8952842137402.50471578626034
71115119.728883288864-4.72888328886355
72128121.7152467565006.28475324349969
73127119.6469946103257.35300538967546
74128.8133.262915122337-4.46291512233657
75137.9130.0472916224177.8527083775834
76128.4124.2849382185844.11506178141581
77135.9134.2858645458281.61413545417155
78122.2121.5427729019140.657227098085938
79113.1110.9204833348692.17951666513075
80136.2134.3518998580661.84810014193362
81138137.3848718882710.615128111729184
82115.2124.276531081327-9.07653108132743
83111116.659100549398-5.65910054939792
8499.2112.021572716939-12.8215727169386
85102.4103.066628879706-0.666628879706384
86112.7116.878125556882-4.17812555688236
87105.5102.3024149810443.1975850189556
8898.3105.835194482611-7.53519448261052
89116.4112.2737786944964.12622130550369
9097.492.770493613134.62950638686991
9193.391.83021886252631.46978113747370
92117.4118.942661722829-1.54266172282857


Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
210.3792759163528840.7585518327057670.620724083647116
220.2220534398251740.4441068796503490.777946560174826
230.3179414906071550.6358829812143090.682058509392846
240.2046463987582730.4092927975165460.795353601241727
250.1533062512599580.3066125025199150.846693748740042
260.2300748489278760.4601496978557530.769925151072124
270.1541428168060660.3082856336121310.845857183193934
280.1342348636817710.2684697273635430.865765136318228
290.1109347154563110.2218694309126220.88906528454369
300.1213483619999120.2426967239998250.878651638000088
310.1308288496953720.2616576993907440.869171150304628
320.09057038652227930.1811407730445590.90942961347772
330.05968519486588320.1193703897317660.940314805134117
340.03765623164254950.0753124632850990.96234376835745
350.02601814467197430.05203628934394860.973981855328026
360.02335025958588330.04670051917176670.976649740414117
370.01411191010098520.02822382020197040.985888089899015
380.008042080719248880.01608416143849780.99195791928075
390.004832366987776250.00966473397555250.995167633012224
400.00583230268743480.01166460537486960.994167697312565
410.003274081223171570.006548162446343140.996725918776828
420.02550789717539340.05101579435078680.974492102824607
430.01578817222071510.03157634444143010.984211827779285
440.009469560410971940.01893912082194390.990530439589028
450.01579746819514150.0315949363902830.984202531804859
460.009885945076939730.01977189015387950.99011405492306
470.007030638670685440.01406127734137090.992969361329315
480.01104401650187740.02208803300375480.988955983498123
490.008493925514878780.01698785102975760.991506074485121
500.01835040893372970.03670081786745950.98164959106627
510.03869867771206170.07739735542412340.961301322287938
520.04459221507398180.08918443014796360.955407784926018
530.03721508050748270.07443016101496550.962784919492517
540.04818131202057220.09636262404114440.951818687979428
550.0636478889399070.1272957778798140.936352111060093
560.04300740924892840.08601481849785670.956992590751072
570.05358090082041140.1071618016408230.946419099179589
580.0449003384781160.0898006769562320.955099661521884
590.06957442914362130.1391488582872430.930425570856379
600.04782399163838440.09564798327676870.952176008361616
610.06924977064366420.1384995412873280.930750229356336
620.04912208455862590.09824416911725190.950877915441374
630.1661539275291330.3323078550582650.833846072470867
640.1718135047093400.3436270094186790.82818649529066
650.1673967981816480.3347935963632950.832603201818352
660.1200815376762710.2401630753525420.879918462323729
670.1222016985281690.2444033970563370.877798301471831
680.5613666323096160.8772667353807680.438633367690384
690.54824599286170.90350801427660.4517540071383
700.4148472506707470.8296945013414940.585152749329253
710.2837385089591820.5674770179183630.716261491040818


Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level20.0392156862745098NOK
5% type I error level140.274509803921569NOK
10% type I error level250.490196078431373NOK
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2009/Dec/28/t1262009976ln7t2g7189j7g72/105mdy1262009908.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/28/t1262009976ln7t2g7189j7g72/105mdy1262009908.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/28/t1262009976ln7t2g7189j7g72/1ly2i1262009908.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/28/t1262009976ln7t2g7189j7g72/1ly2i1262009908.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/28/t1262009976ln7t2g7189j7g72/2ynxy1262009908.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/28/t1262009976ln7t2g7189j7g72/2ynxy1262009908.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/28/t1262009976ln7t2g7189j7g72/32mhi1262009908.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/28/t1262009976ln7t2g7189j7g72/32mhi1262009908.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/28/t1262009976ln7t2g7189j7g72/4vyls1262009908.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/28/t1262009976ln7t2g7189j7g72/4vyls1262009908.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/28/t1262009976ln7t2g7189j7g72/5aptv1262009908.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/28/t1262009976ln7t2g7189j7g72/5aptv1262009908.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/28/t1262009976ln7t2g7189j7g72/686h11262009908.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/28/t1262009976ln7t2g7189j7g72/686h11262009908.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/28/t1262009976ln7t2g7189j7g72/7esam1262009908.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/28/t1262009976ln7t2g7189j7g72/7esam1262009908.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/28/t1262009976ln7t2g7189j7g72/893lv1262009908.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/28/t1262009976ln7t2g7189j7g72/893lv1262009908.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/28/t1262009976ln7t2g7189j7g72/9m0rv1262009908.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/28/t1262009976ln7t2g7189j7g72/9m0rv1262009908.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