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 10:08:34 +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/t12911117658z3ezht0l0q8mgh.htm/, Retrieved Tue, 30 Nov 2010 11:09:25 +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/t12911117658z3ezht0l0q8mgh.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 «
22.397 26.105 29.462 27.071 31.514 23.843 22.397 26.105 29.462 27.071 21.705 23.843 22.397 26.105 29.462 18.089 21.705 23.843 22.397 26.105 20.764 18.089 21.705 23.843 22.397 25.316 20.764 18.089 21.705 23.843 17.704 25.316 20.764 18.089 21.705 15.548 17.704 25.316 20.764 18.089 28.029 15.548 17.704 25.316 20.764 29.383 28.029 15.548 17.704 25.316 36.438 29.383 28.029 15.548 17.704 32.034 36.438 29.383 28.029 15.548 22.679 32.034 36.438 29.383 28.029 24.319 22.679 32.034 36.438 29.383 18.004 24.319 22.679 32.034 36.438 17.537 18.004 24.319 22.679 32.034 20.366 17.537 18.004 24.319 22.679 22.782 20.366 17.537 18.004 24.319 19.169 22.782 20.366 17.537 18.004 13.807 19.169 22.782 20.366 17.537 29.743 13.807 19.169 22.782 20.366 25.591 29.743 13.807 19.169 22.782 29.096 25.591 29.743 13.807 19.169 26.482 29.096 25.591 29.743 13.807 22.405 26.482 29.096 25.591 29.743 27.044 22.405 26.482 29.096 25.591 17.970 27.044 22.405 26.482 29.096 18.730 17.970 27.044 22.405 26.482 19.684 18.730 17 etc...
 
Output produced by software:

Enter (or paste) a matrix (table) containing all data (time) series. Every column represents a different variable and must be delimited by a space or Tab. Every row represents a period in time (or category) and must be delimited by hard returns. The easiest way to enter data is to copy and paste a block of spreadsheet cells. Please, do not use commas or spaces to seperate groups of digits!


Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time6 seconds
R Server'Sir Ronald Aylmer Fisher' @ 193.190.124.24


Multiple Linear Regression - Estimated Regression Equation
Yt[t] = + 12.2406247261314 + 0.232373289440401Yt_1[t] + 0.334514566579160Yt_2[t] + 0.0190532461610643Yt_3[t] -0.0846729256870996Yt_4[t] -3.48048732019389M1[t] -0.467043484880352M2[t] -4.48331016033904M3[t] -5.27300518640634M4[t] -1.33980579687569M5[t] + 1.53664584963875M6[t] -4.77797385546277M7[t] -10.3001636157727M8[t] + 9.78306552323733M9[t] + 5.88075610040622M10[t] + 4.15159268968920M11[t] + e[t]


Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STAT
H0: parameter = 0
2-tail p-value1-tail p-value
(Intercept)12.24062472613144.4180092.77060.0073150.003658
Yt_10.2323732894404010.1250631.8580.0677630.033881
Yt_20.3345145665791600.1274772.62410.010850.005425
Yt_30.01905324616106430.1281150.14870.8822420.441121
Yt_4-0.08467292568709960.122991-0.68840.4936580.246829
M1-3.480487320193892.455267-1.41760.161170.080585
M2-0.4670434848803522.331374-0.20030.8418580.420929
M3-4.483310160339042.821579-1.58890.1170030.058502
M4-5.273005186406342.787288-1.89180.0630430.031522
M5-1.339805796875692.629014-0.50960.6120690.306034
M61.536645849638752.8853750.53260.596180.29809
M7-4.777973855462772.31827-2.0610.043370.021685
M8-10.30016361577272.210753-4.65911.7e-058e-06
M99.783065523237332.8403053.44440.0010150.000507
M105.880756100406223.1487111.86770.0663880.033194
M114.151592689689202.6771941.55070.1258990.062949


