Home » date » 2010 » Dec » 22 »

*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: Wed, 22 Dec 2010 15:22:46 +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/22/t1293031253e8tul81xfj5o4gv.htm/, Retrieved Wed, 22 Dec 2010 16:20:56 +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/22/t1293031253e8tul81xfj5o4gv.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 «
186448 17822 1942 16739 4872 1020 190530 22422 2547 17851 4905 1200 194207 18817 2033 17034 4971 1279 190855 22043 2049 18055 4971 1308 200779 19191 2007 18216 4930 1173 204428 23171 2660 18960 5001 1291 207617 19463 2063 17903 5059 1466 212071 22522 2113 18842 5085 1507 214239 20265 2145 18907 5111 1478 215883 24249 2866 19862 5190 1629 223484 20299 2163 18836 5076 1712 221529 25455 2157 19846 5134 1727 225247 21089 2201 19511 4804 1519 226699 26237 2838 20318 4579 1617 231406 21362 2142 19843 4526 1637 232324 26489 2253 20975 4550 1633 237192 21828 2258 20485 4566 1469 236727 27496 2979 21407 4588 1657 240698 21991 2288 20404 4564 1599 240688 27611 2431 21454 4723 1420 245283 22512 2393 21558 4553 1495 243556 28581 3244 22442 4556 1623 247826 23000 2476 21201 4542 1346 245798 28385 2490 21804 4234 1613 250479 23387 2547 22537 4341 1563 249216 30192 3461 22736 4269 2071 251896 24346 2549 21525 4217 1584 247616 30393 2496 22427 4207 1843 249994 24753 2532 23437 4267 1598 246552 31 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 time6 seconds
R Server'RServer@AstonUniversity' @ vre.aston.ac.uk


Multiple Linear Regression - Estimated Regression Equation
Nettoschuld[t] = + 339556.817626673 -0.0481617613139481ParafiscaleOntvangsten[t] -0.41758570531135`Niet-parafiscaleOntvangsten`[t] -0.079014694953187LopendeUitgaven[t] -23.260766663216Rentelasten[t] + 0.59991448783166KapitaalUitgaven[t] + e[t]


Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STAT
H0: parameter = 0
2-tail p-value1-tail p-value
(Intercept)339556.81762667343292.6927787.843300
ParafiscaleOntvangsten-0.04816176131394810.451468-0.10670.915350.457675
`Niet-parafiscaleOntvangsten`-0.417585705311352.485849-0.1680.8670790.43354
LopendeUitgaven-0.0790146949531870.728579-0.10850.9139490.456974
Rentelasten-23.2607666632166.586492-3.53160.0007360.000368
KapitaalUitgaven0.599914487831661.5512110.38670.7001220.350061


