Home » date » 2010 » Dec » 24 »

workshop 10

*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: Fri, 24 Dec 2010 17:47:56 +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/24/t1293212745bvxlckccqu046cw.htm/, Retrieved Fri, 24 Dec 2010 18:45:55 +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/24/t1293212745bvxlckccqu046cw.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 «
235.1 9700 280.7 9081 264.6 9084 240.7 9743 201.4 8587 240.8 9731 241.1 9563 223.8 9998 206.1 9437 174.7 10038 203.3 9918 220.5 9252 299.5 9737 347.4 9035 338.3 9133 327.7 9487 351.6 8700 396.6 9627 438.8 8947 395.6 9283 363.5 8829 378.8 9947 357 9628 369 9318 464.8 9605 479.1 8640 431.3 9214 366.5 9567 326.3 8547 355.1 9185 331.6 9470 261.3 9123 249 9278 205.5 10170 235.6 9434 240.9 9655 264.9 9429 253.8 8739 232.3 9552 193.8 9687 177 9019 213.2 9672 207.2 9206 180.6 9069 188.6 9788 175.4 10312 199 10105 179.6 9863 225.8 9656 234 9295 200.2 9946 183.6 9701 178.2 9049 203.2 10190 208.5 9706 191.8 9765 172.8 9893 148 9994 159.4 10433 154.5 10073 213.2 10112 196.4 9266 182.8 9820 176.4 10097 153.6 9115 173.2 10411 171 9678 151.2 10408 161.9 10153 157.2 10368 201.7 10581 236.4 10597 356.1 10680 398.3 9738 403.7 9556
 
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 time9 seconds
R Server'George Udny Yule' @ 72.249.76.132


Multiple Linear Regression - Estimated Regression Equation
unemployment[t] = + 943.403030642086 -0.0716993270501178birth[t] + e[t]


Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STAT
H0: parameter = 0
2-tail p-value1-tail p-value
(Intercept)943.403030642086177.7391195.30781e-061e-06
birth-0.07169932705011780.018479-3.88010.0002270.000113