Multiple Linear Regression - Regression Statistics
Multiple R0.95387231448526
R-squared0.909872392341468
Adjusted R-squared0.8887487342965
F-TEST (value)43.0736187077311
F-TEST (DF numerator)15
F-TEST (DF denominator)64
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation1.89712768075047
Sum Squared Residuals230.341979972458


Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolation
Forecast
Residuals
Prediction Error
122.39722.5291181340573-0.132118134057304
223.84323.9797145325185-0.136714532518468
321.70518.79266490803452.91233509196549
418.08918.2034614271835-0.114461427183472
520.76420.9227250611481-0.158725061148055
625.31623.04799769332942.26800230667058
717.70418.7981018443605-1.09410184436047
815.54813.38694164466392.16105835533607
928.02930.2830793911521-2.25407939115208
1029.38328.02934312077621.35365687922375
1136.43831.3933409610435.04465903895703
1232.03429.75443294462162.27956705537838
1322.67926.5795692347496-3.90056923474957
1424.31925.9657323064195-1.64673230641951
1518.00418.5198960684792-0.515896068479212
1617.53717.00602405567480.530975944325163
1720.36619.54160817459640.824391825403613
1822.78222.66004070671130.121959293288710
1919.16918.37898823750700.790011762492963
2013.80712.91886486498970.888135135010294
2129.74330.3540002329261-0.611000232926145
2225.59128.0877152777798-2.49671527777984
2329.09630.9283218769036-1.83232187690364
2426.48226.9599418446233-0.477941844623321
2522.40522.6160474798818-0.211047479881822
2627.04424.22602795235632.81797204764371
2717.9719.5773412886701-1.60734128867007
2818.7318.37455905172870.355440948271281
2919.68419.8825764910623-0.198576491062257
3019.78522.6692564683751-2.88425646837505
3118.47917.48003595679070.998964043209319
3210.69811.6419780250115-0.943978025011526
3331.95629.40138098169022.55461901830979
3429.50627.80256959824991.70343040175006
3534.50632.57753181731181.92846818268816
3627.16529.8321188283689-2.66711882836893
3726.73624.47169451593792.26430548406211
3823.69125.2324936755626-1.54149367556259
3918.15719.8019090761916-1.64490907619155
4017.32817.32107351599340.00692648400657125
4118.20519.1887393876882-0.983739387688245
4220.99522.1440582278097-1.14905822780968
4317.38217.22391410482170.158085895178314
449.36711.8823588427973-2.51535884279729
4531.12428.87341533885382.25058466114619
4626.55127.0406404821986-0.489640482198587
4730.65131.6800789564600-1.02907895645996
4825.85928.0446766166183-2.18567661661829
4925.122.89280687753182.20719312246822
5025.77824.59221318154021.18578681845981
5120.41820.04113688936760.37686311063242
5218.68818.62401315409670.0639868459032659
5320.42420.4393935275249-0.0153935275249063
5424.77622.98100136128681.79499863871322
5519.81418.67927226523551.13472773476449
5612.73813.6394142332491-0.901414233249097
5731.56630.35443622511321.21156377488677
5830.11127.99718724271042.11381275728962
5930.01932.5134872428337-2.4944872428337
6031.93428.81167765702573.12232234297426
6125.82624.12346552798391.70253447201612
6226.83526.47961491462250.355385085377546
6320.20520.6988747911053-0.493874791105269
6417.78918.4275441734839-0.638544173483901
6520.5220.11790507478000.402094925219965
6622.51822.6090229778348-0.0910229778348198
6715.57218.1875932409432-2.61559324094324
6811.50911.9763029199313-0.467302919931338
6925.44728.5986878302645-3.15168783026453
7024.0926.274544278285-2.18454427828501
7127.78629.4032391454479-1.61723914544789
7226.19526.2661521087421-0.0711521087420993
7320.51622.4462982298578-1.93029822985775
7422.75923.7932034369805-1.03420343698049
7519.02818.05517697815180.972823021848202
7616.97117.1753246218389-0.204324621838907
7720.03619.90605228320010.129947716799886
7822.48522.5456225646530-0.0606225646529591
7918.7318.10209435034140.627905649658635
8014.53812.75913946935711.77886053064289


Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
190.2263225775013740.4526451550027480.773677422498626
200.1292986949218230.2585973898436460.870701305078177
210.06674399564782280.1334879912956460.933256004352177
220.2316076127063710.4632152254127430.768392387293629
230.9362684254935760.1274631490128480.0637315745064242
240.9358945377758670.1282109244482670.0641054622241335
250.9007881319019320.1984237361961360.0992118680980679
260.9039383486096520.1921233027806970.0960616513903484
270.9258763964902940.1482472070194130.0741236035097064
280.8919711445629520.2160577108740960.108028855437048
290.843226455535930.3135470889281390.156773544464069
300.906794189200810.1864116215983790.0932058107991896
310.8724404479553120.2551191040893760.127559552044688
320.87347496671930.2530500665613990.126525033280700
330.8801095989008760.2397808021982480.119890401099124
340.8556109481827930.2887781036344150.144389051817207
350.8582928554741460.2834142890517070.141707144525854
360.9057827051449260.1884345897101480.094217294855074
370.9314994739429950.1370010521140100.0685005260570049
380.9161892353015040.1676215293969910.0838107646984957
390.9065317747469140.1869364505061710.0934682252530857
400.866983318420970.266033363158060.13301668157903
410.8255495532956420.3489008934087160.174450446704358
420.7958762494120930.4082475011758150.204123750587907
430.7406811867331950.518637626533610.259318813266805
440.7809342356944290.4381315286111420.219065764305571
450.8256226467737480.3487547064525040.174377353226252
460.7693744485671890.4612511028656230.230625551432812
470.7610622160020660.4778755679958680.238937783997934
480.871495185363990.2570096292720200.128504814636010
490.931158224009430.1376835519811410.0688417759905703
500.8960216159544460.2079567680911070.103978384045554
510.8701808325974390.2596383348051230.129819167402561
520.834758050266390.3304838994672220.165241949733611
530.7667062003379780.4665875993240430.233293799662022
540.7649871821743780.4700256356512440.235012817825622
550.6889568267149160.6220863465701670.311043173285084
560.6440807086818890.7118385826362220.355919291318111
570.7848147389683010.4303705220633980.215185261031699
580.6945288190585350.6109423618829310.305471180941465
590.6341371346036050.731725730792790.365862865396395
600.8468796105785240.3062407788429520.153120389421476
610.7216484543817380.5567030912365240.278351545618262


Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level00OK
5% type I error level00OK
10% type I error level00OK
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Nov/30/t12911117658z3ezht0l0q8mgh/10rqnb1291111704.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/30/t12911117658z3ezht0l0q8mgh/10rqnb1291111704.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Nov/30/t12911117658z3ezht0l0q8mgh/12pqz1291111704.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/30/t12911117658z3ezht0l0q8mgh/12pqz1291111704.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Nov/30/t12911117658z3ezht0l0q8mgh/22pqz1291111704.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/30/t12911117658z3ezht0l0q8mgh/22pqz1291111704.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Nov/30/t12911117658z3ezht0l0q8mgh/32pqz1291111704.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/30/t12911117658z3ezht0l0q8mgh/32pqz1291111704.ps (open in new window)


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


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


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


http://www.freestatistics.org/blog/date/2010/Nov/30/t12911117658z3ezht0l0q8mgh/76ppn1291111704.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/30/t12911117658z3ezht0l0q8mgh/76ppn1291111704.ps (open in new window)


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


http://www.freestatistics.org/blog/date/2010/Nov/30/t12911117658z3ezht0l0q8mgh/9zyoq1291111704.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/30/t12911117658z3ezht0l0q8mgh/9zyoq1291111704.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