Home » date » 2009 » Dec » 28 »

paper multiple regressie 2 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 08:30:17 -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/t12620142646gjbxzmngmeaqks.htm/, Retrieved Mon, 28 Dec 2009 16:31:16 +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/t12620142646gjbxzmngmeaqks.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 «
91.6 0 104.6 111.6 98.3 0 91.6 104.6 97.7 0 98.3 91.6 106.3 0 97.7 98.3 102.3 0 106.3 97.7 106.6 0 102.3 106.3 108.1 0 106.6 102.3 93.8 0 108.1 106.6 88.2 0 93.8 108.1 108.9 0 88.2 93.8 114.2 0 108.9 88.2 102.5 0 114.2 108.9 94.2 0 102.5 114.2 97.4 0 94.2 102.5 98.5 0 97.4 94.2 106.5 0 98.5 97.4 102.9 0 106.5 98.5 97.1 0 102.9 106.5 103.7 0 97.1 102.9 93.4 0 103.7 97.1 85.8 0 93.4 103.7 108.6 0 85.8 93.4 110.2 0 108.6 85.8 101.2 0 110.2 108.6 101.2 0 101.2 110.2 96.9 0 101.2 101.2 99.4 0 96.9 101.2 118.7 0 99.4 96.9 108.0 0 118.7 99.4 101.2 0 108.0 118.7 119.9 0 101.2 108.0 94.8 0 119.9 101.2 95.3 0 94.8 119.9 118.0 0 95.3 94.8 115.9 0 118.0 95.3 111.4 0 115.9 118.0 108.2 0 111.4 115.9 108.8 0 108.2 111.4 109.5 0 108.8 108.2 124.8 0 109.5 108.8 115.3 0 124.8 109.5 109.5 0 115.3 124.8 124.2 0 109.5 115.3 92.9 0 124.2 109.5 98.4 0 92.9 124.2 120.9 0 98.4 92.9 111.7 0 120.9 98.4 116.1 0 111.7 120.9 109.4 0 116.1 111.7 111.7 0 109.4 116.1 114.3 0 111.7 109.4 133. 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 time7 seconds
R Server'Gwilym Jenkins' @ 72.249.127.135


Multiple Linear Regression - Estimated Regression Equation
y[t] = + 36.8472879000015 -11.7370202770488dummy[t] + 0.181702401154939y1[t] + 0.398199895750638y2[t] -6.57944589025193M1[t] -0.385809419381148M2[t] + 2.9364369009721M3[t] + 14.0523966076367M4[t] + 4.18719139691463M5[t] -1.04841000566624M6[t] + 11.8171055119117M7[t] -9.72042959471114M8[t] -12.2101762942471M9[t] + 18.7224391046008M10[t] + 16.9993335335749M11[t] + 0.186416117482880t + e[t]


Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STAT
H0: parameter = 0
2-tail p-value1-tail p-value
(Intercept)36.847287900001510.4598273.52270.0007170.000359
dummy-11.73702027704882.621675-4.47692.6e-051.3e-05
y10.1817024011549390.1008191.80230.0753680.037684
y20.3981998957506380.093824.24436e-053e-05
M1-6.579445890251932.638941-2.49320.0147770.007388
M2-0.3858094193811482.850528-0.13530.8926860.446343
M32.93643690097212.8614841.02620.3079720.153986
M414.05239660763672.8247654.97474e-062e-06
M54.187191396914632.7205311.53910.1278250.063913
M6-1.048410005666242.662367-0.39380.6948110.347406
M711.81710551191172.7026974.37233.8e-051.9e-05
M8-9.720429594711142.643815-3.67670.0004320.000216
M9-12.21017629424713.363922-3.62970.0005050.000253
M1018.72243910460083.2603485.742500
M1116.99933353357493.1694115.36361e-060
t0.1864161174828800.0465084.00820.0001396.9e-05


