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 17:19:13 +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/t12911375088dpag4hl64t9isf.htm/, Retrieved Tue, 30 Nov 2010 18:18:28 +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/t12911375088dpag4hl64t9isf.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 «
12008 9169 8788 8417 8247 8197 8236 8253 7733 8366 8626 8863 10102 8463 9114 8563 8872 8301 8301 8278 7736 7973 8268 9476 11100 8962 9173 8738 8459 8078 8411 8291 7810 8616 8312 9692 9911 8915 9452 9112 8472 8230 8384 8625 8221 8649 8625 10443 10357 8586 8892 8329 8101 7922 8120 7838 7735 8406 8209 9451 10041 9411 10405 8467 8464 8102 7627 7513 7510 8291 8064 9383 9706 8579 9474 8318 8213 8059 9111 7708 7680 8014 8007 8718 9486 9113 9025 8476 7952 7759 7835 7600 7651 8319 8812 8630
 
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
Sterftes[t] = + 9560.57142857143 + 960.314153439156M1[t] -474.578042328042M2[t] -79.720238095238M3[t] -813.362433862434M4[t] -1014.12962962963M5[t] -1276.39682539682M6[t] -1100.03902116402M7[t] -1335.68121693122M8[t] -1585.19841269841M9[t] -1011.21560846561M10[t] -970.857804232804M11[t] -4.23280423280424t + e[t]


Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STAT
H0: parameter = 0
2-tail p-value1-tail p-value
(Intercept)9560.57142857143164.96036257.956800
M1960.314153439156203.6179554.71631e-055e-06
M2-474.578042328042203.500867-2.33210.022120.01106
M3-79.720238095238203.394873-0.39190.6961010.348051
M4-813.362433862434203.299989-4.00080.0001366.8e-05
M5-1014.12962962963203.216231-4.99043e-062e-06
M6-1276.39682539682203.143613-6.283200
M7-1100.03902116402203.082147-5.41671e-060
M8-1335.68121693122203.031842-6.578700
M9-1585.19841269841202.992708-7.809100
M10-1011.21560846561202.96475-4.98223e-062e-06
M11-970.857804232804202.947974-4.78387e-064e-06
t-4.232804232804241.506629-2.80950.0061870.003094


