Home » date » 2010 » Dec » 03 »

*The author of this computation has been verified*
R Software Module: /rwasp_multipleregression.wasp (opens new window with default values)
Title produced by software: Multiple Regression
Date of computation: Fri, 03 Dec 2010 22:27:33 +0000
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2010/Dec/03/t1291415258nv9iwoscvfxeva0.htm/, Retrieved Fri, 03 Dec 2010 23:27:38 +0100
 
BibTeX entries for LaTeX users:
@Manual{KEY,
    author = {{YOUR NAME}},
    publisher = {Office for Research Development and Education},
    title = {Statistical Computations at FreeStatistics.org, URL http://www.freestatistics.org/blog/date/2010/Dec/03/t1291415258nv9iwoscvfxeva0.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 «
12 1221.53 2617.2 10168.52 6957.61 23448.78 11 1180.55 2506.13 9937.04 6688.49 23007.99 10 1183.26 2679.07 9202.45 6601.37 23096.32 9 1141.2 2589.73 9369.35 6229.02 22358.17 8 1049.33 2457.46 8824.06 5925.22 20536.49 7 1101.6 2517.3 9537.3 6147.97 21029.81 6 1030.71 2386.53 9382.64 5965.52 20128.99 5 1089.41 2453.37 9768.7 5964.33 19765.19 4 1186.69 2529.66 11057.4 6135.7 21108.59 3 1169.43 2475.14 11089.94 6153.55 21239.35 2 1104.49 2525.93 10126.03 5598.46 20608.7 1 1073.87 2480.93 10198.04 5608.79 20121.99 12 1115.1 2229.85 10546.44 5957.43 21872.5 11 1095.63 2169.14 9345.55 5625.95 21821.5 10 1036.19 2030.98 10034.74 5414.96 21752.87 9 1057.08 2071.37 10133.23 5675.16 20955.25 8 1020.62 1953.35 10492.53 5458.04 19724.19 7 987.48 1748.74 10356.83 5332.14 20573.33 6 919.32 1696.58 9958.44 4808.64 18378.73 5 919.14 1900.09 9522.5 4940.82 18171 4 872.81 1908.64 8828.26 4769.45 15520.99 3 797.87 1881.46 8109.53 4084.76 13576.02 2 735.09 2100.18 7568.42 3843.74 12811.57 1 825.88 2672.2 79 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 time5 seconds
R Server'Sir Ronald Aylmer Fisher' @ 193.190.124.24
R Framework
error message
Warning: there are blank lines in the 'Data X' field.
Please, use NA for missing data - blank lines are simply
 deleted and are NOT treated as missing values.


Multiple Linear Regression - Estimated Regression Equation
Nikkei225[t] = + 1.76136822710579 -0.960255268334286month[t] -0.155257413606003`S&P`[t] -0.195263524204028Bel20[t] -0.186413495406639DAX[t] + 0.477200864515611HangSeng[t] + 164.108594105633t + e[t]


Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STAT
H0: parameter = 0
2-tail p-value1-tail p-value
(Intercept)1.761368227105791398.8614040.00130.9989990.4995
month-0.9602552683342860.117957-8.140700
`S&P`-0.1552574136060030.131689-1.1790.2427070.121353
Bel20-0.1952635242040280.141245-1.38240.1715680.085784
DAX-0.1864134954066390.128392-1.45190.1513370.075668
HangSeng0.4772008645156110.0532388.963500
t164.10859410563314.16248211.587600


Multiple Linear Regression - Regression Statistics
Multiple R0.893053076885623
R-squared0.797543798134879
Adjusted R-squared0.77885553334733
F-TEST (value)42.6761824707350
F-TEST (DF numerator)6
F-TEST (DF denominator)65
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation1906.20872451305
Sum Squared Residuals236186060.591628


Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolation
Forecast
Residuals
Prediction Error
110168.529346.437303184822.082696816002
29937.049379.37875181487557.66124818513
39202.459568.64947580461-366.19947580461
49369.359474.8585421197-105.508542119701
58824.068867.34354546186-43.2835454618575
69537.39206.50164491928330.798355080720
79382.649012.25036286792370.389637132077
89768.78981.77034565418786.929654345822
911057.49725.965060253471331.43493974653
1011089.949963.430724076931126.50927592307
1110126.039931.19409745465194.835902545351
1210198.049875.61970324647322.420296753529
1310546.4410842.1446761993-295.704676199250
149345.5511059.5459373377-1713.99593733765
1510034.7411267.4019839445-1232.66198394453
1610133.2310992.2110671459-858.981067145916
1710492.5310638.9968047986-146.466804798617
1810356.8311277.8435557134-921.013555713358
199958.4410514.0021434006-555.562143400607
209522.510515.5917878896-993.091787889585
218828.269453.5428278368-625.282827836796
228109.538835.0480210873-725.518021087306
237568.428647.2890726575-1078.86907265750
247994.058817.04649278948-822.996492789479
258859.569309.40218550052-449.842185500521
268512.279291.2144136543-778.944413654305
278576.989390.08391176119-813.103911761187
2811259.8611184.930298810974.9297011891261
2913072.8712736.5552891172336.314710882844
3013376.8113634.6638232082-257.853823208185
3113481.3813501.6450861130-20.2650861129508
3214338.5414688.4886219005-349.948621900509
3313849.9915387.5579554255-1537.56795542551
3412525.5414245.8807949503-1720.34079495028
3513603.0215022.8775103913-1419.85751039126
3613592.4714765.9497633315-1173.47976333153
3715307.7816753.0874167666-1445.30741676663
3815680.6717342.8244177144-1662.15441771440
3916737.6318712.5231101385-1974.89311013845
4016785.6916890.0214698121-104.331469812120
4116569.0915613.9838828278955.10611717218
4217248.8915438.59630416931810.29369583072
4318138.3614875.90183693133262.45816306867
4417875.7514491.66550910553384.08449089449
4517400.4114610.85978418712789.55021581294
4617287.6514678.42048740362609.22951259642
4717604.1214811.14821904892792.97178095107
4817383.4215189.0606389392194.35936106100
4917225.8315346.08327598371879.7467240163
5016274.3315109.80659672311164.52340327686
5116399.3915000.42277203361398.96722796641
5216127.5814853.88616943591273.69383056407
5316140.7614933.02308830691207.73691169314
5415456.8114934.3093844185522.500615581504
5515505.1814778.5757053962726.604294603792
5615467.3314764.8337086467702.496291353258
5716906.2315286.05139109211620.17860890790
5817059.6615082.66442639751976.99557360249
5916205.4315361.8773809537843.552619046337
6016649.8215458.25552179151191.56447820850
6116111.4315268.4031780952843.026821904754
6214872.1515501.5240272523-629.374027252293
6313606.515482.1238707915-1875.6238707915
6413574.316131.6184339976-2557.31843399759
6512413.616089.7957259637-3676.19572596370
6611899.616214.5688334325-4314.96883343248
6711584.0116121.532501987-4537.52250198701
684460.636186.34839206256-1725.71839206256
6913908.978250.842435218445658.12756478156
7022347.91702144229-2345.91702144229
711181.275179.37965986182-3998.10965986182
722617.2-174.5001601512622791.70016015126


Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
100.001398491662631790.002796983325263580.998601508337368
110.0001276666234034600.0002553332468069190.999872333376597
121.15113724470530e-052.30227448941059e-050.999988488627553
138.1252197446408e-071.62504394892816e-060.999999187478026
141.2562674907016e-052.5125349814032e-050.999987437325093
152.76349928548576e-065.52699857097151e-060.999997236500714
166.6470298007684e-071.32940596015368e-060.99999933529702
178.94268684915812e-081.78853736983162e-070.999999910573132
181.94912985266597e-083.89825970533194e-080.999999980508701
192.50249375321250e-095.00498750642499e-090.999999997497506
204.03657889385012e-108.07315778770024e-100.999999999596342
211.25937870742972e-102.51875741485945e-100.999999999874062
221.59839856798861e-113.19679713597723e-110.999999999984016
239.41731645539445e-121.88346329107889e-110.999999999990583
241.99098694482422e-123.98197388964845e-120.99999999999801
259.92005524288206e-121.98401104857641e-110.99999999999008
261.91818227289869e-123.83636454579739e-120.999999999998082
273.50124867618276e-127.00249735236552e-120.999999999996499
288.66688000622474e-131.73337600124495e-120.999999999999133
291.93782918965663e-133.87565837931325e-130.999999999999806
305.03343169456475e-141.00668633891295e-130.99999999999995
311.69020359059318e-143.38040718118636e-140.999999999999983
325.95224423951687e-141.19044884790337e-130.99999999999994
331.67748413412453e-133.35496826824906e-130.999999999999832
342.20352140219590e-114.40704280439181e-110.999999999977965
352.69136507523061e-105.38273015046121e-100.999999999730864
361.28985546040823e-062.57971092081647e-060.99999871014454
373.04618267732667e-066.09236535465333e-060.999996953817323
383.86589261617849e-067.73178523235698e-060.999996134107384
394.32381048732104e-068.64762097464208e-060.999995676189513
405.33674959548963e-061.06734991909793e-050.999994663250405
419.4176359374454e-061.88352718748908e-050.999990582364063
421.76451294800549e-053.52902589601097e-050.99998235487052
438.99725269701675e-061.79945053940335e-050.999991002747303
444.67870480103442e-069.35740960206885e-060.999995321295199
451.89409299079649e-063.78818598159298e-060.99999810590701
461.19104557909618e-062.38209115819236e-060.99999880895442
471.18879997784957e-062.37759995569913e-060.999998811200022
484.92673790875094e-079.85347581750187e-070.99999950732621
492.06842773584476e-074.13685547168953e-070.999999793157226
501.96864125208238e-073.93728250416475e-070.999999803135875
511.30065694753860e-072.60131389507720e-070.999999869934305
521.43917230846644e-072.87834461693289e-070.99999985608277
531.34407330355721e-072.68814660711442e-070.99999986559267
541.00693531302901e-062.01387062605802e-060.999998993064687
556.40937212841204e-050.0001281874425682410.999935906278716
560.2102964833338920.4205929666677830.789703516666108
570.2180341656464000.4360683312927990.7819658343536
580.1679831448012150.335966289602430.832016855198785
590.2235373720562380.4470747441124760.776462627943762
600.2770576808507260.5541153617014520.722942319149274
610.3526935098728830.7053870197457650.647306490127117
620.3802986703327480.7605973406654960.619701329667252


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


http://www.freestatistics.org/blog/date/2010/Dec/03/t1291415258nv9iwoscvfxeva0/1qac61291415244.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/03/t1291415258nv9iwoscvfxeva0/1qac61291415244.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/03/t1291415258nv9iwoscvfxeva0/2qac61291415244.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/03/t1291415258nv9iwoscvfxeva0/2qac61291415244.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/03/t1291415258nv9iwoscvfxeva0/31jc81291415244.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/03/t1291415258nv9iwoscvfxeva0/31jc81291415244.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/03/t1291415258nv9iwoscvfxeva0/41jc81291415244.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/03/t1291415258nv9iwoscvfxeva0/41jc81291415244.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/03/t1291415258nv9iwoscvfxeva0/51jc81291415244.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/03/t1291415258nv9iwoscvfxeva0/51jc81291415244.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/03/t1291415258nv9iwoscvfxeva0/6uttb1291415244.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/03/t1291415258nv9iwoscvfxeva0/6uttb1291415244.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/03/t1291415258nv9iwoscvfxeva0/7m2ae1291415244.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/03/t1291415258nv9iwoscvfxeva0/7m2ae1291415244.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/03/t1291415258nv9iwoscvfxeva0/8m2ae1291415244.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/03/t1291415258nv9iwoscvfxeva0/8m2ae1291415244.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/03/t1291415258nv9iwoscvfxeva0/9m2ae1291415244.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/03/t1291415258nv9iwoscvfxeva0/9m2ae1291415244.ps (open in new window)


 
Parameters (Session):
 
Parameters (R input):
par1 = 4 ; par2 = Do not include Seasonal 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