Home » date » 2010 » Dec » 26 »

onderling effect pearson

*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, 26 Dec 2010 14:25:09 +0000
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2010/Dec/26/t1293374245sen1wgf0mp6uky3.htm/, Retrieved Sun, 26 Dec 2010 15:37:35 +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/2010/Dec/26/t1293374245sen1wgf0mp6uky3.htm/},
    year = {2010},
}
@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 = {2010},
    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 «
332 5140 369 4749 384 3635 373 4305 378 5805 426 4260 423 3869 397 7325 422 9280 409 6222 430 3272 412 7598 470 1345 491 1900 504 1480 484 1472 474 3823 508 4454 492 3357 452 5393 457 8329 457 4152 471 4042 451 7747 493 1451 514 911 522 -406 490 1387 484 2150 506 1577 501 2642 462 4273 465 8064 454 3243 464 1112 427 2280 460 505 473 744 465 -1369 422 -531 415 1041 413 2076 420 577 363 5080 376 6584 380 3761 384 294 346 5020 389 1141 407 3805 393 2127 346 2531 348 3682 353 3263 364 2798 305 5936 307 10568 312 5296 312 1870 286 4390 324 3707 336 5201 327 3748 302 5282 299 5349 311 6249 315 5517 264 8640 278 15767 278 8850 287 5582 279 6496 324 3255 354 6189 354 6452 360 5099 363 6833 385 7046 412 7739 370 10142 389 16054 395 7721 417 6182 404 6490 456 3704 478 6235 468 4655 437 5072 432 3640 441 5147 449 5703 386 11889 396 15603 394 9589
 
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'George Udny Yule' @ 72.249.76.132


Multiple Linear Regression - Estimated Regression Equation
werklooshiedsstotaal[t] = + 440.696158299161 -0.0119905326726999bevolkingstotaal[t] -4.34812010455682M1[t] + 31.6196540120970M2[t] + 16.8877923226655M3[t] -2.04979044867875M4[t] + 6.87509014829945M5[t] + 28.2465203538685M6[t] + 29.5687333416249M7[t] + 22.1264012219252M8[t] + 80.8205395981514M9[t] + 17.3720507681680M10[t] -7.4052486755128M11[t] + e[t]


Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STAT
H0: parameter = 0
2-tail p-value1-tail p-value
(Intercept)440.69615829916128.4099715.51200
bevolkingstotaal-0.01199053267269990.00284-4.22286.3e-053.1e-05
M1-4.3481201045568233.182245-0.1310.8960710.448035
M231.619654012097032.4264270.97510.3324040.166202
M316.887792322665533.1750930.50910.6121010.30605
M4-2.0497904486787532.793382-0.06250.9503140.475157
M56.8750901482994532.2781280.2130.8318660.415933
M628.246520353868532.1924070.87740.3828490.191425
M729.568733341624932.2844910.91590.3624480.181224
M822.126401221925232.2536590.6860.4946640.247332
M980.820539598151435.6201952.2690.0259310.012966
M1017.372050768168031.9438910.54380.5880520.294026
M11-7.405248675512833.741821-0.21950.8268380.413419


