Home » date » 2008 » Nov » 22 »

MR seiz en lin trend

*The author of this computation has been verified*
R Software Module: rwasp_multipleregression.wasp (opens new window with default values)
Title produced by software: Multiple Regression
Date of computation: Sat, 22 Nov 2008 04:09:40 -0700
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2008/Nov/22/t1227352271id5xilueoyveq62.htm/, Retrieved Sat, 22 Nov 2008 11:11:11 +0000
 
BibTeX entries for LaTeX users:
@Manual{KEY,
    author = {{YOUR NAME}},
    publisher = {Office for Research Development and Education},
    title = {Statistical Computations at FreeStatistics.org, URL http://www.freestatistics.org/blog/date/2008/Nov/22/t1227352271id5xilueoyveq62.htm/},
    year = {2008},
}
@Manual{R,
    title = {R: A Language and Environment for Statistical Computing},
    author = {{R Development Core Team}},
    organization = {R Foundation for Statistical Computing},
    address = {Vienna, Austria},
    year = {2008},
    note = {{ISBN} 3-900051-07-0},
    url = {http://www.R-project.org},
}
 
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
 
Feedback Forum:

Post a new message
 
Original text written by user:
 
IsPrivate?
No (this computation is public)
 
User-defined keywords:
 
Dataseries X:
» Textbox « » Textfile « » CSV «
15859,4 0 15258,9 0 15498,6 0 15106,5 0 15023,6 0 12083 0 15761,3 0 16942,6 0 15070,3 0 13659,6 0 14768,9 0 14725,1 0 15998,1 0 15370,6 0 14956,9 0 15469,7 0 15101,8 0 11703,7 0 16283,6 0 16726,5 0 14968,9 0 14861 0 14583,3 0 15305,8 0 17903,9 0 16379,4 0 15420,3 0 17870,5 0 15912,8 0 13866,5 0 17823,2 0 17872 0 17422 0 16704,5 0 15991,2 0 16583,6 0 19123,5 0 17838,7 0 17209,4 0 18586,5 0 16258,1 0 15141,6 1 19202,1 1 17746,5 1 19090,1 1 18040,3 1 17515,5 1 17751,8 1 21072,4 1 17170 1 19439,5 1 19795,4 1 17574,9 1 16165,4 1 19464,6 1 19932,1 1 19961,2 1 17343,4 1 18924,2 1 18574,1 1 21350,6 1 18594,6 1 19823,1 1 20844,4 1 19640,2 1 17735,4 1 19813,6 1 22238,5 1 20682,2 1 17818,6 1 21872,1 1 22117 1 21865,9 1
 
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'Sir Ronald Aylmer Fisher' @ 193.190.124.24


Multiple Linear Regression - Estimated Regression Equation
Y[t] = + 13846.4670804369 + 413.989821251241x[t] + 1956.27363908986M1[t] + 151.013702495232M2[t] + 357.992162599896M3[t] + 1163.23728937123M4[t] -279.317583857442M5[t] -2566.57076062798M6[t] + 959.941032810013M7[t] + 1395.95282624801M8[t] + 603.081286352674M9[t] -940.423586875995M10[t] -151.411793437997M11[t] + 82.2882065620025t + e[t]


Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STAT
H0: parameter = 0
2-tail p-value1-tail p-value
(Intercept)13846.4670804369389.94274435.50900
x413.989821251241365.7268521.1320.2622290.131115
M11956.27363908986435.5126834.49193.3e-051.7e-05
M2151.013702495232453.5518560.3330.7403460.370173
M3357.992162599896452.997010.79030.4325320.216266
M41163.23728937123452.6048332.57010.0127120.006356
M5-279.317583857442452.375749-0.61740.5393160.269658
M6-2566.57076062798454.178133-5.65100
M7959.941032810013453.2820962.11780.0384190.01921
M81395.95282624801452.5476563.08470.0030990.00155
M9603.081286352674451.9755991.33430.1872250.093613
M10-940.423586875995451.566543-2.08260.0416340.020817
M11-151.411793437997451.320932-0.33550.7384490.369224
t82.28820656200258.5976639.57100


Multiple Linear Regression - Regression Statistics
Multiple R0.95331137265489
R-squared0.908802573233149
Adjusted R-squared0.888708224962487
F-TEST (value)45.2267752599871
F-TEST (DF numerator)13
F-TEST (DF denominator)59
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation781.568929508545
Sum Squared Residuals36040149.5028148


Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolation
Forecast
Residuals
Prediction Error
115859.415885.0289260888-25.6289260888120
215258.914162.05719605621096.84280394382
315498.614451.32386272281047.27613727716
415106.515338.8571960562-232.357196056179
515023.613978.59052938951045.00947061049
61208311773.6255591810309.374440819029
715761.315382.4255591810378.874440819029
816942.615900.72555918101041.87444081903
915070.315190.1422258476-119.842225847638
1013659.613728.9255591810-69.3255591809702
1114768.914600.2255591810168.674440819028
1214725.114833.9255591810-108.825559180970
1315998.116872.4874048328-874.387404832836
1415370.615149.5156748002221.084325199793
1514956.915438.7823414669-481.882341466875
1615469.716326.3156748002-856.615674800207
1715101.814966.0490081335135.750991866458
1811703.712761.084037925-1057.384037925
1916283.616369.884037925-86.2840379250002
2016726.516888.184037925-161.684037925001
2114968.916177.6007045917-1208.70070459167
221486114716.384037925144.615962074999
2314583.315587.684037925-1004.38403792500
2415305.815821.384037925-515.584037925002
2517903.917859.945883576943.9541164231352
2616379.416136.9741535442242.425846455762
2715420.316426.2408202109-1005.94082021091
2817870.517313.7741535442556.725846455761
2915912.815953.5074868776-40.7074868775725
3013866.513748.5425166690117.957483330968
3117823.217357.3425166690465.85748333097
321787217875.6425166690-3.64251666903095
331742217165.0591833357256.940816664302
3416704.515703.84251666901000.65748333097
3515991.216575.1425166690-583.942516669031
3616583.616808.8425166690-225.242516669032
3719123.518847.4043623209276.095637679103
3817838.717124.4326322883714.267367711733
3917209.417413.6992989549-204.299298954932
4018586.518301.2326322883285.267367711731
4116258.116940.9659656216-682.865965621601
4215141.615149.9908166643-8.39081666430192
4319202.118758.7908166643443.309183335698
4417746.519277.0908166643-1530.5908166643
4519090.118566.5074833310523.59251666903
4618040.317105.2908166643935.009183335698
4717515.517976.5908166643-461.090816664302
4817751.818210.2908166643-458.490816664302
4921072.420248.8526623162823.547337683835
501717018525.8809322835-1355.88093228354
5119439.518815.1475989502624.352401049795
5219795.419702.680932283592.7190677164617
5317574.918342.4142656169-767.514265616871
5416165.416137.449295408327.9507045916671
5519464.619746.2492954083-281.649295408333
5619932.120264.5492954083-332.449295408334
5719961.219553.965962075407.234037925002
5817343.418092.7492954083-749.349295408331
5918924.218964.0492954083-39.8492954083312
6018574.119197.7492954083-623.649295408333
6121350.621236.3111410602114.288858939802
6218594.619513.3394110276-918.73941102757
6319823.119802.606077694220.4939223057624
6420844.420690.1394110276154.260588972431
6519640.219329.8727443609310.327255639098
6617735.417124.9077741524610.492225847638
6719813.620733.7077741524-920.107774152364
6822238.521252.0077741524986.492225847639
6920682.220541.4244408190140.775559180971
7017818.619080.2077741524-1261.60777415236
7121872.119951.50777415241920.59222584764
722211720185.20777415241931.79222584764
7321865.922223.7696198042-357.869619804226


Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
170.05464482425522870.1092896485104570.945355175744771
180.02628452858973730.05256905717947460.973715471410263
190.01770964554682830.03541929109365660.982290354453172
200.006710601953799290.01342120390759860.9932893980462
210.002517393283708820.005034786567417650.997482606716291
220.01506891487060500.03013782974121000.984931085129395
230.008201140124710660.01640228024942130.99179885987529
240.005010730463453080.01002146092690620.994989269536547
250.05846322355021770.1169264471004350.941536776449782
260.04302054399554110.08604108799108210.956979456004459
270.03309579931159010.06619159862318020.96690420068841
280.1511593461253650.3023186922507310.848840653874635
290.1037216930236740.2074433860473480.896278306976326
300.1111584638838030.2223169277676070.888841536116197
310.1005664012693650.2011328025387300.899433598730635
320.06661190448326810.1332238089665360.933388095516732
330.0839132884876680.1678265769753360.916086711512332
340.1244762800813920.2489525601627830.875523719918608
350.1004766731732140.2009533463464270.899523326826786
360.07425964256759680.1485192851351940.925740357432403
370.06206993939984050.1241398787996810.93793006060016
380.07869151992213460.1573830398442690.921308480077865
390.05287239497790350.1057447899558070.947127605022096
400.03995444964906380.07990889929812760.960045550350936
410.03398015339136460.06796030678272930.966019846608635
420.02058825919381210.04117651838762430.979411740806188
430.01971421739726100.03942843479452200.98028578260274
440.05528065659908190.1105613131981640.944719343400918
450.05432653676590090.1086530735318020.9456734632341
460.1730155613192400.3460311226384790.82698443868076
470.1471849586823720.2943699173647430.852815041317628
480.1155865161320190.2311730322640380.884413483867981
490.1835405743898740.3670811487797480.816459425610126
500.2109537118822480.4219074237644970.789046288117752
510.2126783261430940.4253566522861880.787321673856906
520.1524289535395220.3048579070790430.847571046460478
530.1096157834294280.2192315668588570.890384216570572
540.06298972387694940.1259794477538990.93701027612305
550.05980728637363780.1196145727472760.940192713626362
560.03164013567188710.06328027134377420.968359864328113


Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level10.025NOK
5% type I error level80.2NOK
10% type I error level140.35NOK
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/22/t1227352271id5xilueoyveq62/1053e51227352169.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/22/t1227352271id5xilueoyveq62/1053e51227352169.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/22/t1227352271id5xilueoyveq62/12my21227352169.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/22/t1227352271id5xilueoyveq62/12my21227352169.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/22/t1227352271id5xilueoyveq62/2jeok1227352169.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/22/t1227352271id5xilueoyveq62/2jeok1227352169.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/22/t1227352271id5xilueoyveq62/3nb5y1227352169.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/22/t1227352271id5xilueoyveq62/3nb5y1227352169.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/22/t1227352271id5xilueoyveq62/4h7fh1227352169.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/22/t1227352271id5xilueoyveq62/4h7fh1227352169.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/22/t1227352271id5xilueoyveq62/5xzbc1227352169.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/22/t1227352271id5xilueoyveq62/5xzbc1227352169.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/22/t1227352271id5xilueoyveq62/6mdnu1227352169.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/22/t1227352271id5xilueoyveq62/6mdnu1227352169.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/22/t1227352271id5xilueoyveq62/72v971227352169.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/22/t1227352271id5xilueoyveq62/72v971227352169.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/22/t1227352271id5xilueoyveq62/85n2o1227352169.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/22/t1227352271id5xilueoyveq62/85n2o1227352169.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/22/t1227352271id5xilueoyveq62/9wet81227352169.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/22/t1227352271id5xilueoyveq62/9wet81227352169.ps (open in new window)


 
Parameters (Session):
par1 = 1 ; par2 = Include Monthly Dummies ; par3 = Linear Trend ;
 
Parameters (R input):
par1 = 1 ; par2 = Include Monthly Dummies ; par3 = Linear Trend ;
 
R code (references can be found in the software module):
library(lattice)
library(lmtest)
n25 <- 25 #minimum number of obs. for Goldfeld-Quandt test
par1 <- as.numeric(par1)
x <- t(y)
k <- length(x[1,])
n <- length(x[,1])
x1 <- cbind(x[,par1], x[,1:k!=par1])
mycolnames <- c(colnames(x)[par1], colnames(x)[1:k!=par1])
colnames(x1) <- mycolnames #colnames(x)[par1]
x <- x1
if (par3 == 'First Differences'){
x2 <- array(0, dim=c(n-1,k), dimnames=list(1:(n-1), paste('(1-B)',colnames(x),sep='')))
for (i in 1:n-1) {
for (j in 1:k) {
x2[i,j] <- x[i+1,j] - x[i,j]
}
}
x <- x2
}
if (par2 == 'Include Monthly Dummies'){
x2 <- array(0, dim=c(n,11), dimnames=list(1:n, paste('M', seq(1:11), sep ='')))
for (i in 1:11){
x2[seq(i,n,12),i] <- 1
}
x <- cbind(x, x2)
}
if (par2 == 'Include Quarterly Dummies'){
x2 <- array(0, dim=c(n,3), dimnames=list(1:n, paste('Q', seq(1:3), sep ='')))
for (i in 1:3){
x2[seq(i,n,4),i] <- 1
}
x <- cbind(x, x2)
}
k <- length(x[1,])
if (par3 == 'Linear Trend'){
x <- cbind(x, c(1:n))
colnames(x)[k+1] <- 't'
}
x
k <- length(x[1,])
df <- as.data.frame(x)
(mylm <- lm(df))
(mysum <- summary(mylm))
if (n > n25) {
kp3 <- k + 3
nmkm3 <- n - k - 3
gqarr <- array(NA, dim=c(nmkm3-kp3+1,3))
numgqtests <- 0
numsignificant1 <- 0
numsignificant5 <- 0
numsignificant10 <- 0
for (mypoint in kp3:nmkm3) {
j <- 0
numgqtests <- numgqtests + 1
for (myalt in c('greater', 'two.sided', 'less')) {
j <- j + 1
gqarr[mypoint-kp3+1,j] <- gqtest(mylm, point=mypoint, alternative=myalt)$p.value
}
if (gqarr[mypoint-kp3+1,2] < 0.01) numsignificant1 <- numsignificant1 + 1
if (gqarr[mypoint-kp3+1,2] < 0.05) numsignificant5 <- numsignificant5 + 1
if (gqarr[mypoint-kp3+1,2] < 0.10) numsignificant10 <- numsignificant10 + 1
}
gqarr
}
bitmap(file='test0.png')
plot(x[,1], type='l', main='Actuals and Interpolation', ylab='value of Actuals and Interpolation (dots)', xlab='time or index')
points(x[,1]-mysum$resid)
grid()
dev.off()
bitmap(file='test1.png')
plot(mysum$resid, type='b', pch=19, main='Residuals', ylab='value of Residuals', xlab='time or index')
grid()
dev.off()
bitmap(file='test2.png')
hist(mysum$resid, main='Residual Histogram', xlab='values of Residuals')
grid()
dev.off()
bitmap(file='test3.png')
densityplot(~mysum$resid,col='black',main='Residual Density Plot', xlab='values of Residuals')
dev.off()
bitmap(file='test4.png')
qqnorm(mysum$resid, main='Residual Normal Q-Q Plot')
qqline(mysum$resid)
grid()
dev.off()
(myerror <- as.ts(mysum$resid))
bitmap(file='test5.png')
dum <- cbind(lag(myerror,k=1),myerror)
dum
dum1 <- dum[2:length(myerror),]
dum1
z <- as.data.frame(dum1)
z
plot(z,main=paste('Residual Lag plot, lowess, and regression line'), ylab='values of Residuals', xlab='lagged values of Residuals')
lines(lowess(z))
abline(lm(z))
grid()
dev.off()
bitmap(file='test6.png')
acf(mysum$resid, lag.max=length(mysum$resid)/2, main='Residual Autocorrelation Function')
grid()
dev.off()
bitmap(file='test7.png')
pacf(mysum$resid, lag.max=length(mysum$resid)/2, main='Residual Partial Autocorrelation Function')
grid()
dev.off()
bitmap(file='test8.png')
opar <- par(mfrow = c(2,2), oma = c(0, 0, 1.1, 0))
plot(mylm, las = 1, sub='Residual Diagnostics')
par(opar)
dev.off()
if (n > n25) {
bitmap(file='test9.png')
plot(kp3:nmkm3,gqarr[,2], main='Goldfeld-Quandt test',ylab='2-sided p-value',xlab='breakpoint')
grid()
dev.off()
}
load(file='createtable')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a, 'Multiple Linear Regression - Estimated Regression Equation', 1, TRUE)
a<-table.row.end(a)
myeq <- colnames(x)[1]
myeq <- paste(myeq, '[t] = ', sep='')
for (i in 1:k){
if (mysum$coefficients[i,1] > 0) myeq <- paste(myeq, '+', '')
myeq <- paste(myeq, mysum$coefficients[i,1], sep=' ')
if (rownames(mysum$coefficients)[i] != '(Intercept)') {
myeq <- paste(myeq, rownames(mysum$coefficients)[i], sep='')
if (rownames(mysum$coefficients)[i] != 't') myeq <- paste(myeq, '[t]', sep='')
}
}
myeq <- paste(myeq, ' + e[t]')
a<-table.row.start(a)
a<-table.element(a, myeq)
a<-table.row.end(a)
a<-table.end(a)
table.save(a,file='mytable1.tab')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a,hyperlink('http://www.xycoon.com/ols1.htm','Multiple Linear Regression - Ordinary Least Squares',''), 6, TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'Variable',header=TRUE)
a<-table.element(a,'Parameter',header=TRUE)
a<-table.element(a,'S.D.',header=TRUE)
a<-table.element(a,'T-STAT<br />H0: parameter = 0',header=TRUE)
a<-table.element(a,'2-tail p-value',header=TRUE)
a<-table.element(a,'1-tail p-value',header=TRUE)
a<-table.row.end(a)
for (i in 1:k){
a<-table.row.start(a)
a<-table.element(a,rownames(mysum$coefficients)[i],header=TRUE)
a<-table.element(a,mysum$coefficients[i,1])
a<-table.element(a, round(mysum$coefficients[i,2],6))
a<-table.element(a, round(mysum$coefficients[i,3],4))
a<-table.element(a, round(mysum$coefficients[i,4],6))
a<-table.element(a, round(mysum$coefficients[i,4]/2,6))
a<-table.row.end(a)
}
a<-table.end(a)
table.save(a,file='mytable2.tab')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a, 'Multiple Linear Regression - Regression Statistics', 2, TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'Multiple R',1,TRUE)
a<-table.element(a, sqrt(mysum$r.squared))
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'R-squared',1,TRUE)
a<-table.element(a, mysum$r.squared)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'Adjusted R-squared',1,TRUE)
a<-table.element(a, mysum$adj.r.squared)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'F-TEST (value)',1,TRUE)
a<-table.element(a, mysum$fstatistic[1])
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'F-TEST (DF numerator)',1,TRUE)
a<-table.element(a, mysum$fstatistic[2])
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'F-TEST (DF denominator)',1,TRUE)
a<-table.element(a, mysum$fstatistic[3])
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'p-value',1,TRUE)
a<-table.element(a, 1-pf(mysum$fstatistic[1],mysum$fstatistic[2],mysum$fstatistic[3]))
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'Multiple Linear Regression - Residual Statistics', 2, TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'Residual Standard Deviation',1,TRUE)
a<-table.element(a, mysum$sigma)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'Sum Squared Residuals',1,TRUE)
a<-table.element(a, sum(myerror*myerror))
a<-table.row.end(a)
a<-table.end(a)
table.save(a,file='mytable3.tab')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a, 'Multiple Linear Regression - Actuals, Interpolation, and Residuals', 4, TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'Time or Index', 1, TRUE)
a<-table.element(a, 'Actuals', 1, TRUE)
a<-table.element(a, 'Interpolation<br />Forecast', 1, TRUE)
a<-table.element(a, 'Residuals<br />Prediction Error', 1, TRUE)
a<-table.row.end(a)
for (i in 1:n) {
a<-table.row.start(a)
a<-table.element(a,i, 1, TRUE)
a<-table.element(a,x[i])
a<-table.element(a,x[i]-mysum$resid[i])
a<-table.element(a,mysum$resid[i])
a<-table.row.end(a)
}
a<-table.end(a)
table.save(a,file='mytable4.tab')
if (n > n25) {
a<-table.start()
a<-table.row.start(a)
a<-table.element(a,'Goldfeld-Quandt test for Heteroskedasticity',4,TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'p-values',header=TRUE)
a<-table.element(a,'Alternative Hypothesis',3,header=TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'breakpoint index',header=TRUE)
a<-table.element(a,'greater',header=TRUE)
a<-table.element(a,'2-sided',header=TRUE)
a<-table.element(a,'less',header=TRUE)
a<-table.row.end(a)
for (mypoint in kp3:nmkm3) {
a<-table.row.start(a)
a<-table.element(a,mypoint,header=TRUE)
a<-table.element(a,gqarr[mypoint-kp3+1,1])
a<-table.element(a,gqarr[mypoint-kp3+1,2])
a<-table.element(a,gqarr[mypoint-kp3+1,3])
a<-table.row.end(a)
}
a<-table.end(a)
table.save(a,file='mytable5.tab')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a,'Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity',4,TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'Description',header=TRUE)
a<-table.element(a,'# significant tests',header=TRUE)
a<-table.element(a,'% significant tests',header=TRUE)
a<-table.element(a,'OK/NOK',header=TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'1% type I error level',header=TRUE)
a<-table.element(a,numsignificant1)
a<-table.element(a,numsignificant1/numgqtests)
if (numsignificant1/numgqtests < 0.01) dum <- 'OK' else dum <- 'NOK'
a<-table.element(a,dum)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'5% type I error level',header=TRUE)
a<-table.element(a,numsignificant5)
a<-table.element(a,numsignificant5/numgqtests)
if (numsignificant5/numgqtests < 0.05) dum <- 'OK' else dum <- 'NOK'
a<-table.element(a,dum)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'10% type I error level',header=TRUE)
a<-table.element(a,numsignificant10)
a<-table.element(a,numsignificant10/numgqtests)
if (numsignificant10/numgqtests < 0.1) dum <- 'OK' else dum <- 'NOK'
a<-table.element(a,dum)
a<-table.row.end(a)
a<-table.end(a)
table.save(a,file='mytable6.tab')
}
 





