Home » date » 2009 » Dec » 28 »

paper multiple regressie 3 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:28:09 -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/t12620141309hcx4ygvffh85q0.htm/, Retrieved Mon, 28 Dec 2009 16:29:02 +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/t12620141309hcx4ygvffh85q0.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 «
98.3 0 91.6 104.6 111.6 97.7 0 98.3 91.6 104.6 106.3 0 97.7 98.3 91.6 102.3 0 106.3 97.7 98.3 106.6 0 102.3 106.3 97.7 108.1 0 106.6 102.3 106.3 93.8 0 108.1 106.6 102.3 88.2 0 93.8 108.1 106.6 108.9 0 88.2 93.8 108.1 114.2 0 108.9 88.2 93.8 102.5 0 114.2 108.9 88.2 94.2 0 102.5 114.2 108.9 97.4 0 94.2 102.5 114.2 98.5 0 97.4 94.2 102.5 106.5 0 98.5 97.4 94.2 102.9 0 106.5 98.5 97.4 97.1 0 102.9 106.5 98.5 103.7 0 97.1 102.9 106.5 93.4 0 103.7 97.1 102.9 85.8 0 93.4 103.7 97.1 108.6 0 85.8 93.4 103.7 110.2 0 108.6 85.8 93.4 101.2 0 110.2 108.6 85.8 101.2 0 101.2 110.2 108.6 96.9 0 101.2 101.2 110.2 99.4 0 96.9 101.2 101.2 118.7 0 99.4 96.9 101.2 108.0 0 118.7 99.4 96.9 101.2 0 108.0 118.7 99.4 119.9 0 101.2 108.0 118.7 94.8 0 119.9 101.2 108.0 95.3 0 94.8 119.9 101.2 118.0 0 95.3 94.8 119.9 115.9 0 118.0 95.3 94.8 111.4 0 115.9 118.0 95.3 108.2 0 111.4 115.9 118.0 108.8 0 108.2 111.4 115.9 109.5 0 108.8 108.2 111.4 124.8 0 109.5 108.8 108.2 115.3 0 124.8 109.5 108.8 109 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 time4 seconds
R Server'Gwilym Jenkins' @ 72.249.127.135


Multiple Linear Regression - Estimated Regression Equation
y[t] = + 19.9869861030992 -11.4392342516194dummy[t] -0.0153629225854587y1[t] + 0.252785801061932y2[t] + 0.436717755047556y3[t] + 2.46239864370432M1[t] + 8.5760007948152M2[t] + 23.4911860732244M3[t] + 15.3944276119058M4[t] + 10.2122519761235M5[t] + 16.4686381722918M6[t] -0.168390336112841M7[t] -4.48865165693964M8[t] + 18.7822099556609M9[t] + 29.5701203060938M10[t] + 16.7070692222148M11[t] + 0.149834959699562t + e[t]


Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STAT
H0: parameter = 0
2-tail p-value1-tail p-value
(Intercept)19.98698610309929.2976212.14970.0347620.017381
dummy-11.43923425161942.358966-4.84936e-063e-06
y1-0.01536292258545870.099791-0.1540.8780570.439028
y20.2527858010619320.0892412.83260.0059080.002954
y30.4367177550475560.0929194.71.1e-056e-06
M12.462398643704322.4199171.01760.3121180.156059
M28.57600079481522.5002283.43010.0009780.000489
M323.49118607322442.5402499.247600
M415.39442761190582.8920955.32291e-061e-06
M510.21225197612352.4598964.15158.5e-054.3e-05
M616.46863817229182.3547846.993700
M7-0.1683903361128412.688842-0.06260.9502290.475115
M8-4.488651656939642.538528-1.76820.0810390.040519
M918.78220995566093.0233276.212400
M1029.57012030609383.4567388.554300
M1116.70706922221483.3008715.06143e-061e-06
t0.1498349596995620.0427713.50320.0007740.000387