Multiple Linear Regression - Regression Statistics
Multiple R0.776717115423032
R-squared0.603289477391076
Adjusted R-squared0.574953011490439
F-TEST (value)21.290215918475
F-TEST (DF numerator)5
F-TEST (DF denominator)70
p-value6.99107438606461e-13
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation11873.7191966773
Sum Squared Residuals9868964529.30806


Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolation
Forecast
Residuals
Prediction Error
1186448223850.3578924-37402.3578924002
2190530222628.689405778-32098.689405778
3194207221593.689258388-27386.689258388
4190855221368.361561704-30513.3615617041
5200779222383.239116042-21604.2391160417
6204428220279.360383875-15851.3603838745
7207617219546.621962367-11929.621962367
8212071218724.037611439-6653.03761143853
9214239218192.062555591-3953.06255559146
10215883215876.6342925756.36570742457321
11223484219143.0253797184340.97462028197
12221529217477.2782615634051.7217384366
13225247225246.9194486280.0805513719735806
14226699229961.679867304-3262.67986730438
15231406231769.459007616-363.459007616426
16232324230826.0789515151497.92104848526
17237192230616.6319503846575.3680496163
18236727229570.7673021027156.23269789848
19240698230727.1646191669970.83538083406
20240688226507.96874224814180.031257752
21245283230760.52021104914522.4797889514
22243556230050.01881052813505.9811894715
23247826230897.04707869316928.9529213067
24245798237908.6972336087889.30276639186
25250479235548.79180269614930.2081973039
26249216236803.18551757412412.8144824255
27251896238478.66564396113417.3343560387
28247616238526.277779819089.72222018985
29249994237160.44713701512833.5528629848
30246552236876.1008882319675.89911176936
31248771238326.13892562910444.8610743709
32247551239318.4736514258232.52634857504
33249745239614.91629635810130.0837036422
34245742240068.6415265055673.35847349463
35249019242814.5750735956204.42492640496
36245841242384.5782922053456.42170779517
37248771240491.6799165838279.32008341729
38244723238083.4461924386639.55380756211
39246878238939.2675282467938.73247175353
40246014238027.721812417986.27818758957
41248496236933.23274388911562.7672561112
42244351236076.423486668274.57651334034
43248016237995.91120835110020.0887916491
44246509239199.0193773017309.9806226991
45249426243968.7857152645457.21428473577
46247840244755.5520812463084.44791875431
47251035247304.9270103813730.07298961894
48250161245848.1668315414312.83316845854
49254278245033.4620347729244.53796522848
50250801250337.450957799463.549042200927
51253985251394.7820913622590.21790863777
52249174250463.335031752-1289.33503175152
53251287252734.414774885-1447.41477488466
54247947253429.429781653-5482.42978165256
55249992254006.324100502-4014.32410050208
56243805256414.71389525-12609.71389525
57255812263543.240454638-7731.24045463795
58250417257732.044523119-7315.0445231195
59253033259853.506099276-6820.50609927571
60248705258553.030091642-9848.03009164178
61253950261577.913953915-7627.91395391511
62251484260320.213242624-8836.21324262381
63251093259665.740602664-8572.74060266435
64245996260299.155158584-14303.1551585843
65252721260513.092809361-7792.0928093611
66248019259136.899477625-11117.899477625
67250464258111.475995655-7647.47599565543
68245571258558.5694206-12987.5694205997
69252690258273.54070774-5583.54070773967
70250183256796.9386042-6613.93860420049
71253639258581.520151416-4942.52015141576
72254436255365.479777894-929.479777894365
73265280259870.2506954155409.74930458459
74268705261136.4273921197568.57260788119
75270643262697.354228677945.64577133006
76271480261894.4566012719585.54339872862


Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
90.1526021958629550.3052043917259090.847397804137045
100.161605120739230.3232102414784610.83839487926077
110.09254435525739390.1850887105147880.907455644742606
120.0859902519289030.1719805038578060.914009748071097
130.06852424820110570.1370484964022110.931475751798894
140.05728164996320390.1145632999264080.942718350036796
150.0859636816580970.1719273633161940.914036318341903
160.0738045198640120.1476090397280240.926195480135988
170.09447248708500970.1889449741700190.90552751291499
180.08225577914760520.164511558295210.917744220852395
190.07913443392880850.1582688678576170.920865566071192
200.4740687488502040.9481374977004080.525931251149796
210.5016251608347170.9967496783305670.498374839165283
220.4652559048708850.930511809741770.534744095129115
230.6233077297638870.7533845404722260.376692270236113
240.554366111171060.891267777657880.44563388882894
250.8295231810813620.3409536378372750.170476818918638
260.8310482757001190.3379034485997620.168951724299881
270.8572944005325450.285411198934910.142705599467455
280.8580554870030780.2838890259938440.141944512996922
290.9896356630172330.02072867396553450.0103643369827673
300.9850675508689130.02986489826217380.0149324491310869
310.9782919883098680.0434160233802650.0217080116901325
320.9875993591076540.02480128178469190.0124006408923459
330.9991701614568630.001659677086273220.000829838543136612
340.999159689035040.001680621929918350.000840310964959173
350.9993563400515630.001287319896874910.000643659948437457
360.9999145753664040.0001708492671921238.54246335960613e-05
370.9999789172582574.21654834849041e-052.1082741742452e-05
380.999981003999413.79920011788756e-051.89960005894378e-05
390.9999700065769075.99868461857316e-052.99934230928658e-05
400.9999748105876645.03788246719325e-052.51894123359662e-05
410.9999710842170525.78315658955957e-052.89157829477978e-05
420.999961097704777.78045904626379e-053.89022952313189e-05
430.9999298613615850.0001402772768306277.01386384153137e-05
440.9998675638084050.0002648723831894660.000132436191594733
450.9999009741063760.0001980517872474429.90258936237208e-05
460.9998670335122980.0002659329754045150.000132966487702258
470.9998194657993020.0003610684013950790.000180534200697539
480.999753875132260.0004922497354787680.000246124867739384
490.9997293133428820.0005413733142360760.000270686657118038
500.999804524217390.0003909515652203790.00019547578261019
510.999891039427810.0002179211443797380.000108960572189869
520.9997594046025810.0004811907948380580.000240595397419029
530.9997591553288460.0004816893423079840.000240844671153992
540.999777898574750.0004442028505006330.000222101425250316
550.9999671429426676.57141146665237e-053.28570573332618e-05
560.9999745816149835.08367700340501e-052.5418385017025e-05
570.999985671001862.86579962803592e-051.43289981401796e-05
580.9999802599881773.94800236459473e-051.97400118229737e-05
590.9999867717992672.64564014664218e-051.32282007332109e-05
600.9999818336545483.63326909036603e-051.81663454518301e-05
610.999933757836820.0001324843263609586.6242163180479e-05
620.9997583562982570.0004832874034855220.000241643701742761
630.9997254606633130.0005490786733745260.000274539336687263
640.9989218115279230.002156376944154610.00107818847207731
650.9964857068238460.007028586352307230.00351429317615362
660.9873233309718680.02535333805626410.012676669028132
670.9888471792013680.02230564159726360.0111528207986318


Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level330.559322033898305NOK
5% type I error level390.661016949152542NOK
10% type I error level390.661016949152542NOK
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Dec/22/t1293031253e8tul81xfj5o4gv/10miuz1293031357.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/22/t1293031253e8tul81xfj5o4gv/10miuz1293031357.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/22/t1293031253e8tul81xfj5o4gv/1xyen1293031357.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/22/t1293031253e8tul81xfj5o4gv/1xyen1293031357.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/22/t1293031253e8tul81xfj5o4gv/2q8e81293031357.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/22/t1293031253e8tul81xfj5o4gv/2q8e81293031357.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/22/t1293031253e8tul81xfj5o4gv/3q8e81293031357.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/22/t1293031253e8tul81xfj5o4gv/3q8e81293031357.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/22/t1293031253e8tul81xfj5o4gv/4q8e81293031357.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/22/t1293031253e8tul81xfj5o4gv/4q8e81293031357.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/22/t1293031253e8tul81xfj5o4gv/5jzdb1293031357.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/22/t1293031253e8tul81xfj5o4gv/5jzdb1293031357.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/22/t1293031253e8tul81xfj5o4gv/6jzdb1293031357.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/22/t1293031253e8tul81xfj5o4gv/6jzdb1293031357.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/22/t1293031253e8tul81xfj5o4gv/7t8ue1293031357.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/22/t1293031253e8tul81xfj5o4gv/7t8ue1293031357.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/22/t1293031253e8tul81xfj5o4gv/8t8ue1293031357.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/22/t1293031253e8tul81xfj5o4gv/8t8ue1293031357.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/22/t1293031253e8tul81xfj5o4gv/9miuz1293031357.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/22/t1293031253e8tul81xfj5o4gv/9miuz1293031357.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