Multiple Linear Regression - Regression Statistics
Multiple R0.88076124618955
R-squared0.77574037278937
Adjusted R-squared0.743317294156507
F-TEST (value)23.9255618373982
F-TEST (DF numerator)12
F-TEST (DF denominator)83
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation405.884762262812
Sum Squared Residuals13673622.5396826


Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolation
Forecast
Residuals
Prediction Error
11200810516.65277777781491.34722222224
291699077.5277777777891.4722222222211
387889468.15277777778-680.152777777779
484178730.27777777778-313.277777777778
582478525.27777777778-278.277777777778
681978258.77777777778-61.7777777777784
782368430.90277777778-194.902777777778
882538191.0277777777861.9722222222228
977337937.27777777778-204.277777777778
1083668507.02777777778-141.027777777778
1186268543.1527777777882.8472222222216
1288639509.77777777778-646.777777777778
131010210465.8591269841-363.85912698413
1484639026.73412698413-563.734126984127
1591149417.35912698413-303.359126984127
1685638679.48412698413-116.484126984127
1788728474.48412698413397.515873015873
1883018207.9841269841393.0158730158728
1983018380.10912698413-79.1091269841272
2082788140.23412698413137.765873015873
2177367886.48412698413-150.484126984127
2279738456.23412698413-483.234126984127
2382688492.35912698413-224.359126984127
2494769458.9841269841317.0158730158734
251110010415.0654761905684.934523809521
2689628975.94047619048-13.9404761904762
2791739366.56547619048-193.565476190476
2887388628.69047619048109.309523809524
2984598423.6904761904835.3095238095236
3080788157.19047619048-79.1904761904763
3184118329.3154761904881.6845238095237
3282918089.44047619048201.559523809523
3378107835.69047619048-25.6904761904763
3486168405.44047619048210.559523809524
3583128441.56547619048-129.565476190476
3696929408.19047619048283.809523809524
37991110364.2718253968-453.271825396828
3889158925.14682539683-10.1468253968253
3994529315.77182539683136.228174603175
4091128577.89682539683534.103174603174
4184728372.8968253968399.1031746031745
4282308106.39682539683123.603174603175
4383848278.52182539683105.478174603175
4486258038.64682539683586.353174603174
4582217784.89682539683436.103174603175
4686498354.64682539683294.353174603175
4786258390.77182539683234.228174603175
48104439357.396825396831085.60317460318
491035710313.478174603243.5218253968229
5085868874.35317460317-288.353174603175
5188929264.97817460317-372.978174603174
5283298527.10317460317-198.103174603175
5381018322.10317460317-221.103174603174
5479228055.60317460317-133.603174603174
5581208227.72817460317-107.728174603174
5678387987.85317460317-149.853174603175
5777357734.103174603170.896825396825444
5884068303.85317460317102.146825396825
5982098339.97817460317-130.978174603174
6094519306.60317460317144.396825396826
611004110262.6845238095-221.684523809526
6294118823.55952380952587.440476190476
63104059214.184523809521190.81547619048
6484678476.30952380952-9.3095238095236
6584648271.30952380952192.690476190476
6681028004.8095238095297.1904761904765
6776278176.93452380952-549.934523809524
6875137937.05952380952-424.059523809524
6975107683.30952380952-173.309523809524
7082918253.0595238095237.9404761904763
7180648289.18452380952-225.184523809524
7293839255.80952380952127.190476190477
73970610211.8908730159-505.890873015875
7485798772.76587301587-193.765873015873
7594749163.39087301587310.609126984127
7683188425.51587301587-107.515873015873
7782138220.51587301587-7.51587301587285
7880597954.01587301587104.984126984127
7991118126.14087301587984.859126984127
8077087886.26587301587-178.265873015873
8176807632.5158730158747.4841269841272
8280148202.26587301587-188.265873015873
8380078238.39087301587-231.390873015873
8487189205.01587301587-487.015873015873
85948610161.0972222222-675.097222222224
8691138721.97222222222391.027777777778
8790259112.59722222222-87.5972222222218
8884768374.72222222222101.277777777778
8979528169.72222222222-217.722222222222
9077597903.22222222222-144.222222222222
9178358075.34722222222-240.347222222222
9276007835.47222222222-235.472222222222
9376517581.7222222222269.2777777777781
9483198151.47222222222167.527777777778
9588128187.59722222222624.402777777778
9686309154.22222222222-524.222222222222


Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
160.9870200141847270.02595997163054640.0129799858152732
170.993215475638390.01356904872322190.00678452436161094
180.987133351840870.02573329631826190.0128666481591310
190.9767902721992470.04641945560150530.0232097278007527
200.9594030096638490.08119398067230250.0405969903361513
210.9354202044054380.1291595911891240.0645797955945622
220.9201473653960580.1597052692078840.079852634603942
230.8884825892708370.2230348214583260.111517410729163
240.90096556525640.1980688694872010.0990344347436005
250.90582650657650.1883469868470010.0941734934235006
260.8759877516938590.2480244966122830.124012248306141
270.8605860320196940.2788279359606110.139413967980306
280.8228777827474510.3542444345050980.177122217252549
290.7674497659790280.4651004680419430.232550234020972
300.712405518453040.575188963093920.28759448154696
310.6500217084276140.6999565831447720.349978291572386
320.5786926518213560.8426146963572890.421307348178644
330.512637385115890.974725229768220.48736261488411
340.4848099847516640.9696199695033280.515190015248336
350.4323147136910890.8646294273821780.567685286308911
360.4170191033670960.8340382067341910.582980896632905
370.6568587337257690.6862825325484620.343141266274231
380.603283016180020.793433967639960.39671698381998
390.5892885097674150.821422980465170.410711490232585
400.5977951473916310.8044097052167380.402204852608369
410.5301899595042820.9396200809914360.469810040495718
420.4608798269553280.9217596539106550.539120173044672
430.3941804757562000.7883609515124010.6058195242438
440.4108588572669930.8217177145339860.589141142733007
450.3897490729268090.7794981458536180.610250927073191
460.3400589923204770.6801179846409540.659941007679523
470.2847275397655350.5694550795310690.715272460234465
480.6277138923070950.7445722153858090.372286107692905
490.6649382710412860.6701234579174280.335061728958714
500.6756024225583810.6487951548832380.324397577441619
510.7619573373239320.4760853253521360.238042662676068
520.7414211116603410.5171577766793180.258578888339659
530.722945628407210.554108743185580.27705437159279
540.6844361158012450.631127768397510.315563884198755
550.6420586901257120.7158826197485760.357941309874288
560.6094835762807450.781032847438510.390516423719255
570.5436813553372610.9126372893254790.456318644662739
580.4730491065436280.9460982130872560.526950893456372
590.4315820804518670.8631641609037340.568417919548133
600.3842567633777330.7685135267554660.615743236622267
610.3750225192685600.7500450385371210.62497748073144
620.3971446601651530.7942893203303070.602855339834847
630.7663055738847790.4673888522304430.233694426115221
640.7052513275415830.5894973449168340.294748672458417
650.6657681928451190.6684636143097620.334231807154881
660.6004336950298140.7991326099403720.399566304970186
670.7542783813596070.4914432372807860.245721618640393
680.7311383347314160.5377233305371690.268861665268584
690.681162108107320.637675783785360.31883789189268
700.5979369681615660.8041260636768690.402063031838434
710.6017243044882230.7965513910235530.398275695511777
720.6045650795246540.7908698409506920.395434920475346
730.553495076281210.893009847437580.44650492371879
740.5612801550858870.8774396898282260.438719844914113
750.4929241626094830.9858483252189660.507075837390517
760.4019148994646480.8038297989292960.598085100535352
770.2982534340515730.5965068681031470.701746565948427
780.2083212614708870.4166425229417730.791678738529113
790.778663567912520.442672864174960.22133643208748
800.6886517893577940.6226964212844120.311348210642206


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


http://www.freestatistics.org/blog/date/2010/Nov/30/t12911375088dpag4hl64t9isf/11n831291137544.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/30/t12911375088dpag4hl64t9isf/11n831291137544.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Nov/30/t12911375088dpag4hl64t9isf/21n831291137544.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/30/t12911375088dpag4hl64t9isf/21n831291137544.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Nov/30/t12911375088dpag4hl64t9isf/3cwpo1291137544.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/30/t12911375088dpag4hl64t9isf/3cwpo1291137544.ps (open in new window)


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


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


http://www.freestatistics.org/blog/date/2010/Nov/30/t12911375088dpag4hl64t9isf/65no91291137544.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/30/t12911375088dpag4hl64t9isf/65no91291137544.ps (open in new window)


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


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


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