Multiple Linear Regression - Regression Statistics
Multiple R0.413487517133902
R-squared0.170971926825559
Adjusted R-squared0.159615377877964
F-TEST (value)15.0549192025245
F-TEST (DF numerator)1
F-TEST (DF denominator)73
p-value0.000226712823779618
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation79.9683384170429
Sum Squared Residuals466830.265890337


Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolation
Forecast
Residuals
Prediction Error
1235.1247.919558255950-12.8195582559495
2280.7292.301441699967-11.6014416999669
3264.6292.086343718817-27.4863437188166
4240.7244.836487192789-4.13648719278909
5201.4327.720909262725-126.320909262725
6240.8245.696879117390-4.89687911739048
7241.1257.742366061810-16.6423660618103
8223.8226.553158795009-2.75315879500905
9206.1266.776481270125-60.6764812701251
10174.7223.685185713004-48.9851857130044
11203.3232.289104959018-28.9891049590185
12220.5280.040856774397-59.5408567743969
13299.5245.2666831550954.2333168449102
14347.4295.59961074427251.8003892557276
15338.3288.57307669336149.7269233066391
16327.7263.19151491761964.5084850823808
17351.6319.61888530606231.9811146939382
18396.6253.153609130603143.446390869397
19438.8301.909151524683136.890848475317
20395.6277.818177635843117.781822364157
21363.5310.36967211659753.1303278834033
22378.8230.209824474565148.590175525435
23357253.081909803553103.918090196447
24369275.30870118908993.6912988109109
25464.8254.730994325705210.069005674295
26479.1323.920844929069155.179155070931
27431.3282.765431202301148.534568797699
28366.5257.45556875361109.044431246390
29326.3330.58888234473-4.28888234472987
30355.1284.84471168675570.2552883132453
31331.6264.41040347747167.1895965225288
32261.3289.290069963862-27.9900699638621
33249278.176674271094-29.1766742710938
34205.5214.220874542389-8.72087454238881
35235.6266.991579251275-31.3915792512755
36240.9251.146027973199-10.2460279731994
37264.9267.350075886526-2.45007588652607
38253.8316.822611551107-63.0226115511073
39232.3258.531058659362-26.2310586593616
40193.8248.851649507596-55.0516495075957
41177296.746799977074-119.746799977074
42213.2249.927139413347-36.7271394133474
43207.2283.339025818702-76.1390258187023
44180.6293.161833624568-112.561833624568
45188.6241.610017475534-53.0100174755338
46175.4204.039570101272-28.6395701012721
47199218.881330800646-19.8813308006465
48179.6236.232567946775-56.632567946775
49225.8251.074328646149-25.2743286461493
50234276.957785711242-42.9577857112418
51200.2230.281523801615-30.0815238016152
52183.6247.847858928894-64.247858928894
53178.2294.595820165571-116.395820165571
54203.2212.786888001386-9.58688800138647
55208.5247.489362293643-38.9893622936434
56191.8243.259101997686-51.4591019976865
57172.8234.081588135271-61.2815881352714
58148226.839956103210-78.8399561032095
59159.4195.363951528208-35.9639515282078
60154.5221.17570926625-66.6757092662502
61213.2218.379435511296-5.17943551129565
62196.4279.037066195695-82.6370661956952
63182.8239.31563900993-56.51563900993
64176.4219.454925417047-43.0549254170474
65153.6289.863664580263-136.263664580263
66173.2196.941336723310-23.7413367233105
67171249.496943451047-78.4969434510467
68151.2197.156434704461-45.9564347044608
69161.9215.439763102241-53.5397631022408
70157.2200.024407786466-42.8244077864655
71201.7184.75245112479016.9475488752096
72236.4183.60526189198952.7947381080115
73356.1177.654217746829178.445782253171
74398.3245.19498382804153.105016171960
75403.7258.244261351161145.455738648839


Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
50.08825577274692450.1765115454938490.911744227253075
60.0304899669484790.0609799338969580.969510033051521
70.009399996301352060.01879999260270410.990600003698648
80.003612060317512880.007224120635025760.996387939682487
90.002196351212023570.004392702424047150.997803648787976
100.003242195218595060.006484390437190110.996757804781405
110.001303146942623380.002606293885246770.998696853057377
120.0004902089001836630.0009804178003673270.999509791099816
130.001574556222664590.003149112445329170.998425443777335
140.008008481711110230.01601696342222050.99199151828889
150.01209767763563550.02419535527127110.987902322364364
160.01575842508153530.03151685016307060.984241574918465
170.01308708609936050.02617417219872110.98691291390064
180.06977358378618120.1395471675723620.930226416213819
190.1684625334045910.3369250668091830.831537466595409
200.2283503216723090.4567006433446180.771649678327691
210.1889908261204070.3779816522408140.811009173879593
220.3148611981495800.6297223962991590.68513880185042
230.3342005849846320.6684011699692630.665799415015368
240.3404199369140240.6808398738280480.659580063085976
250.69678342263020.60643315473960.3032165773698
260.8553861612234720.2892276775530560.144613838776528
270.940659703648450.1186805927030990.0593402963515494
280.9618260768296930.07634784634061410.0381739231703070
290.9579593945706330.0840812108587340.042040605429367
300.9690239117032950.06195217659341030.0309760882967052
310.9755476031629480.04890479367410310.0244523968370516
320.9722379024700990.05552419505980240.0277620975299012
330.9674850534752430.06502989304951440.0325149465247572
340.9569505044738980.0860989910522050.0430494955261025
350.9483849186274540.1032301627450910.0516150813725457
360.934881772527120.1302364549457610.0651182274728803
370.9239594246819280.1520811506361440.076040575318072
380.923820105430470.1523597891390590.0761798945695296
390.9075131318860520.1849737362278960.0924868681139478
400.8946505500705990.2106988998588030.105349449929401
410.9111483465009550.1777033069980900.0888516534990448
420.8892356304752540.2215287390494920.110764369524746
430.8755391976391130.2489216047217740.124460802360887
440.8782587772003050.243482445599390.121741222799695
450.8539317863121150.292136427375770.146068213687885
460.8210414023420170.3579171953159660.178958597657983
470.7748787710269220.4502424579461570.225121228973078
480.7385247699459180.5229504601081630.261475230054082
490.6836416024916390.6327167950167220.316358397508361
500.6329051992542020.7341896014915970.367094800745798
510.5674331769347460.8651336461305070.432566823065254
520.5166947942238510.9666104115522990.483305205776149
530.5054349233388930.9891301533222150.494565076661107
540.4304134335674290.8608268671348580.569586566432571
550.3622514155196230.7245028310392460.637748584480377
560.3029591322272750.605918264454550.697040867772725
570.2571796960725870.5143593921451730.742820303927413
580.2364276875257650.4728553750515290.763572312474235
590.1951917149186170.3903834298372350.804808285081383
600.170941310973880.341882621947760.82905868902612
610.1221072222093020.2442144444186040.877892777790698
620.09610395365033660.1922079073006730.903896046349663
630.07201746156346220.1440349231269240.927982538436538
640.05235312309918780.1047062461983760.947646876900812
650.09992677520283740.1998535504056750.900073224797163
660.07079030869639690.1415806173927940.929209691303603
670.1327459114254940.2654918228509870.867254088574506
680.1290769899320140.2581539798640280.870923010067986
690.2248577839721310.4497155679442620.775142216027869
700.4236953211856770.8473906423713530.576304678814323


Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level60.090909090909091NOK
5% type I error level120.181818181818182NOK
10% type I error level190.287878787878788NOK
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Dec/24/t1293212745bvxlckccqu046cw/10l6321293212866.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/24/t1293212745bvxlckccqu046cw/10l6321293212866.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/24/t1293212745bvxlckccqu046cw/1f5or1293212866.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/24/t1293212745bvxlckccqu046cw/1f5or1293212866.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/24/t1293212745bvxlckccqu046cw/2f5or1293212866.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/24/t1293212745bvxlckccqu046cw/2f5or1293212866.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/24/t1293212745bvxlckccqu046cw/3f5or1293212866.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/24/t1293212745bvxlckccqu046cw/3f5or1293212866.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/24/t1293212745bvxlckccqu046cw/4pe5b1293212866.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/24/t1293212745bvxlckccqu046cw/4pe5b1293212866.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/24/t1293212745bvxlckccqu046cw/5pe5b1293212866.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/24/t1293212745bvxlckccqu046cw/5pe5b1293212866.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/24/t1293212745bvxlckccqu046cw/6pe5b1293212866.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/24/t1293212745bvxlckccqu046cw/6pe5b1293212866.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/24/t1293212745bvxlckccqu046cw/70o4e1293212866.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/24/t1293212745bvxlckccqu046cw/70o4e1293212866.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/24/t1293212745bvxlckccqu046cw/8ax3h1293212866.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/24/t1293212745bvxlckccqu046cw/8ax3h1293212866.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/24/t1293212745bvxlckccqu046cw/9ax3h1293212866.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/24/t1293212745bvxlckccqu046cw/9ax3h1293212866.ps (open in new window)


 
Parameters (Session):
par1 = kendall ;
 
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