Home » date » 2010 » Dec » 01 »

*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, 01 Dec 2010 16:06:53 +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/01/t1291219498srlmb6wzocagrz1.htm/, Retrieved Wed, 01 Dec 2010 17:05:08 +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/01/t1291219498srlmb6wzocagrz1.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 time10 seconds
R Server'George Udny Yule' @ 72.249.76.132


Multiple Linear Regression - Estimated Regression Equation
Nettoschuld[t] = + 339556.817626675 -0.0481617613139515Fiscale_en_parafiscale_ontvangsten[t] -0.41758570531133`Niet-fiscale_en_niet-parafiscale_ontvangsten`[t] -0.0790146949532075Lopende_uitgaven_exclusief_rentelasten[t] -23.2607666632163Rentelasten[t] + 0.599914487831654Kapitaaluitgaven[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.81762667543292.6927787.843300
Fiscale_en_parafiscale_ontvangsten-0.04816176131395150.451468-0.10670.915350.457675
`Niet-fiscale_en_niet-parafiscale_ontvangsten`-0.417585705311332.485849-0.1680.8670790.43354
Lopende_uitgaven_exclusief_rentelasten-0.07901469495320750.728579-0.10850.9139490.456974
Rentelasten-23.26076666321636.586492-3.53160.0007360.000368
Kapitaaluitgaven0.5999144878316541.5512110.38670.7001220.350061


Multiple Linear Regression - Regression Statistics
Multiple R0.776717115423033
R-squared0.603289477391077
Adjusted R-squared0.57495301149044
F-TEST (value)21.2902159184751
F-TEST (DF numerator)5
F-TEST (DF denominator)70
p-value6.98996416303999e-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.3578924003
2190530222628.689405778-32098.6894057780
3194207221593.689258388-27386.689258388
4190855221368.361561704-30513.3615617041
5200779222383.239116042-21604.2391160417
6204428220279.360383874-15851.3603838745
7207617219546.621962367-11929.621962367
8212071218724.037611438-6653.03761143846
9214239218192.062555591-3953.06255559139
10215883215876.6342925756.36570742467802
11223484219143.0253797184340.97462028204
12221529217477.2782615634051.72173843671
13225247225246.9194486280.080551371988804
14226699229961.679867304-3262.6798673044
15231406231769.459007616-363.459007616462
16232324230826.0789515151497.92104848527
17237192230616.6319503846575.36804961628
18236727229570.7673021027156.23269789849
19240698230727.1646191669970.83538083404
20240688226507.96874224814180.0312577521
21245283230760.52021104914522.4797889514
22243556230050.01881052813505.9811894715
23247826230897.04707869316928.9529213067
24245798237908.6972336087889.30276639181
25250479235548.79180269614930.2081973038
26249216236803.18551757512412.8144824255
27251896238478.66564396113417.3343560386
28247616238526.277779819089.72222018982
29249994237160.44713701512833.5528629848
30246552236876.1008882319675.89911176933
31248771238326.13892562910444.8610743709
32247551239318.4736514258232.52634857501
33249745239614.91629635810130.0837036422
34245742240068.6415265055673.35847349459
35249019242814.5750735956204.42492640488
36245841242384.5782922053456.42170779515
37248771240491.6799165838279.32008341728
38244723238083.4461924386639.55380756212
39246878238939.2675282477938.7324717535
40246014238027.7218124107986.27818758961
41248496236933.23274388911562.7672561112
42244351236076.4234866608274.57651334038
43248016237995.91120835110020.0887916491
44246509239199.0193773017309.98062269914
45249426243968.7857152645457.21428473575
46247840244755.5520812463084.44791875431
47251035247304.9270103813730.07298961888
48250161245848.1668315414312.83316845855
49254278245033.4620347729244.53796522848
50250801250337.450957799463.549042200902
51253985251394.7820913622590.21790863771
52249174250463.335031752-1289.33503175163
53251287252734.414774885-1447.41477488469
54247947253429.429781653-5482.42978165259
55249992254006.324100502-4014.32410050215
56243805256414.71389525-12609.7138952501
57255812263543.240454638-7731.24045463797
58250417257732.044523120-7315.04452311954
59253033259853.506099276-6820.50609927579
60248705258553.030091642-9848.03009164182
61253950261577.913953915-7627.91395391518
62251484260320.213242624-8836.21324262386
63251093259665.740602664-8572.74060266441
64245996260299.155158584-14303.1551585843
65252721260513.092809361-7792.09280936113
66248019259136.899477625-11117.8994776250
67250464258111.475995655-7647.47599565544
68245571258558.569420600-12987.5694205996
69252690258273.540707740-5583.54070773964
70250183256796.938604200-6613.93860420041
71253639258581.520151416-4942.52015141574
72254436255365.479777894-929.479777894237
73265280259870.2506954155409.74930458466
74268705261136.4273921197568.57260788126
75270643262697.354228677945.64577133008
76271480261894.4566012719585.54339872872


Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
90.1526021958629530.3052043917259050.847397804137047
100.161605120739230.323210241478460.83839487926077
110.0925443552573930.1850887105147860.907455644742607
120.08599025192890380.1719805038578080.914009748071096
130.0685242482011070.1370484964022140.931475751798893
140.05728164996320500.1145632999264100.942718350036795
150.0859636816581030.1719273633162060.914036318341897
160.07380451986401430.1476090397280290.926195480135986
170.09447248708500860.1889449741700170.905527512914991
180.08225577914760550.1645115582952110.917744220852394
190.07913443392880930.1582688678576190.92086556607119
200.4740687488502060.9481374977004120.525931251149794
210.5016251608347090.9967496783305820.498374839165291
220.4652559048708810.9305118097417630.534744095129118
230.6233077297638850.753384540472230.376692270236115
240.5543661111710590.8912677776578820.445633888828941
250.8295231810813620.3409536378372760.170476818918638
260.8310482757001190.3379034485997630.168951724299881
270.8572944005325480.2854111989349030.142705599467452
280.8580554870030790.2838890259938420.141944512996921
290.9896356630172330.02072867396553390.0103643369827670
300.9850675508689130.02986489826217340.0149324491310867
310.9782919883098680.04341602338026360.0217080116901318
320.9875993591076540.02480128178469190.0124006408923460
330.9991701614568630.001659677086273230.000829838543136614
340.999159689035040.001680621929918380.000840310964959188
350.9993563400515630.001287319896874870.000643659948437437
360.9999145753664040.0001708492671921148.5424633596057e-05
370.9999789172582584.21654834849044e-052.10827417424522e-05
380.999981003999413.79920011788771e-051.89960005894385e-05
390.9999700065769075.99868461857307e-052.99934230928654e-05
400.9999748105876645.03788246719306e-052.51894123359653e-05
410.9999710842170525.7831565895595e-052.89157829477975e-05
420.9999610977047697.78045904626402e-053.89022952313201e-05
430.9999298613615850.0001402772768306277.01386384153137e-05
440.9998675638084050.0002648723831894740.000132436191594737
450.9999009741063760.0001980517872474399.90258936237196e-05
460.9998670335122980.0002659329754045200.000132966487702260
470.9998194657993020.0003610684013950990.000180534200697549
480.999753875132260.0004922497354787470.000246124867739373
490.9997293133428820.0005413733142360870.000270686657118043
500.999804524217390.0003909515652203740.000195475782610187
510.999891039427810.0002179211443797360.000108960572189868
520.9997594046025810.0004811907948380640.000240595397419032
530.9997591553288460.0004816893423079710.000240844671153986
540.999777898574750.0004442028505006620.000222101425250331
550.9999671429426676.57141146665261e-053.28570573332630e-05
560.9999745816149835.08367700340518e-052.54183850170259e-05
570.999985671001862.86579962803586e-051.43289981401793e-05
580.9999802599881773.94800236459461e-051.97400118229730e-05
590.9999867717992672.64564014664237e-051.32282007332119e-05
600.9999818336545483.63326909036622e-051.81663454518311e-05
610.999933757836820.0001324843263609606.62421631804801e-05
620.9997583562982570.0004832874034855240.000241643701742762
630.9997254606633130.0005490786733745270.000274539336687264
640.9989218115279230.002156376944154550.00107818847207727
650.9964857068238460.007028586352307350.00351429317615367
660.9873233309718680.02535333805626430.0126766690281322
670.9888471792013680.02230564159726320.0111528207986316


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/01/t1291219498srlmb6wzocagrz1/107s5z1291219602.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/01/t1291219498srlmb6wzocagrz1/107s5z1291219602.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/01/t1291219498srlmb6wzocagrz1/10q8n1291219602.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/01/t1291219498srlmb6wzocagrz1/10q8n1291219602.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/01/t1291219498srlmb6wzocagrz1/20q8n1291219602.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/01/t1291219498srlmb6wzocagrz1/20q8n1291219602.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/01/t1291219498srlmb6wzocagrz1/3b07q1291219602.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/01/t1291219498srlmb6wzocagrz1/3b07q1291219602.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/01/t1291219498srlmb6wzocagrz1/4b07q1291219602.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/01/t1291219498srlmb6wzocagrz1/4b07q1291219602.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/01/t1291219498srlmb6wzocagrz1/5b07q1291219602.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/01/t1291219498srlmb6wzocagrz1/5b07q1291219602.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/01/t1291219498srlmb6wzocagrz1/6mrpt1291219602.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/01/t1291219498srlmb6wzocagrz1/6mrpt1291219602.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/01/t1291219498srlmb6wzocagrz1/7mrpt1291219602.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/01/t1291219498srlmb6wzocagrz1/7mrpt1291219602.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/01/t1291219498srlmb6wzocagrz1/8w0oe1291219602.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/01/t1291219498srlmb6wzocagrz1/8w0oe1291219602.ps (open in new window)


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