Home » date » 2009 » Dec » 15 »

*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, 15 Dec 2009 07:51:18 -0700
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2009/Dec/15/t12608887833q7xrzivhhuvzfe.htm/, Retrieved Tue, 15 Dec 2009 15:53:15 +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/2009/Dec/15/t12608887833q7xrzivhhuvzfe.htm/},
    year = {2009},
}
@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 = {2009},
    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 «
2350.44 27 2440.25 29 2408.64 27 2472.81 26 2407.6 24 2454.62 30 2448.05 26 2497.84 28 2645.64 28 2756.76 24 2849.27 23 2921.44 24 2981.85 24 3080.58 27 3106.22 28 3119.31 25 3061.26 19 3097.31 19 3161.69 19 3257.16 20 3277.01 16 3295.32 22 3363.99 21 3494.17 25 3667.03 29 3813.06 28 3917.96 25 3895.51 26 3801.06 24 3570.12 28 3701.61 28 3862.27 28 3970.1 28 4138.52 32 4199.75 31 4290.89 22 4443.91 29 4502.64 31 4356.98 29 4591.27 32 4696.96 32 4621.4 31 4562.84 29 4202.52 28 4296.49 28 4435.23 29 4105.18 22 4116.68 26 3844.49 24 3720.98 27 3674.4 27 3857.62 23 3801.06 21 3504.37 19 3032.6 17 3047.03 19 2962.34 21 2197.82 13 2014.45 8 1862.83 5 1905.41 10 1810.99 6 1670.07 6 1864.44 8 2052.02 11 2029.6 12 2070.83 13 2293.41 19 2443.27 19 2513.17 18 2466.92 20
 
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 time4 seconds
R Server'Gwilym Jenkins' @ 72.249.127.135


Multiple Linear Regression - Estimated Regression Equation
Y[t] = -30.9802710985411 + 115.500191970367X[t] + 17.2956251455641t + e[t]


Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STAT
H0: parameter = 0
2-tail p-value1-tail p-value
(Intercept)-30.9802710985411338.976556-0.09140.9274490.463724
X115.50019197036710.74103410.753200
t17.29562514556413.5857234.82358e-064e-06


