Home » date » 2008 » Dec » 10 »

Multiple regression zonder

*Unverified author*
R Software Module: rwasp_multipleregression.wasp (opens new window with default values)
Title produced by software: Multiple Regression
Date of computation: Wed, 10 Dec 2008 02:19:48 -0700
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2008/Dec/10/t12289015479qi3apt7753bcis.htm/, Retrieved Wed, 10 Dec 2008 09:32:40 +0000
 
BibTeX entries for LaTeX users:
@Manual{KEY,
    author = {{YOUR NAME}},
    publisher = {Office for Research Development and Education},
    title = {Statistical Computations at FreeStatistics.org, URL http://www.freestatistics.org/blog/date/2008/Dec/10/t12289015479qi3apt7753bcis.htm/},
    year = {2008},
}
@Manual{R,
    title = {R: A Language and Environment for Statistical Computing},
    author = {{R Development Core Team}},
    organization = {R Foundation for Statistical Computing},
    address = {Vienna, Austria},
    year = {2008},
    note = {{ISBN} 3-900051-07-0},
    url = {http://www.R-project.org},
}
 
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
 
Feedback Forum:
2008-11-27 13:41:43 [a2386b643d711541400692649981f2dc] [reply
test

Post a new message
 
Original text written by user:
 
IsPrivate?
No (this computation is public)
 
User-defined keywords:
 
Dataseries X:
» Textbox « » Textfile « » CSV «
6,4 12,5 6,8 14,8 7,5 15,9 7,5 14,8 7,6 12,9 7,6 14,3 7,4 14,2 7,3 15,9 7,1 15,3 6,9 15,5 6,8 15,1 7,5 15 7,6 12,1 7,8 15,8 8 16,9 8,1 15,1 8,2 13,7 8,3 14,8 8,2 14,7 8 16 7,9 15,4 7,6 15 7,6 15,5 8,2 15,1 8,3 11,7 8,4 16,3 8,4 16,7 8,4 15 8,6 14,9 8,9 14,6 8,8 15,3 8,3 17,9 7,5 16,4 7,2 15,4 7,5 17,9 8,8 15,9 9,3 13,9 9,3 17,8 8,7 17,9 8,2 17,4 8,3 16,7 8,5 16 8,6 16,6 8,6 19,1 8,2 17,8 8,1 17,2 8 18,6 8,6 16,3 8,7 15,1 8,8 19,2 8,5 17,7 8,4 19,1 8,5 18 8,7 17,5 8,7 17,8 8,6 21,1 8,5 17,2 8,3 19,4 8,1 19,8 8,2 17,6 8,1 16,2 8,1 19,5 7,9 19,9 7,9 20 7,9 17,3 8 18,9 8 18,6 7,9 21,4 8 18,6 7,7 19,8 7,2 20,8 7,5 19,6 7,3 17,7 7 19,8 7 22,2 7 20,7 7,2 17,9 7,3 21,2 7,1 21,4 6,8 21,7 6,6 23,2 6,2 21,5 6,2 22,9 6,8 23,2 6,9 18,6
 
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
Werkloosheid[t] = + 9.15164512364859 -0.0739891523477135export[t] + e[t]


Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STAT
H0: parameter = 0
2-tail p-value1-tail p-value
(Intercept)9.151645123648590.49201718.600300
export-0.07398915234771350.028102-2.63290.0100940.005047


Multiple Linear Regression - Regression Statistics
Multiple R0.277637689013702
R-squared0.0770826863608693
Adjusted R-squared0.0659632006543739
F-TEST (value)6.9322168664546
F-TEST (DF numerator)1
F-TEST (DF denominator)83
p-value0.0100942975113051
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation0.6740199854038
Sum Squared Residuals37.7071440800703


Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolation
Forecast
Residuals
Prediction Error
16.48.22678071930217-1.82678071930217
26.88.05660566890243-1.25660566890243
37.57.97521760131994-0.475217601319943
47.58.05660566890243-0.556605668902428
57.68.19718505836308-0.597185058363084
67.68.09360024507628-0.493600245076285
77.48.10099916031106-0.700999160311056
87.37.97521760131994-0.675217601319943
97.18.01961109272857-0.919611092728572
106.98.00481326225903-1.10481326225903
116.88.03440892319811-1.23440892319811
127.58.04180783843289-0.541807838432885
137.68.25637638024125-0.656376380241255
147.87.98261651655471-0.182616516554715
1587.901228448972230.0987715510277703
168.18.034408923198110.0655910768018856
178.28.137993736484910.0620062635150863
188.38.056605668902430.243394331097573
198.28.06400458413720.135995415862800
2087.967818686085170.0321813139148282
217.98.0122121774938-0.112212177493800
227.68.04180783843289-0.441807838432886
237.68.00481326225903-0.404813262259029
248.28.034408923198110.165591076801885
258.38.285972041180340.0140279588196606
268.47.945621940380860.454378059619143
278.47.916026279441770.483973720558228
288.48.041807838432890.358192161567115
298.68.049206753667660.550793246332343
308.98.071403499371970.82859650062803
318.88.019611092728570.78038890727143
328.37.827239296624520.472760703375484
337.57.93822302514609-0.438223025146086
347.28.0122121774938-0.8122121774938
357.57.82723929662452-0.327239296624516
368.87.975217601319940.824782398680058
379.38.123195906015371.17680409398463
389.37.834638211859291.46536178814071
398.77.827239296624520.872760703375483
408.27.864233872798370.335766127201626
418.37.916026279441770.383973720558228
428.57.967818686085170.532181313914828
438.67.923425194676540.676574805323456
448.67.738452313807260.86154768619274
458.27.834638211859290.365361788140712
468.17.879031703267920.220968296732084
4787.775446889981120.224553110018883
488.67.945621940380860.654378059619142
498.78.034408923198110.665591076801885
508.87.731053398572491.06894660142751
518.57.842037127094060.657962872905941
528.47.738452313807260.66154768619274
538.57.819840381389740.680159618610255
548.77.85683495756360.843165042436398
558.77.834638211859290.865361788140712
568.67.590474009111831.00952599088817
578.57.879031703267920.620968296732084
588.37.716255568102950.583744431897055
598.17.686659907163860.413340092836139
608.27.849436042328830.350563957671169
618.17.953020855615630.146979144384371
628.17.708856652868170.391143347131825
637.97.679260991929090.220739008070911
647.97.671862076694320.228137923305683
657.97.871632788033140.0283672119668562
6687.75325014427680.246749855723197
6787.775446889981120.224553110018883
687.97.568277263407520.331722736592482
6987.775446889981120.224553110018883
707.77.686659907163860.0133400928361399
717.27.61267075481615-0.412670754816147
727.57.7014577376334-0.201457737633403
737.37.84203712709406-0.542037127094059
7477.68665990716386-0.68665990716386
7577.50908594152935-0.509085941529348
7677.62006967005092-0.620069670050918
777.27.82723929662452-0.627239296624516
787.37.58307509387706-0.283075093877062
797.17.56827726340752-0.468277263407519
806.87.5460805177032-0.746080517703205
816.67.43509678918163-0.835096789181635
826.27.56087834817275-1.36087834817275
836.27.45729353488595-1.25729353488595
846.87.43509678918163-0.635096789181635
856.97.77544688998112-0.875446889981116


Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
50.491068438936360.982136877872720.50893156106364
60.3911528002421840.7823056004843670.608847199757816
70.2719972576791440.5439945153582890.728002742320856
80.1859089767094260.3718179534188520.814091023290574
90.1381285321373370.2762570642746750.861871467862663
100.1351483140385130.2702966280770260.864851685961487
110.1481730597414850.2963461194829690.851826940258515
120.1207219352018240.2414438704036480.879278064798176
130.138793038839630.277586077679260.86120696116037
140.1500822236815940.3001644473631880.849917776318406
150.1623143385660640.3246286771321280.837685661433936
160.2151945085153360.4303890170306710.784805491484664
170.3279600877917650.6559201755835310.672039912208235
180.4110492788985750.822098557797150.588950721101425
190.4437318846060210.8874637692120420.556268115393979
200.4025128549220080.8050257098440160.597487145077992
210.3627856800813480.7255713601626970.637214319918652
220.3398570125992240.6797140251984480.660142987400776
230.3157359508087910.6314719016175820.684264049191209
240.3260273736209320.6520547472418650.673972626379068
250.4653728717396160.9307457434792330.534627128260384
260.4869020447439540.9738040894879080.513097955256046
270.483828661835340.967657323670680.51617133816466
280.5020924499396630.9958151001206740.497907550060337
290.5510866511537920.8978266976924160.448913348846208
300.6590944414040340.6818111171919320.340905558595966
310.7024184538425440.5951630923149110.297581546157456
320.6519646886882610.6960706226234770.348035311311739
330.676205000759310.6475899984813810.323794999240690
340.8272286615330910.3455426769338170.172771338466909
350.8302782511828140.3394434976343720.169721748817186
360.8493314002345330.3013371995309340.150668599765467
370.9210607912426380.1578784175147250.0789392087573624
380.9703408120002720.05931837599945540.0296591879997277
390.9689376450673720.06212470986525640.0310623549326282
400.9562109978671240.08757800426575140.0437890021328757
410.941254260815730.1174914783685410.0587457391842705
420.927367564035480.1452648719290410.0726324359645203
430.9109549271158710.1780901457682580.0890450728841289
440.9132444468770840.1735111062458320.0867555531229159
450.8853810966217270.2292378067565470.114618903378273
460.8547147876856680.2905704246286640.145285212314332
470.8205191774527640.3589616450944710.179480822547235
480.7900810441872360.4198379116255280.209918955812764
490.7740498961806170.4519002076387650.225950103819383
500.8213920401972140.3572159196055730.178607959802786
510.788880850676170.4222382986476620.211119149323831
520.7778468264367210.4443063471265580.222153173563279
530.7511595879583310.4976808240833370.248840412041669
540.7448274463077770.5103451073844470.255172553692223
550.7548876445155020.4902247109689960.245112355484498
560.9046219786686180.1907560426627630.0953780213313815
570.8905000070799410.2189999858401180.109499992920059
580.9099241055260750.1801517889478510.0900758944739255
590.9231074479956920.1537851040086160.0768925520043082
600.9037318213601070.1925363572797860.096268178639893
610.8686175753513090.2627648492973820.131382424648691
620.8831958776476760.2336082447046480.116804122352324
630.8911951330083940.2176097339832110.108804866991606
640.9048658971832260.1902682056335480.095134102816774
650.870019538579910.2599609228401790.129980461420090
660.871811209516740.256377580966520.12818879048326
670.8761250456908320.2477499086183350.123874954309168
680.958432539412420.08313492117515980.0415674605875799
690.9755990518703630.04880189625927460.0244009481296373
700.9866836918682540.02663261626349140.0133163081317457
710.9846407451584780.03071850968304430.0153592548415221
720.9869760713019940.02604785739601280.0130239286980064
730.9772015168197550.04559696636048910.0227984831802445
740.9635327782696530.0729344434606930.0364672217303465
750.9533678222434960.09326435551300860.0466321777565043
760.9249923690222760.1500152619554490.0750076309777244
770.8710701542147720.2578596915704560.128929845785228
780.8949293998752060.2101412002495880.105070600124794
790.8939728044717450.2120543910565110.106027195528255
800.8164351256752110.3671297486495770.183564874324789


Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level00OK
5% type I error level50.0657894736842105NOK
10% type I error level110.144736842105263NOK
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/10/t12289015479qi3apt7753bcis/10pn8a1228900779.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/10/t12289015479qi3apt7753bcis/10pn8a1228900779.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/10/t12289015479qi3apt7753bcis/1j7yj1228900779.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/10/t12289015479qi3apt7753bcis/1j7yj1228900779.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/10/t12289015479qi3apt7753bcis/2odki1228900779.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/10/t12289015479qi3apt7753bcis/2odki1228900779.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/10/t12289015479qi3apt7753bcis/3k5yz1228900779.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/10/t12289015479qi3apt7753bcis/3k5yz1228900779.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/10/t12289015479qi3apt7753bcis/4shzc1228900779.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/10/t12289015479qi3apt7753bcis/4shzc1228900779.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/10/t12289015479qi3apt7753bcis/5xvwe1228900779.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/10/t12289015479qi3apt7753bcis/5xvwe1228900779.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/10/t12289015479qi3apt7753bcis/6bhn51228900779.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/10/t12289015479qi3apt7753bcis/6bhn51228900779.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/10/t12289015479qi3apt7753bcis/7s4lt1228900779.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/10/t12289015479qi3apt7753bcis/7s4lt1228900779.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/10/t12289015479qi3apt7753bcis/8nwku1228900779.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/10/t12289015479qi3apt7753bcis/8nwku1228900779.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/10/t12289015479qi3apt7753bcis/9k8241228900779.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/10/t12289015479qi3apt7753bcis/9k8241228900779.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