Home » date » 2010 » Nov » 30 »

*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: Tue, 30 Nov 2010 09:47:16 +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/Nov/30/t1291110412gmbydzmv7e1it4e.htm/, Retrieved Tue, 30 Nov 2010 10:47:02 +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/Nov/30/t1291110412gmbydzmv7e1it4e.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 «
31.514 0 27.071 0 29.462 0 26.105 0 22.397 0 23.843 0 21.705 0 18.089 0 20.764 0 25.316 0 17.704 0 15.548 0 28.029 0 29.383 0 36.438 0 32.034 0 22.679 0 24.319 0 18.004 0 17.537 0 20.366 0 22.782 0 19.169 0 13.807 0 29.743 0 25.591 0 29.096 0 26.482 0 22.405 0 27.044 0 17.970 0 18.730 0 19.684 0 19.785 0 18.479 0 10.698 0 31.956 0 29.506 0 34.506 0 27.165 0 26.736 0 23.691 0 18.157 0 17.328 0 18.205 0 20.995 0 17.382 0 9.367 0 31.124 0 26.551 0 30.651 0 25.859 0 25.100 0 25.778 0 20.418 0 18.688 0 20.424 0 24.776 0 19.814 0 12.738 0 31.566 0 30.111 0 30.019 0 31.934 0 25.826 0 26.835 0 20.205 0 17.789 0 20.520 1 22.518 1 15.572 1 11.509 1 25.447 1 24.090 1 27.786 1 26.195 1 20.516 1 22.759 1 19.028 1 16.971 1 20.036 1 22.485 1 18.730 1 14.538 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 time7 seconds
R Server'Gwilym Jenkins' @ 72.249.127.135


Multiple Linear Regression - Estimated Regression Equation
Y[t] = + 13.0633214285714 -1.61912500000001X[t] + 17.0792678571429M1[t] + 14.6398392857143M2[t] + 18.3048392857143M3[t] + 15.1356964285714M4[t] + 10.8335535714285M5[t] + 12.0635535714286M6[t] + 6.52326785714285M7[t] + 5.04398214285713M8[t] + 7.39914285714285M9[t] + 10.0645714285714M10[t] + 5.52071428571428M11[t] + e[t]


Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STAT
H0: parameter = 0
2-tail p-value1-tail p-value
(Intercept)13.06332142857140.75046217.40700
X-1.619125000000010.547688-2.95630.0042240.002112
M117.07926785714291.0409316.407700
M214.63983928571431.0409314.064200
M318.30483928571431.0409317.585100
M415.13569642857141.0409314.540500
M510.83355357142851.0409310.407600
M612.06355357142861.0409311.589200
M76.523267857142851.040936.266800
M85.043982142857131.040934.84567e-064e-06
M97.399142857142851.0379867.128400
M1010.06457142857141.0379869.696300
M115.520714285714281.0379865.31871e-061e-06