Copyright

Creative Commons License

This work is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 License.

Software written by Ed van Stee & Patrick Wessa


Disclaimer

Information provided on this web site is provided "AS IS" without warranty of any kind, either express or implied, including, without limitation, warranties of merchantability, fitness for a particular purpose, and noninfringement. We use reasonable efforts to include accurate and timely information and periodically update the information, and software without notice. However, we make no warranties or representations as to the accuracy or completeness of such information (or software), and we assume no liability or responsibility for errors or omissions in the content of this web site, or any software bugs in online applications. Your use of this web site is AT YOUR OWN RISK. Under no circumstances and under no legal theory shall we be liable to you or any other person for any direct, indirect, special, incidental, exemplary, or consequential damages arising from your access to, or use of, this web site.


Privacy Policy

We may request personal information to be submitted to our servers in order to be able to:

  • personalize online software applications according to your needs
  • enforce strict security rules with respect to the data that you upload (e.g. statistical data)
  • manage user sessions of online applications
  • alert you about important changes or upgrades in resources or applications

We NEVER allow other companies to directly offer registered users information about their products and services. Banner references and hyperlinks of third parties NEVER contain any personal data of the visitor.

We do NOT sell, nor transmit by any means, personal information, nor statistical data series uploaded by you to third parties.

We carefully protect your data from loss, misuse, alteration, and destruction. However, at any time, and under any circumstance you are solely responsible for managing your passwords, and keeping them secret.

We store a unique ANONYMOUS USER ID in the form of a small 'Cookie' on your computer. This allows us to track your progress when using this website which is necessary to create state-dependent features. The cookie is used for NO OTHER PURPOSE. At any time you may opt to disallow cookies from this website - this will not affect other features of this website.

We examine cookies that are used by third-parties (banner and online ads) very closely: abuse from third-parties automatically results in termination of the advertising contract without refund. We have very good reason to believe that the cookies that are produced by third parties (banner ads) do NOT cause any privacy or security risk.

FreeStatistics.org is safe. There is no need to download any software to use the applications and services contained in this website. Hence, your system's security is not compromised by their use, and your personal data - other than data you submit in the account application form, and the user-agent information that is transmitted by your browser - is never transmitted to our servers.

As a general rule, we do not log on-line behavior of individuals (other than normal logging of webserver 'hits'). However, in cases of abuse, hacking, unauthorized access, Denial of Service attacks, illegal copying, hotlinking, non-compliance with international webstandards (such as robots.txt), or any other harmful behavior, our system engineers are empowered to log, track, identify, publish, and ban misbehaving individuals - even if this leads to ban entire blocks of IP addresses, or disclosing user's identity.


FreeStatistics.org is powered by