Multiple Linear Regression - Regression Statistics
Multiple R0.795247840667979
R-squared0.632419128087083
Adjusted R-squared0.621607925971997
F-TEST (value)58.4966520239793
F-TEST (DF numerator)2
F-TEST (DF denominator)68
p-value1.66533453693773e-15
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation521.185047863245
Sum Squared Residuals18471102.0799025


Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolation
Forecast
Residuals
Prediction Error
12350.443104.82053724692-754.380537246918
22440.253353.11654633322-912.866546333219
32408.643139.41178753805-730.77178753805
42472.813041.20722071325-568.397220713247
52407.62827.50246191808-419.902461918078
62454.623537.79923888584-1083.17923888584
72448.053093.09409614994-645.04409614994
82497.843341.39010523624-843.550105236237
92645.643358.6857303818-713.045730381801
102756.762913.9805876459-157.220587645898
112849.272815.7760208211033.493979178904
122921.442948.57183793703-27.1318379370266
132981.852965.8674630825915.9825369174092
143080.583329.66366413925-249.083664139255
153106.223462.45948125519-356.239481255186
163119.313133.25453048965-13.9445304896497
173061.262457.54900381301603.710996186987
183097.312474.84462895858622.465371041422
193161.692492.14025410414669.549745895858
203257.162624.93607122007632.223928779927
213277.012180.230928484171096.77907151583
223295.322890.52770545193404.792294548066
233363.992792.32313862713571.666861372868
243494.173271.61953165416222.550468345838
253667.033750.91592468119-83.8859246811926
263813.063652.71135785639160.348642143610
273917.963323.50640709085594.453592909146
283895.513456.30222420679439.207775793215
293801.063242.59746541162558.462534588384
303570.123721.89385843865-151.773858438647
313701.613739.18948358421-37.5794835842104
323862.273756.48510872977105.784891270225
333970.13773.78073387534196.319266124661
344138.524253.07712690237-114.557126902369
354199.754154.8725600775744.8774399224332
364290.893132.666457489831158.22354251017
374443.913958.46342642796485.446573572038
384502.644206.75943551426295.880564485741
394356.983993.05467671909363.92532328091
404591.274356.85087777575234.419122224247
414696.964374.14650292132322.813497078682
424621.44275.94193609651345.458063903484
434562.844062.23717730135500.602822698654
444202.523964.03261047654238.487389523457
454296.493981.32823562211315.161764377892
464435.234114.12405273804321.105947261961
474105.183322.91833409104782.261665908965
484116.683802.21472711807314.465272881934
493844.493588.5099683229255.980031677102
503720.983952.30616937956-231.326169379561
513674.43969.60179452513-295.201794525125
523857.623524.89665178922332.723348210777
533801.063311.19189299405489.868107005946
543504.373097.48713419888406.882865801115
553032.62883.78237540372148.817624596285
563047.033132.07838449001-85.0483844900124
572962.343380.37439357631-418.03439357631
582197.822473.66848295894-275.848482958941
592014.451913.46314825267100.986851747328
601862.831584.25819748714278.571802512864
611905.412179.05478248453-273.644782484533
621810.991734.3496397486376.6403602513692
631670.071751.64526489419-81.575264894195
641864.441999.94127398049-135.501273980492
652052.022363.73747503716-311.717475037156
662029.62496.53329215309-466.933292153087
672070.832629.32910926902-558.499109269018
682293.413339.62588623678-1046.21588623678
692443.273356.92151138235-913.651511382345
702513.173258.71694455754-745.546944557543
712466.923507.01295364384-1040.09295364384


Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
60.001026681444198740.002053362888397480.998973318555801
79.12010137824352e-050.0001824020275648700.999908798986218
89.19373795798606e-061.83874759159721e-050.999990806262042
92.98002280332412e-055.96004560664823e-050.999970199771967
107.1261832432127e-050.0001425236648642540.999928738167568
114.57827162826245e-059.15654325652489e-050.999954217283717
122.67812251226739e-055.35624502453479e-050.999973218774877
131.24133821541939e-052.48267643083878e-050.999987586617846
141.47910185554862e-052.95820371109723e-050.999985208981444
151.07837206629824e-052.15674413259648e-050.999989216279337
164.60184083977071e-069.20368167954142e-060.99999539815916
171.92709806946177e-063.85419613892355e-060.99999807290193
186.68576701161044e-071.33715340232209e-060.9999993314233
191.87044193950222e-073.74088387900444e-070.999999812955806
204.60602315516615e-089.2120463103323e-080.999999953939768
211.18953009013329e-082.37906018026658e-080.9999999881047
224.8473220705328e-099.6946441410656e-090.999999995152678
231.29785872319355e-092.59571744638709e-090.99999999870214
244.02779256391995e-108.0555851278399e-100.99999999959722
253.69342650349873e-107.38685300699745e-100.999999999630657
265.70709356733038e-101.14141871346608e-090.99999999942929
271.28448963018446e-092.56897926036891e-090.99999999871551
285.03902086140383e-101.00780417228077e-090.999999999496098
291.69088989558892e-103.38177979117785e-100.999999999830911
301.2353993465258e-072.4707986930516e-070.999999876460065
311.41738596497632e-062.83477192995265e-060.999998582614035
323.53074540526981e-067.06149081053963e-060.999996469254595
336.78814541456882e-061.35762908291376e-050.999993211854585
346.97300541571676e-050.0001394601083143350.999930269945843
350.0006599622381232550.001319924476246510.999340037761877
360.0006267828984894480.001253565796978900.99937321710151
370.0009697396591234360.001939479318246870.999030260340876
380.001630331960530220.003260663921060440.99836966803947
390.001859189816777700.003718379633555410.998140810183222
400.002354826045708540.004709652091417070.997645173954292
410.002211014307692770.004422028615385540.997788985692307
420.001390951495243000.002781902990486010.998609048504757
430.0008810155517121030.001762031103424210.999118984448288
440.01449042029615320.02898084059230640.985509579703847
450.03492496672345790.06984993344691570.965075033276542
460.04013786993164440.08027573986328890.959862130068356
470.1820765853654410.3641531707308810.81792341463456
480.3317867420443830.6635734840887660.668213257955617
490.5940819794228880.8118360411542240.405918020577112
500.8757129563746290.2485740872507420.124287043625371
510.9803696040379130.03926079192417360.0196303959620868
520.9822729585499660.03545408290006830.0177270414500342
530.9953530543180790.009293891363841910.00464694568192096
540.9997401047878780.0005197904242430050.000259895212121502
550.9999417530082880.0001164939834239895.82469917119945e-05
560.9999873903466772.52193066461695e-051.26096533230848e-05
570.9999958775546448.2448907114044e-064.1224453557022e-06
580.9999908880025671.82239948653831e-059.11199743269157e-06
590.999985253568012.94928639815058e-051.47464319907529e-05
600.999990026578791.99468424198326e-059.9734212099163e-06
610.999959659275868.06814482811266e-054.03407241405633e-05
620.999914645148750.0001707097024981718.53548512490857e-05
630.999657464339130.0006850713217387110.000342535660869356
640.9978629568001950.004274086399610120.00213704319980506
650.992950942972140.01409811405572010.00704905702786004


Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level500.833333333333333NOK
5% type I error level540.9NOK
10% type I error level560.933333333333333NOK
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2009/Dec/15/t12608887833q7xrzivhhuvzfe/10c9wg1260888673.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/15/t12608887833q7xrzivhhuvzfe/10c9wg1260888673.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/15/t12608887833q7xrzivhhuvzfe/11oxb1260888673.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/15/t12608887833q7xrzivhhuvzfe/11oxb1260888673.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/15/t12608887833q7xrzivhhuvzfe/2lw3n1260888673.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/15/t12608887833q7xrzivhhuvzfe/2lw3n1260888673.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/15/t12608887833q7xrzivhhuvzfe/3f39b1260888673.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/15/t12608887833q7xrzivhhuvzfe/3f39b1260888673.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/15/t12608887833q7xrzivhhuvzfe/4y25f1260888673.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/15/t12608887833q7xrzivhhuvzfe/4y25f1260888673.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/15/t12608887833q7xrzivhhuvzfe/53x7n1260888673.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/15/t12608887833q7xrzivhhuvzfe/53x7n1260888673.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/15/t12608887833q7xrzivhhuvzfe/6grpk1260888673.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/15/t12608887833q7xrzivhhuvzfe/6grpk1260888673.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/15/t12608887833q7xrzivhhuvzfe/7ixce1260888673.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/15/t12608887833q7xrzivhhuvzfe/7ixce1260888673.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/15/t12608887833q7xrzivhhuvzfe/8fze11260888673.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/15/t12608887833q7xrzivhhuvzfe/8fze11260888673.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/15/t12608887833q7xrzivhhuvzfe/95fvl1260888673.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/15/t12608887833q7xrzivhhuvzfe/95fvl1260888673.ps (open in new window)


 
Parameters (Session):
 
Parameters (R input):
par1 = 1 ; 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