Multiple Linear Regression - Regression Statistics
Multiple R0.949194746949424
R-squared0.90097066763638
Adjusted R-squared0.8842333156876
F-TEST (value)53.829940984303
F-TEST (DF numerator)12
F-TEST (DF denominator)71
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation1.94189343526714
Sum Squared Residuals267.737458089287


Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolation
Forecast
Residuals
Prediction Error
131.51430.14258928571421.37141071428583
227.07127.7031607142857-0.632160714285683
329.46231.3681607142858-1.9061607142858
426.10528.1990178571430-2.09401785714296
522.39723.8968750000001-1.49987500000005
623.84325.126875-1.283875
721.70519.58658928571432.11841071428573
818.08918.1073035714286-0.0183035714285787
920.76420.46246428571430.30153571428572
1025.31623.12789285714292.18810714285715
1117.70418.5840357142857-0.88003571428572
1215.54813.06332142857142.48467857142857
1328.02930.1425892857143-2.1135892857143
1429.38327.70316071428571.67983928571428
1536.43831.36816071428575.0698392857143
1632.03428.19901785714283.83498214285716
1722.67923.896875-1.21787499999999
1824.31925.126875-0.807875000000001
1918.00419.5865892857143-1.58258928571429
2017.53718.1073035714286-0.570303571428571
2120.36620.4624642857143-0.0964642857142865
2222.78223.1278928571429-0.345892857142858
2319.16918.58403571428570.584964285714287
2413.80713.06332142857140.743678571428565
2529.74330.1425892857143-0.399589285714304
2625.59127.7031607142857-2.11216071428572
2729.09631.3681607142857-2.2721607142857
2826.48228.1990178571428-1.71701785714284
2922.40523.896875-1.49187499999999
3027.04425.1268751.917125
3117.9719.5865892857143-1.61658928571429
3218.7318.10730357142860.62269642857143
3319.68420.4624642857143-0.778464285714285
3419.78523.1278928571429-3.34289285714286
3518.47918.5840357142857-0.105035714285713
3610.69813.0633214285714-2.36532142857143
3731.95630.14258928571431.81341071428570
3829.50627.70316071428571.80283928571428
3934.50631.36816071428573.1378392857143
4027.16528.1990178571428-1.03401785714284
4126.73623.8968752.83912500000001
4223.69125.126875-1.435875
4318.15719.5865892857143-1.42958928571429
4417.32818.1073035714286-0.779303571428571
4518.20520.4624642857143-2.25746428571429
4620.99523.1278928571429-2.13289285714286
4717.38218.5840357142857-1.20203571428571
489.36713.0633214285714-3.69632142857143
4931.12430.14258928571430.981410714285696
5026.55127.7031607142857-1.15216071428572
5130.65131.3681607142857-0.7171607142857
5225.85928.1990178571428-2.34001785714284
5325.123.8968751.20312500000001
5425.77825.1268750.651124999999998
5520.41819.58658928571430.831410714285713
5618.68818.10730357142860.580696428571428
5720.42420.4624642857143-0.0384642857142866
5824.77623.12789285714291.64810714285714
5919.81418.58403571428571.22996428571429
6012.73813.0633214285714-0.325321428571436
6131.56630.14258928571431.42341071428570
6230.11127.70316071428572.40783928571428
6330.01931.3681607142857-1.3491607142857
6431.93428.19901785714283.73498214285716
6525.82623.8968751.92912500000001
6626.83525.1268751.708125
6720.20519.58658928571430.618410714285712
6817.78918.1073035714286-0.318303571428569
6920.5218.84333928571431.67666071428571
7022.51821.50876785714291.00923214285714
7115.57216.9649107142857-1.39291071428571
7211.50911.44419642857140.0648035714285629
7325.44728.5234642857143-3.07646428571431
7424.0926.0840357142857-1.99403571428572
7527.78629.7490357142857-1.96303571428570
7626.19526.5798928571428-0.384892857142838
7720.51622.27775-1.76174999999999
7822.75923.50775-0.748749999999998
7919.02817.96746428571431.06053571428571
8016.97116.48817857142860.482821428571429
8120.03618.84333928571431.19266071428571
8222.48521.50876785714290.976232142857142
8318.7316.96491071428571.76508928571429
8414.53811.44419642857143.09380357142856


Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
160.9964520771483940.00709584570321110.00354792285160555
170.9913885388758650.01722292224827100.00861146112413552
180.9816248362017430.03675032759651470.0183751637982573
190.9810911247841940.03781775043161110.0189088752158056
200.9651840865333790.06963182693324250.0348159134666213
210.940141384566840.1197172308663180.059858615433159
220.9225048611986160.1549902776027690.0774951388013844
230.8890212279129690.2219575441740620.110978772087031
240.8559526209165440.2880947581669120.144047379083456
250.7985841996919530.4028316006160940.201415800308047
260.797979203934510.4040415921309790.202020796065489
270.8379198599719120.3241602800561760.162080140028088
280.8270539138875610.3458921722248790.172946086112439
290.7917475734208030.4165048531583940.208252426579197
300.794794897026220.4104102059475600.205205102973780
310.7684510370768020.4630979258463960.231548962923198
320.7104919893405250.5790160213189510.289508010659475
330.648908180203130.702183639593740.35109181979687
340.7601463445458930.4797073109082140.239853655454107
350.6965035058102250.606992988379550.303496494189775
360.7432244610991770.5135510778016450.256775538900823
370.7260542221463440.5478915557073120.273945777853656
380.7080497953622010.5839004092755980.291950204637799
390.7901745996811530.4196508006376930.209825400318847
400.748104343247240.5037913135055190.251895656752759
410.8009569675246540.3980860649506910.199043032475346
420.7747439784435350.450512043112930.225256021556465
430.7518674956754590.4962650086490830.248132504324541
440.6990797625588320.6018404748823360.300920237441168
450.7307227444437320.5385545111125350.269277255556268
460.7724368359555470.4551263280889050.227563164044453
470.750374372093530.4992512558129390.249625627906470
480.9180367844866780.1639264310266440.081963215513322
490.8942394854330590.2115210291338820.105760514566941
500.8777641052257850.244471789548430.122235894774215
510.8416892720429060.3166214559141880.158310727957094
520.9315633386925680.1368733226148640.068436661307432
530.9050994623850640.1898010752298730.0949005376149363
540.8674560339967940.2650879320064110.132543966003206
550.8241907002067190.3516185995865630.175809299793281
560.7632496427961690.4735007144076620.236750357203831
570.7828164649117930.4343670701764130.217183535088207
580.7396914175136580.5206171649726830.260308582486342
590.6711274370789360.6577451258421280.328872562921064
600.7961289959977420.4077420080045150.203871004002258
610.780550362071990.4388992758560190.219449637928009
620.7913403176258880.4173193647482250.208659682374112
630.7263526927514070.5472946144971860.273647307248593
640.761148726951770.477702546096460.23885127304823
650.7862232900550950.4275534198898090.213776709944905
660.7906778796104030.4186442407791940.209322120389597
670.6605264969306590.6789470061386820.339473503069341
680.4874979979559590.9749959959119170.512502002044041


Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level10.0188679245283019NOK
5% type I error level40.0754716981132075NOK
10% type I error level50.0943396226415094OK
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Nov/30/t1291110412gmbydzmv7e1it4e/10zrlb1291110428.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/30/t1291110412gmbydzmv7e1it4e/10zrlb1291110428.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Nov/30/t1291110412gmbydzmv7e1it4e/13inl1291110428.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/30/t1291110412gmbydzmv7e1it4e/13inl1291110428.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Nov/30/t1291110412gmbydzmv7e1it4e/23inl1291110428.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/30/t1291110412gmbydzmv7e1it4e/23inl1291110428.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Nov/30/t1291110412gmbydzmv7e1it4e/33inl1291110428.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/30/t1291110412gmbydzmv7e1it4e/33inl1291110428.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Nov/30/t1291110412gmbydzmv7e1it4e/4e9m61291110428.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/30/t1291110412gmbydzmv7e1it4e/4e9m61291110428.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Nov/30/t1291110412gmbydzmv7e1it4e/5e9m61291110428.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/30/t1291110412gmbydzmv7e1it4e/5e9m61291110428.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Nov/30/t1291110412gmbydzmv7e1it4e/6e9m61291110428.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/30/t1291110412gmbydzmv7e1it4e/6e9m61291110428.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Nov/30/t1291110412gmbydzmv7e1it4e/7p0mq1291110428.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/30/t1291110412gmbydzmv7e1it4e/7p0mq1291110428.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Nov/30/t1291110412gmbydzmv7e1it4e/8zrlb1291110428.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/30/t1291110412gmbydzmv7e1it4e/8zrlb1291110428.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Nov/30/t1291110412gmbydzmv7e1it4e/9zrlb1291110428.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/30/t1291110412gmbydzmv7e1it4e/9zrlb1291110428.ps (open in new window)


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





Copyright

Creative Commons License

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

Software written by Ed van Stee & Patrick Wessa


Disclaimer

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


Privacy Policy

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

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

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

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

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

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

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

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

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


FreeStatistics.org is powered by