Multiple Linear Regression - Regression Statistics
Multiple R0.955143286174588
R-squared0.912298697124391
Adjusted R-squared0.893835264940052
F-TEST (value)49.4111110012489
F-TEST (DF numerator)16
F-TEST (DF denominator)76
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation4.27202823081276
Sum Squared Residuals1387.01711556945


Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolation
Forecast
Residuals
Prediction Error
198.396.37107225206041.92892774793964
297.796.18833808241011.51166191758987
3106.3107.278910125567-0.978910125566887
4102.3101.9742029678940.325797032105604
5106.698.91524121825777.68475878174234
6108.1108.0000312961690.0999687038308122
793.890.8299012879622.97009871203797
888.289.1362297681043-0.936229768104264
9108.9109.683198384269-0.783198384268638
10114.2112.6422668137551.55773318624480
11102.5102.634673853589-0.134673853588572
1294.296.6370080604358-2.43700806043581
1397.498.7337641506264-1.33376415062643
1498.597.7403200262930.759679973707028
15106.5109.972598246061-3.47259824606125
16102.9103.578332561079-0.678332561078777
1797.1101.103974345352-4.00397434535152
18103.7110.183013608772-6.48301360877245
1993.490.5560832066732.84391679332703
2085.885.67931825590890.120681744091103
21108.6109.495416472234-0.895416472234476
22110.2113.663522182358-3.46352218235792
23101.2103.370186707892-2.17018670789242
24101.297.31284084542963.88715915457036
2596.998.3487506473522-1.44875064735223
2699.4100.747788529852-1.34778852985214
27118.7114.6874225169314.01257748306902
28108105.1980727653632.80192723463711
29101.2106.300675709059-5.10067570905878
30119.9118.5352093395631.36479066043717
3194.895.3689057122798-0.56890571227976
3295.393.34150245358231.95849754641773
33118118.576215977324-0.576215977324466
34115.9118.330000193604-2.43000019360428
35111.4111.605642768484-0.205642768483977
36108.2104.5001845149533.69981548504725
37108.8105.1069360802523.69306391974846
38109.5108.5870109763990.912989023601475
39124.8122.3954518331822.40454816681753
40115.3114.6524563297780.647543670222247
41109.5113.939388603038-4.43938860303777
42124.2124.715031252040-0.515031252040463
4392.9102.387026422218-9.48702642221821
4498.499.8804478343504-1.48044783435038
45120.9121.724203758391-0.824203758391108
46111.7120.037339483203-8.33733948320283
47116.1115.5550904234650.544909576535312
48109.4106.4307794203742.96922057962636
49111.7106.2403987833355.45960121666492
50114.3112.6963944272931.60360557270673
51133.7125.3768694503048.3231305496963
52114.3118.793599169897-4.4935991698971
53126.5120.0988098956976.40119010430258
54131129.8858833033441.11411669665627
55104107.941218928037-3.94121892803712
56108.9110.651084193076-1.75108419307613
57128.5129.136515713749-0.63651571374936
58132.4129.2204187801263.17958121987377
59128123.5418059584104.45819404158955
60116.4116.597701178345-0.197701178344835
61120.9119.9790864037530.92091359624701
62118.6121.319516948401-2.71951694840123
63133.1132.4914820546840.608517945316374
64121.1125.705618730847-4.60561873084694
65127.6123.5185764045784.08142359542161
66135.4133.1239163990872.27608360091293
67114.9112.9193867005471.98061329945266
68114.3113.8742949085140.425705091485807
69128.9135.528498801967-6.62849880196692
70138.9137.1375599832401.76244001676042
71129.4127.6993566756811.70064332431871
72115120.192007412042-5.19200741204152
73128124.9911795410633.0088204589368
74127123.2659644500193.73403554998091
75128.8135.343827351834-6.54382735183364
76137.9132.7937956041175.10620439588301
77128.4127.6399490193710.760050980629402
78135.9137.278560688549-1.37856068854941
79122.2122.248811681298-0.0488116812978475
80113.1116.035932194604-2.93593219460411
81136.2127.9694147991218.23058520087926
82138130.2688925637147.73110743628605
83115.2119.393243612479-4.19324361247861
84111113.729478568422-2.72947856842180
8599.2111.428812141558-12.2288121415582
86102.4106.854666559333-4.45466655933264
87112.7117.053438421437-4.35343842143744
88105.5104.6039218710250.896078128974846
8998.3103.683384804648-5.38338480464786
90116.4112.8783541124753.52164588752515
9197.491.14866606098476.25133393901528
9293.388.70119039185984.59880960814024
93117.4115.2865360929442.1134639070557


Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
200.4065273135761660.8130546271523320.593472686423834
210.2561464991477620.5122929982955240.743853500852238
220.1607727389456390.3215454778912790.83922726105436
230.08822061139684730.1764412227936950.911779388603153
240.1733441340217890.3466882680435790.826655865978211
250.1051728976400040.2103457952800080.894827102359996
260.08159754178526730.1631950835705350.918402458214733
270.1983406796387920.3966813592775830.801659320361208
280.1457704171132460.2915408342264920.854229582886754
290.1190258055837640.2380516111675270.880974194416236
300.1047198370777270.2094396741554540.895280162922273
310.1038627157397320.2077254314794640.896137284260268
320.1073706769072940.2147413538145890.892629323092706
330.07354700957769250.1470940191553850.926452990422308
340.04945149034079630.09890298068159260.950548509659204
350.03152766519868310.06305533039736610.968472334801317
360.02284167777947570.04568335555895150.977158322220524
370.02092155566885490.04184311133770980.979078444331145
380.01261669380395190.02523338760790380.987383306196048
390.007874712151369680.01574942430273940.99212528784863
400.004898957536631550.00979791507326310.995101042463368
410.004902187582652470.009804375165304940.995097812417348
420.002728084700312920.005456169400625830.997271915299687
430.02572455843593960.05144911687187910.97427544156406
440.01703439254072130.03406878508144260.982965607459279
450.01084731725399000.02169463450797990.98915268274601
460.03034366400791290.06068732801582590.969656335992087
470.02213074422530140.04426148845060280.977869255774699
480.01539496334165430.03078992668330850.984605036658346
490.02451206048439220.04902412096878440.975487939515608
500.01627357937883180.03254715875766360.983726420621168
510.05182907641149120.1036581528229820.94817092358851
520.05086101329767510.1017220265953500.949138986702325
530.07059548800746170.1411909760149230.929404511992538
540.04975446467094890.09950892934189780.950245535329051
550.05292818573570180.1058563714714040.947071814264298
560.04281075501883810.08562151003767630.957189244981162
570.03000539186004120.06001078372008240.96999460813996
580.03098928289529150.0619785657905830.969010717104708
590.02547943991454440.05095887982908870.974520560085456
600.01816716817945410.03633433635890810.981832831820546
610.01354642481248380.02709284962496770.986453575187516
620.01000721769629800.02001443539259610.989992782303702
630.008299495323943750.01659899064788750.991700504676056
640.01085093895283170.02170187790566340.989149061047168
650.01151161084718890.02302322169437770.988488389152811
660.00688798210095610.01377596420191220.993112017899044
670.003985864511819570.007971729023639150.99601413548818
680.001976860726210770.003953721452421550.99802313927379
690.02201693118087910.04403386236175810.977983068819121
700.04840127550693380.09680255101386750.951598724493066
710.03385818298768520.06771636597537030.966141817012315
720.3735046418618410.7470092837236810.62649535813816
730.2463248822788110.4926497645576230.753675117721189


Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level50.0925925925925926NOK
5% type I error level230.425925925925926NOK
10% type I error level340.62962962962963NOK
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2009/Dec/28/t12620141309hcx4ygvffh85q0/108zy11262014082.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/28/t12620141309hcx4ygvffh85q0/108zy11262014082.ps (open in new window)


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


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


http://www.freestatistics.org/blog/date/2009/Dec/28/t12620141309hcx4ygvffh85q0/37p091262014082.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/28/t12620141309hcx4ygvffh85q0/37p091262014082.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/28/t12620141309hcx4ygvffh85q0/486zn1262014082.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/28/t12620141309hcx4ygvffh85q0/486zn1262014082.ps (open in new window)


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


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


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


http://www.freestatistics.org/blog/date/2009/Dec/28/t12620141309hcx4ygvffh85q0/8letw1262014082.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/28/t12620141309hcx4ygvffh85q0/8letw1262014082.ps (open in new window)


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