Multiple Linear Regression - Regression Statistics
Multiple R0.495695686793552
R-squared0.245714213905732
Adjusted R-squared0.133968171521396
F-TEST (value)2.19886278442532
F-TEST (DF numerator)12
F-TEST (DF denominator)81
p-value0.0191132452980280
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation61.6849357804601
Sum Squared Residuals308207.535481399


Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolation
Forecast
Residuals
Prediction Error
1332374.716700256925-42.7167002569247
2369415.372772648605-46.3727726486054
3384413.998364356562-29.9983643565618
4373387.027124694509-14.0271246945086
5378377.9662062824370.0337937175630842
6426417.8630094673278.13699053267272
7423423.873520730109-0.873520730109377
8397374.99190769355922.0080923064412
9422410.24455469465711.7554453053434
10409383.46311477779025.5368852222104
11430394.05788671857435.9421132814264
12412349.59209105198762.4079089480135
13470420.22077174982249.7792282501777
14491449.53380023312841.4661997668724
15504439.8379622662364.1620377337699
16484420.99630375626763.0036962437325
17474401.73144203972872.2685579602719
18508415.53684612882492.4631538711765
19492430.01267345853261.9873265414683
20452398.15761681721553.8423831827849
21457421.64755126639435.3524487336058
22457408.28351741027848.7164825897216
23471384.82517656059586.1748234394054
24451347.805501683754103.194498316246
25493418.94977528651674.0502247134839
26514461.39243704642852.6075629535722
27522462.45210688694259.5478931130579
28490422.01549903344767.9845009665531
29484421.79160320115562.2083967988449
30506450.03360862818155.9663913718188
31501438.58590431951262.4140956804879
32462411.58701341063950.412986589361
33465424.8250424246640.1749575753403
34454419.18291160976334.8170883902374
35464419.95743729160544.0425627083946
36427413.35774380540513.6422561945953
37460430.2928191948929.7071808051098
38473463.3948560027699.60514399723133
39465473.998989850752-8.99898985075214
40422445.013340699685-23.0133406996854
41415435.089103935179-20.0891039351793
42413444.050332824504-31.0503328245039
43420463.346354288637-43.3463542886375
44363401.91065354377-38.9106535437701
45376442.571030780256-66.5710307802556
46380412.971815685304-32.9718156853041
47384429.765693017874-45.7656930178739
48346380.503684282207-34.5036842822069
49389422.666840415053-33.6668404150531
50407426.691835491634-19.6918354916342
51393432.080087626993-39.0800876269932
52346408.298329655878-62.2983296558782
53348403.422107146579-55.4221071465788
54353429.817570542009-76.8175705420091
55364436.715381222571-72.715381222571
56305391.646757575939-86.646757575939
57307394.800748612219-87.8007486122191
58312394.56634803271-82.5663480327097
59312410.868613525699-98.8686135256989
60286388.057719866008-102.057719866008
61324391.899133576905-67.8991335769051
62336409.953051880545-73.9530518805452
63327412.643434164547-85.6434341645467
64302375.312374273281-73.3123742732808
65299383.433889181188-84.4338891811881
66311394.013839981327-83.0138399813272
67315404.1131228855-89.1131228854999
68264359.224357228958-95.2243572289584
69278332.461969246852-54.4619692468523
70278351.951994913934-73.9519949139342
71287366.359756244637-79.3597562446368
72279362.805658057302-83.8056580573018
73324397.318854344965-73.3188543449654
74354398.106405599918-44.1064055999177
75354380.221033817566-26.2210338175661
76360377.506641752385-17.5066417523849
77363365.639938694901-2.6399386949014
78385384.4573854411850.542614558814658
79412377.47015928676134.5298407132393
80370341.21457715456328.7854228454368
81389329.02068636978759.9793136302126
82395365.48930630141229.5106936985876
83417359.16543664101757.8345633589832
84404362.87760125333841.122398746662
85456391.93510517492364.0648948250768
86478397.55484109697380.4451589030266
87468401.76802103040866.2319789695921
88437377.83038613454859.1696138654523
89432403.92570951883228.0742904811678
90441407.22740698664333.7725930133575
91449401.88288380837847.1171161916223
92386320.26711657535665.7328834246436
93396334.42841660517561.5715833948249
94394343.09099126880950.909008731191


Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
160.01594626009570280.03189252019140550.984053739904297
170.003937986152296980.007875972304593950.996062013847703
180.0514678022569830.1029356045139660.948532197743017
190.03690351060321640.07380702120643270.963096489396784
200.01875487279743230.03750974559486450.981245127202568
210.007827995302866130.01565599060573230.992172004697134
220.004479022546268610.008958045092537220.995520977453731
230.007214698968055380.01442939793611080.992785301031945
240.006308282207643210.01261656441528640.993691717792357
250.00378331560344880.00756663120689760.996216684396551
260.001852555448755260.003705110897510510.998147444551245
270.001311642334101890.002623284668203780.998688357665898
280.0007059416001462060.001411883200292410.999294058399854
290.0006079807921701780.001215961584340360.99939201920783
300.0009051064014066260.001810212802813250.999094893598593
310.000557013372255530.001114026744511060.999442986627744
320.0004466582793677090.0008933165587354180.999553341720632
330.0002592699707972770.0005185399415945550.999740730029203
340.0002534240285863960.0005068480571727910.999746575971414
350.000570700606104570.001141401212209140.999429299393895
360.01539903798122110.03079807596244230.98460096201878
370.0121237561174500.0242475122349000.98787624388255
380.009266270224093880.01853254044818780.990733729775906
390.01228503740982630.02457007481965250.987714962590174
400.01985061361291740.03970122722583480.980149386387083
410.02794034359919220.05588068719838450.972059656400808
420.04085445407121340.08170890814242670.959145545928787
430.05652196231203660.1130439246240730.943478037687963
440.06632623167786370.1326524633557270.933673768322136
450.09255223357861540.1851044671572310.907447766421385
460.09634793456659220.1926958691331840.903652065433408
470.1319007981555040.2638015963110070.868099201844496
480.1455002308642410.2910004617284830.854499769135759
490.1334205321398920.2668410642797840.866579467860108
500.1109223495511230.2218446991022460.889077650448877
510.1019656353618360.2039312707236720.898034364638164
520.1037668344919880.2075336689839760.896233165508012
530.1016258911283400.2032517822566800.89837410887166
540.1150282846435280.2300565692870560.884971715356472
550.1137492376364230.2274984752728470.886250762363576
560.1215913164406640.2431826328813270.878408683559336
570.1158201381151940.2316402762303880.884179861884806
580.1129402621086330.2258805242172660.887059737891367
590.1261374226236340.2522748452472690.873862577376366
600.1476323030159840.2952646060319690.852367696984015
610.1429848479764960.2859696959529920.857015152023504
620.1382765436008100.2765530872016200.86172345639919
630.1401797838785090.2803595677570170.859820216121491
640.1457104659396650.291420931879330.854289534060335
650.1617958773276030.3235917546552070.838204122672397
660.1780230626355840.3560461252711680.821976937364416
670.2140759067844320.4281518135688650.785924093215568
680.3028104428408720.6056208856817430.697189557159128
690.3551119606105480.7102239212210950.644888039389452
700.4221546112732230.8443092225464460.577845388726777
710.5442368705050930.9115262589898140.455763129494907
720.6560356588507540.6879286822984920.343964341149246
730.8331782004991660.3336435990016680.166821799500834
740.9465598194994340.1068803610011330.0534401805005663
750.9696758557333820.06064828853323680.0303241442666184
760.9910596778374470.01788064432510630.00894032216255316
770.979553592245380.040892815509240.02044640775462
780.9772425415812880.04551491683742410.0227574584187121


Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level130.206349206349206NOK
5% type I error level260.412698412698413NOK
10% type I error level300.476190476190476NOK
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Dec/26/t1293374245sen1wgf0mp6uky3/102nsk1293373499.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/26/t1293374245sen1wgf0mp6uky3/102nsk1293373499.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/26/t1293374245sen1wgf0mp6uky3/1d4v81293373499.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/26/t1293374245sen1wgf0mp6uky3/1d4v81293373499.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/26/t1293374245sen1wgf0mp6uky3/2d4v81293373499.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/26/t1293374245sen1wgf0mp6uky3/2d4v81293373499.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/26/t1293374245sen1wgf0mp6uky3/3ovct1293373499.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/26/t1293374245sen1wgf0mp6uky3/3ovct1293373499.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/26/t1293374245sen1wgf0mp6uky3/4ovct1293373499.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/26/t1293374245sen1wgf0mp6uky3/4ovct1293373499.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/26/t1293374245sen1wgf0mp6uky3/5ovct1293373499.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/26/t1293374245sen1wgf0mp6uky3/5ovct1293373499.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/26/t1293374245sen1wgf0mp6uky3/6gncw1293373499.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/26/t1293374245sen1wgf0mp6uky3/6gncw1293373499.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/26/t1293374245sen1wgf0mp6uky3/7rwth1293373499.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/26/t1293374245sen1wgf0mp6uky3/7rwth1293373499.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/26/t1293374245sen1wgf0mp6uky3/8rwth1293373499.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/26/t1293374245sen1wgf0mp6uky3/8rwth1293373499.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/26/t1293374245sen1wgf0mp6uky3/9rwth1293373499.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/26/t1293374245sen1wgf0mp6uky3/9rwth1293373499.ps (open in new window)


 
Parameters (Session):
 
Parameters (R input):
par1 = 1 ; par2 = Include Monthly 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