Multiple Linear Regression - Regression Statistics
Multiple R0.943104661617373
R-squared0.88944640276442
Adjusted R-squared0.868186095603732
F-TEST (value)41.8360090492513
F-TEST (DF numerator)15
F-TEST (DF denominator)78
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation4.79920393781965
Sum Squared Residuals1796.52395806913


Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolation
Forecast
Residuals
Prediction Error
191.693.8994376538101-2.29943765381014
298.395.12995975689523.1700402431048
397.794.67942963771113.02057036228890
4106.3108.540723322695-2.24072332269497
5102.3100.1856549419382.11434505806219
6106.697.83417915567558.76582084432444
7108.1110.0746315327-1.97463153270003
893.890.70832569702023.09167430297979
988.286.40395062207751.7960493779225
10108.9110.811190182706-1.91119018270649
11114.2110.8058210168673.39417898313289
12102.5103.198664168935-0.69866416893451
1394.296.790175750131-2.59017575013104
1497.497.00315962861620.396840371383766
1598.597.7882106154180.711789384582096
16106.5110.564698747238-4.06469874723791
17102.9102.7775487485640.122451251436144
1897.1100.259833985313-3.15983398531319
19103.7110.824372068973-7.12437206897303
2093.488.3629295321025.037070467898
2185.886.8161835301073-1.01618353010729
22108.6112.452817871429-3.85281787142894
23110.2112.032623956514-1.83262395651365
24101.2104.589388005384-3.3893880053841
25101.297.19815645542164.00184354457838
2696.999.9944099820195-3.09440998201954
2799.4102.721752094889-3.32175209488944
28118.7112.7661243701975.93387562980342
29108107.5896913586240.410308641375751
30101.2108.281548369156-7.0815483691557
31119.9115.8371647918314.06283520816892
3294.895.1761214131842-0.376121413184189
3395.395.758398612679-0.458398612679079
34118116.9734639462461.02653605375370
35115.9119.760518946796-3.86051894679569
36111.4111.605164121818-0.205164121817798
37108.2103.5582537627754.64174623722481
38108.8107.5649591365551.23504086344482
39109.5109.908403348682-0.40840334868223
40124.8121.5768907910893.22310920891139
41115.3114.9568883625450.343111637454628
42109.5114.273988671460-4.7739886714602
43124.2122.4891473701911.71085262980871
4492.9101.499494282675-8.59949428267527
4598.499.362417012007-0.962417012006983
46120.9119.0171549976951.88284500230505
47111.7123.758868996767-12.0588689967666
48116.1114.2337871444381.86621285556153
49109.4104.9768088958454.42319110415472
50111.7111.891534937764-0.191534937763654
51114.3113.1501735967271.14982640327312
52133.7125.8408354241047.85916457589627
53114.3120.722392642222-6.42239264222195
54126.5119.8732587522806.62674124771951
55131127.4168817038693.58311829613082
56104111.741462248084-7.74146224808426
57108.9106.3240663657262.5759336342743
58128.5127.5820424624480.917957537551546
59132.4131.5578995607200.842100439279676
60128123.2583394658454.7416605341549
61116.4117.618798721422-1.21879872142180
62120.9120.1390239150750.760976084924634
63118.6119.846228367401-1.24622836740134
64133.1132.5225881997700.577411800229614
65121.1124.562624163051-3.46262416305128
66127.6123.1069085524784.49309144752174
67135.4132.5615070460382.83849295396151
68114.9115.215966108286-0.315966108286235
69114.3112.2936954894122.00630451058809
70128.9135.140607702162-6.24060770216161
71138.9136.0178533680302.88214663196970
72129.4126.8356784414472.56432155855299
73115122.698474815212-7.69847481521242
74128122.6791138173045.32088618269609
75127122.8158289713454.18417102865494
76128.8139.113101039096-10.3131010390959
77137.9129.3631763721858.53682362781506
78128.4126.6842427499481.71575725005195
79135.9141.633620625368-5.73362062536772
80122.2117.8623706352594.33762936474122
81113.1116.056216375513-2.95621637551284
82136.2128.3293971925017.87060280749886
83138127.36641415430610.6335858456936
84115.2120.078978652133-4.87897865213301
85111110.2598939453830.740106054617501
8699.2106.797838825771-7.59783882577088
87102.4106.489973367826-4.08997336782605
88112.7113.675038105812-0.975038105811883
89105.5107.142023410871-1.64202341087054
9098.3104.886039763689-6.58603976368855
91116.4113.7626748610292.63732513897082
9297.492.8333300833894.56666991661094
9393.394.2850719924787-0.98507199247871
94117.4117.0933256448120.306674355187901


Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
190.3509480877074470.7018961754148950.649051912292553
200.2616985328576120.5233970657152240.738301467142388
210.1492253853523500.2984507707047000.85077461464765
220.0820733794032110.1641467588064220.91792662059679
230.04726571771731480.09453143543462950.952734282282685
240.02310514985572710.04621029971145420.976894850144273
250.1153199681443660.2306399362887320.884680031855634
260.07133665576465760.1426733115293150.928663344235342
270.04311002752492790.08622005504985580.956889972475072
280.1818673094839020.3637346189678030.818132690516098
290.1293281475531740.2586562951063470.870671852446826
300.1061646151706840.2123292303413670.893835384829316
310.2515290285407710.5030580570815420.74847097145923
320.1926077506925370.3852155013850740.807392249307463
330.1522938204028900.3045876408057810.84770617959711
340.1410300770598780.2820601541197550.858969922940122
350.1060065325018170.2120130650036330.893993467498183
360.08675460286438020.1735092057287600.91324539713562
370.0955671142030110.1911342284060220.904432885796989
380.07230648232933190.1446129646586640.927693517670668
390.04982854381945270.09965708763890540.950171456180547
400.04318293255706520.08636586511413050.956817067442935
410.02866662146596060.05733324293192120.97133337853404
420.02271986730997150.04543973461994290.977280132690029
430.01769063888797990.03538127777595980.98230936111202
440.04059612009116940.08119224018233890.95940387990883
450.02721070571099990.05442141142199970.972789294289
460.01980521471851000.03961042943701990.98019478528149
470.1029761101804370.2059522203608740.897023889819563
480.0822032397249160.1644064794498320.917796760275084
490.07122882083909470.1424576416781890.928771179160905
500.05029164268563750.1005832853712750.949708357314363
510.03600628108835820.07201256217671640.963993718911642
520.0705772934592970.1411545869185940.929422706540703
530.07809165306403150.1561833061280630.921908346935969
540.1059930668191190.2119861336382380.89400693318088
550.0967712955146530.1935425910293060.903228704485347
560.156235173467870.312470346935740.84376482653213
570.1236301632538150.2472603265076310.876369836746185
580.09188939213872050.1837787842774410.90811060786128
590.09768034540626660.1953606908125330.902319654593733
600.08940444652767380.1788088930553480.910595553472326
610.06378312487298620.1275662497459720.936216875127014
620.04288100176593130.08576200353186260.957118998234069
630.02881217137787320.05762434275574640.971187828622127
640.02173263781354190.04346527562708390.978267362186458
650.02314896243307610.04629792486615220.976851037566924
660.02114639576279540.04229279152559090.978853604237205
670.01389042179202230.02778084358404450.986109578207978
680.01033503113574470.02067006227148940.989664968864255
690.006206861841247210.01241372368249440.993793138158753
700.02082284389934290.04164568779868590.979177156100657
710.04596983799575320.09193967599150630.954030162004247
720.02644772524759380.05289545049518750.973552274752406
730.4809764229940180.9619528459880360.519023577005982
740.376352544835820.752705089671640.62364745516418
750.3164151040231920.6328302080463830.683584895976808


Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level00OK
5% type I error level110.192982456140351NOK
10% type I error level230.403508771929825NOK
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2009/Dec/28/t12620142646gjbxzmngmeaqks/10qh5h1262014208.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/28/t12620142646gjbxzmngmeaqks/10qh5h1262014208.ps (open in new window)


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


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


http://www.freestatistics.org/blog/date/2009/Dec/28/t12620142646gjbxzmngmeaqks/3b5zc1262014207.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/28/t12620142646gjbxzmngmeaqks/3b5zc1262014207.ps (open in new window)


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


http://www.freestatistics.org/blog/date/2009/Dec/28/t12620142646gjbxzmngmeaqks/5022r1262014207.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/28/t12620142646gjbxzmngmeaqks/5022r1262014207.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/28/t12620142646gjbxzmngmeaqks/6eeeo1262014208.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/28/t12620142646gjbxzmngmeaqks/6eeeo1262014208.ps (open in new window)


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


http://www.freestatistics.org/blog/date/2009/Dec/28/t12620142646gjbxzmngmeaqks/8484u1262014208.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/28/t12620142646gjbxzmngmeaqks/8484u1262014208.ps (open in new window)


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