Home » date » 2008 » Dec » 14 »

met seizonaliteit en lineaire trend

*The author of this computation has been verified*
R Software Module: rwasp_multipleregression.wasp (opens new window with default values)
Title produced by software: Multiple Regression
Date of computation: Sun, 14 Dec 2008 06:53:47 -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/14/t1229262907g0diief4hrox2zx.htm/, Retrieved Sun, 14 Dec 2008 14:55:07 +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/2008/Dec/14/t1229262907g0diief4hrox2zx.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},
}
 
Original text written by user:
 
IsPrivate?
No (this computation is public)
 
User-defined keywords:
 
Dataseries X:
» Textbox « » Textfile « » CSV «
11554.5 180144 13182.1 173666 14800.1 165688 12150.7 161570 14478.2 156145 13253.9 153730 12036.8 182698 12653.2 200765 14035.4 176512 14571.4 166618 15400.9 158644 14283.2 159585 14485.3 163095 14196.3 159044 15559.1 155511 13767.4 153745 14634 150569 14381.1 150605 12509.9 179612 12122.3 194690 13122.3 189917 13908.7 184128 13456.5 175335 12441.6 179566 12953 181140 13057.2 177876 14350.1 175041 13830.2 169292 13755.5 166070 13574.4 166972 12802.6 206348 11737.3 215706 13850.2 202108 15081.8 195411 13653.3 193111 14019.1 195198 13962 198770 13768.7 194163 14747.1 190420 13858.1 189733 13188 186029 13693.1 191531 12970 232571 11392.8 243477 13985.2 227247 14994.7 217859 13584.7 208679 14257.8 213188 13553.4 216234 14007.3 213586 16535.8 209465 14721.4 204045 13664.6 200237 16805.9 203666 13829.4 241476 13735.6 260307 15870.5 243324 15962.4 244460 15744.1 233575 16083.7 237217 14863.9 235243 15533.1 230354 17473.1 227184 15925.5 221678 15573.7 217142 17495 219452 14155.8 256446 14913.9 265845 17250.4 248624 15879.8 241114 17647.8 229245 17749.9 231805 17111.8 219277 16934.8 219313 20280 212610 16238.2 214771 17896.1 211142 18089.3 211457 15660 240048 16162.4 240636 17850.1 230580 18520.4 208795 18524.7 197922 16843.7 194596
 
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'Herman Ole Andreas Wold' @ 193.190.124.10:1001


Multiple Linear Regression - Estimated Regression Equation
invoer[t] = + 16619.7122862875 -0.0264169980332389werkloosheid[t] -221.506514856914M1[t] -84.8207196974203M2[t] + 1581.42080662757M3[t] -470.77564642321M4[t] -268.267105528740M5[t] + 276.630630950171M6[t] -794.156866386965M7[t] -741.211476464895M8[t] + 682.797794531672M9[t] + 799.57433610845M10[t] + 357.246035517984M11[t] + 79.224681117806t + e[t]


Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STAT
H0: parameter = 0
2-tail p-value1-tail p-value
(Intercept)16619.71228628751340.35658912.399500
werkloosheid-0.02641699803323890.008124-3.25190.0017650.000883
M1-221.506514856914507.288913-0.43660.6637110.331855
M2-84.8207196974203503.640533-0.16840.8667420.433371
M31581.42080662757503.0472953.14370.0024470.001224
M4-470.77564642321504.99859-0.93220.3544210.177211
M5-268.267105528740510.268679-0.52570.6007330.300366
M6276.630630950171509.3097340.54310.5887530.294377
M7-794.156866386965535.107158-1.48410.1422690.071135
M8-741.211476464895571.525998-1.29690.1989250.099462
M9682.797794531672522.4527611.30690.1955210.097761
M10799.57433610845506.118431.57980.1186570.059329
M11357.246035517984501.3079630.71260.4784450.239222
t79.2246811178068.6506719.158200


Multiple Linear Regression - Regression Statistics
Multiple R0.881982891197928
R-squared0.777893820365856
Adjusted R-squared0.736645529862372
F-TEST (value)18.8588135622288
F-TEST (DF numerator)13
F-TEST (DF denominator)70
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation937.660150865143
Sum Squared Residuals61544459.096431


Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolation
Forecast
Residuals
Prediction Error
111554.511718.5667588486-164.066758848610
213182.112105.60654838521076.49345161479
314800.114061.8275661372738.272433862806
412150.712197.6409921051-46.9409921050941
514478.212622.68642844771855.51357155231
613253.913310.6058962947-56.7058962946804
712036.811553.7954810485483.004518951513
812653.211208.68964862181444.51035137816
914035.413352.6150540364682.784945963649
1014571.413809.9860552718761.413944728197
1115400.913657.53157811621743.36842188381
1214283.213354.6518285667928.548171433269
1314485.313119.64633173101365.65366826904
1414196.313442.5720670409753.727932959093
1515559.115281.3695285351277.730471464862
1613767.413355.0501751289412.349824871138
171463413720.6837828947913.316217105297
1814381.114343.855188562237.2448114377769
1912509.912586.0145103927-76.1145103927342
2012122.312319.8690850874-197.569085087435
2113122.313949.1913688145-826.891368814457
2213908.714298.1205931235-389.42059312346
2313456.514167.3016373571-710.80163735707
2412441.613777.5099642783-1335.90996427826
251295313593.6477756348-640.647775634832
2613057.213895.7833334926-838.583333492622
2714350.115716.1417303597-1366.04173035965
2813830.213895.0412801198-64.8412801197673
2913755.514261.8900697951-506.390069795139
3013574.414862.1843551659-1287.78435516587
3112802.612830.4258243897-27.8258243897306
3211737.312715.3856278346-978.085627834558
3313850.214577.8379192049-727.637919204911
3415081.814950.7537777281131.046222271901
3513653.314648.4092537319-995.109253731887
3614019.114315.2556244363-296.155624436339
371396214078.6122737225-116.612273722502
3813768.714416.2258599389-647.525859938932
3914747.116260.5708910201-1513.47089102015
4013858.114305.747596736-447.647596736004
411318814685.3293794634-1497.32937946340
4213693.115164.1054738812-1471.00547388123
431297013088.3890583778-118.389058377778
4411392.812932.4553488672-1539.65534886715
4513985.214864.437179061-879.237179060991
4614994.715308.4411792916-313.741179291622
4713584.715187.8456017641-1603.14560176409
4814257.814790.7100032320-532.910003232044
4913553.414567.9619934837-1014.56199348369
5014007.314853.824680553-846.524680553007
5116535.816708.1553368908-172.355336890783
5214721.414878.3636942980-156.963694297961
5313664.615260.6928448208-1596.09284482081
5416805.915794.23137616151011.66862383845
5513829.413803.841864305525.5581356945413
5613735.613438.5534453814297.046554618587
5715870.515390.4272750943480.072724905718
5815962.415556.4187880231405.981211976892
5915744.115480.8641921423263.235807857749
6016083.715106.6321309050977.067869094983
6114863.915016.4974512835-152.597451283524
6215533.115361.5606309453171.539369054673
6317473.117190.7687221535282.331277846504
6415925.515363.2489413915562.251058608469
6515573.715764.8096664826-191.109666482577
661749516327.90881862251167.09118137749
6714155.814359.0755771615-203.275577161544
6814913.914242.952283687670.947716312992
6917250.416201.11335893181049.28664106821
7015879.816595.506236856-715.706236855997
7117647.816545.94596703981101.85403296015
7217749.916200.29709767461549.60290232542
7317111.816388.9674152959722.832584704113
7416934.816603.926879644330.873120356009
752028018526.46622490361753.53377509641
7616238.216496.4073202208-258.207320220782
7717896.116874.00782809571022.09217190432
7818089.317489.8088913119599.491108688071
791566015742.9576843243-82.9576843242664
8016162.415859.5945605206302.805439479402
8117850.117628.4778448572221.622155142777
8218520.418399.9733697059120.426630294088
8318524.718324.1017698487200.598230151340
8416843.718133.9433509070-1290.24335090703


Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
170.4140955339258330.8281910678516670.585904466074166
180.3667006948565410.7334013897130830.633299305143459
190.2446856969519380.4893713939038750.755314303048062
200.3604535949993410.7209071899986830.639546405000659
210.276339356551940.552678713103880.72366064344806
220.231951584815090.463903169630180.76804841518491
230.2028943521820910.4057887043641820.797105647817909
240.1369694543268070.2739389086536130.863030545673193
250.1057093903778010.2114187807556030.894290609622199
260.06745231532320140.1349046306464030.932547684676799
270.04146659867257630.08293319734515260.958533401327424
280.1207789090663600.2415578181327190.87922109093364
290.1031671691729240.2063343383458470.896832830827076
300.07890955563515240.1578191112703050.921090444364848
310.2861546404194490.5723092808388990.71384535958055
320.2247435639131770.4494871278263540.775256436086823
330.2223870153561160.4447740307122320.777612984643884
340.3992800685527650.798560137105530.600719931447235
350.3298001429111460.6596002858222920.670199857088854
360.4242196798650720.8484393597301450.575780320134928
370.5479980347326620.9040039305346770.452001965267338
380.5393616728479410.9212766543041180.460638327152059
390.4801262198723410.9602524397446830.519873780127659
400.5132963899453510.9734072201092970.486703610054649
410.4885985085611860.9771970171223720.511401491438814
420.4873209179272710.9746418358545430.512679082072729
430.5968432603016550.806313479396690.403156739698345
440.5685106376085740.8629787247828520.431489362391426
450.5310764403457130.9378471193085740.468923559654287
460.5501287405465770.8997425189068470.449871259453423
470.5601503000095770.8796993999808460.439849699990423
480.5247871287001120.9504257425997750.475212871299888
490.4675670034625730.9351340069251470.532432996537427
500.4083103026791220.8166206053582450.591689697320878
510.4719716902520340.9439433805040680.528028309747966
520.4599405060605450.919881012121090.540059493939455
530.5331981557456010.9336036885087980.466801844254399
540.735694987976580.5286100240468410.264305012023421
550.7300614576552760.5398770846894480.269938542344724
560.7060051736845530.5879896526308950.293994826315447
570.6991041497000170.6017917005999670.300895850299984
580.6716831469179430.6566337061641140.328316853082057
590.6155759759165520.7688480481668970.384424024083448
600.6138724359181270.7722551281637460.386127564081873
610.5705926912481170.8588146175037660.429407308751883
620.475905991518430.951811983036860.52409400848157
630.5566313459089110.8867373081821790.443368654091089
640.5399027487170190.9201945025659620.460097251282981
650.4776308166984890.9552616333969770.522369183301511
660.4231579228612050.846315845722410.576842077138795
670.2726336393989730.5452672787979470.727366360601027


Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level00OK
5% type I error level00OK
10% type I error level10.0196078431372549OK
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/14/t1229262907g0diief4hrox2zx/10emq21229262814.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/14/t1229262907g0diief4hrox2zx/10emq21229262814.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/14/t1229262907g0diief4hrox2zx/1s2rn1229262814.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/14/t1229262907g0diief4hrox2zx/1s2rn1229262814.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/14/t1229262907g0diief4hrox2zx/24p731229262814.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/14/t1229262907g0diief4hrox2zx/24p731229262814.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/14/t1229262907g0diief4hrox2zx/34mmg1229262814.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/14/t1229262907g0diief4hrox2zx/34mmg1229262814.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/14/t1229262907g0diief4hrox2zx/4cviv1229262814.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/14/t1229262907g0diief4hrox2zx/4cviv1229262814.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/14/t1229262907g0diief4hrox2zx/5j6e21229262814.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/14/t1229262907g0diief4hrox2zx/5j6e21229262814.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/14/t1229262907g0diief4hrox2zx/6nfno1229262814.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/14/t1229262907g0diief4hrox2zx/6nfno1229262814.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/14/t1229262907g0diief4hrox2zx/7l8el1229262814.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/14/t1229262907g0diief4hrox2zx/7l8el1229262814.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/14/t1229262907g0diief4hrox2zx/8hsar1229262814.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/14/t1229262907g0diief4hrox2zx/8hsar1229262814.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/14/t1229262907g0diief4hrox2zx/92sgi1229262814.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/14/t1229262907g0diief4hrox2zx/92sgi1229262814.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