Home » date » 2009 » Nov » 19 »

Workshop 7

*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: Thu, 19 Nov 2009 08:32:51 -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/Nov/19/t1258644870gllazrrm9qt3ktc.htm/, Retrieved Thu, 19 Nov 2009 16:34:42 +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/Nov/19/t1258644870gllazrrm9qt3ktc.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:
Workshop 7
 
Dataseries X:
» Textbox « » Textfile « » CSV «
0.6348 1.5291 0.634 1.5358 0.62915 1.5355 0.62168 1.5287 0.61328 1.5334 0.6089 1.5225 0.60857 1.5135 0.62672 1.5144 0.62291 1.4913 0.62393 1.4793 0.61838 1.4663 0.62012 1.4749 0.61659 1.4745 0.6116 1.4775 0.61573 1.4678 0.61407 1.4658 0.62823 1.4572 0.64405 1.4721 0.6387 1.4624 0.63633 1.4636 0.63059 1.4649 0.62994 1.465 0.63709 1.4673 0.64217 1.4679 0.65711 1.4621 0.66977 1.4674 0.68255 1.4695 0.68902 1.4964 0.71322 1.5155 0.70224 1.5411 0.70045 1.5476 0.69919 1.54 0.69693 1.5474 0.69763 1.5485 0.69278 1.559 0.70196 1.5544 0.69215 1.5657 0.6769 1.5734 0.67124 1.567 0.66532 1.5547 0.67157 1.54 0.66428 1.5192 0.66576 1.527 0.66942 1.5387 0.6813 1.5431 0.69144 1.5426 0.69862 1.5216 0.695 1.5364 0.69867 1.5469 0.68968 1.5501 0.69233 1.5494 0.68293 1.5475 0.68399 1.5448 0.66895 1.5391 0.68756 1.5578 0.68527 1.5528 0.6776 1.5496 0.68137 1.549 0.67933 1.5449 0.67922 1.5479
 
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 time10 seconds
R Server'Gwilym Jenkins' @ 72.249.127.135


Multiple Linear Regression - Estimated Regression Equation
Britse_pond[t] = -0.191028651774354 + 0.561232545674784Zwitserse_frank[t] + e[t]


Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STAT
H0: parameter = 0
2-tail p-value1-tail p-value
(Intercept)-0.1910286517743540.134703-1.41820.1614970.080749
Zwitserse_frank0.5612325456747840.0887036.327100


Multiple Linear Regression - Regression Statistics
Multiple R0.63902661439162
R-squared0.408355013900816
Adjusted R-squared0.398154238278416
F-TEST (value)40.0317612127567
F-TEST (DF numerator)1
F-TEST (DF denominator)58
p-value3.91446610681356e-08
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation0.0246729447217217
Sum Squared Residuals0.0353077436719859


Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolation
Forecast
Residuals
Prediction Error
10.63480.667152033816959-0.0323520338169584
20.6340.670912291872979-0.0369122918729788
30.629150.670743922109276-0.0415939221092765
40.621680.666927540798688-0.0452475407986878
50.613280.669565333763359-0.0562853337633594
60.60890.663447899015504-0.0545478990155042
70.608570.658396806104431-0.0498268061044311
80.626720.658901915395538-0.0321819153955384
90.622910.645937443590451-0.0230274435904510
100.623930.639202653042354-0.0152726530423536
110.618380.631906629948581-0.0135266299485813
120.620120.636733229841385-0.0166132298413846
130.616590.636508736823115-0.0199187368231146
140.61160.638192434460139-0.0265924344601389
150.615730.632748478767094-0.0170184787670936
160.614070.631626013675744-0.0175560136757440
170.628230.6267994137829410.00143058621705908
180.644050.6351617787134950.0088882212865049
190.63870.629717823020450.00898217697955036
200.636330.630391302075260.00593869792474048
210.630590.631120904384637-0.000530904384636748
220.629940.631177027639204-0.00123702763920415
230.637090.6324678624942560.00462213750574385
240.642170.6328046020216610.009365397978339
250.657110.6295494532567470.0275605467432527
260.669770.6325239857488240.0372460142511763
270.682550.6337025740947410.0488474259052593
280.689020.6487997295733920.0402202704266076
290.713220.6595192711957810.0537007288042192
300.702240.6738868243650550.0283531756349448
310.700450.6775348359119410.0229151640880587
320.699190.6732694685648130.0259205314351870
330.696930.6774225894028060.0195074105971937
340.697630.6780399452030490.0195900547969514
350.692780.6839328869326340.00884711306736617
360.701960.681351217222530.0206087827774702
370.692150.6876931449886550.00445685501134513
380.67690.69201463559035-0.0151146355903507
390.671240.688422747298032-0.0171827472980321
400.665320.681519586986232-0.0161995869862322
410.671570.673269468564813-0.00169946856481294
420.664280.6615958316147780.00268416838522250
430.665760.665973445471041-0.000213445471040670
440.669420.672539866255436-0.00311986625543566
450.68130.6750092894564050.00629071054359531
460.691440.6747286731835670.0167113268164327
470.698620.6629427897243970.0356772102756031
480.6950.6712490314003840.0237509685996163
490.698670.6771419731299690.0215280268700311
500.689680.6789379172761280.0107420827238717
510.692330.6785450544941560.0137849455058441
520.682930.6774787126573740.00545128734262618
530.683990.6759633847840520.00802661521594813
540.668950.672764359273706-0.00381435927370552
550.687560.6832594078778240.00430059212217584
560.685270.680453245149450.00481675485054992
570.67760.678657301003291-0.00105730100329091
580.681370.6783205614758860.00304943852411409
590.679330.676019508038620.00331049196138066
600.679220.6777032056756440.00151679432435630


Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
50.1260433549697630.2520867099395250.873956645030237
60.08614297665504550.1722859533100910.913857023344955
70.05041292560642360.1008258512128470.949587074393576
80.07033724552353650.1406744910470730.929662754476464
90.06297517668720910.1259503533744180.93702482331279
100.03965522909231630.07931045818463260.960344770907684
110.0211271019554910.0422542039109820.978872898044509
120.01156114305898390.02312228611796780.988438856941016
130.007019169880133950.01403833976026790.992980830119866
140.00674395113014250.0134879022602850.993256048869858
150.004634296104558360.009268592209116710.995365703895442
160.003834436729201130.007668873458402260.996165563270799
170.004852821548072050.00970564309614410.995147178451928
180.0276916649990130.0553833299980260.972308335000987
190.03854258386478240.07708516772956470.961457416135218
200.04075619171568130.08151238343136260.959243808284319
210.04043175246953240.08086350493906480.959568247530468
220.04887068732478550.0977413746495710.951129312675214
230.07653512529772670.1530702505954530.923464874702273
240.1551669667432710.3103339334865420.844833033256729
250.385275979736670.770551959473340.61472402026333
260.737827715099520.5243445698009610.262172284900481
270.9411972987912980.1176054024174040.0588027012087018
280.9915423438103510.01691531237929740.0084576561896487
290.9999272633627450.0001454732745094597.27366372547294e-05
300.9999902972921581.94054156843845e-059.70270784219224e-06
310.9999963288528367.34229432767475e-063.67114716383737e-06
320.9999980515301863.89693962802466e-061.94846981401233e-06
330.9999981313181833.73736363461377e-061.86868181730689e-06
340.9999981545503883.69089922397126e-061.84544961198563e-06
350.9999964750539947.0498920114714e-063.5249460057357e-06
360.9999978025840464.39483190830195e-062.19741595415098e-06
370.9999957116353798.57672924248656e-064.28836462124328e-06
380.9999891507128262.16985743481075e-051.08492871740538e-05
390.9999836475848363.27048303285935e-051.63524151642967e-05
400.9999892504699282.14990601447246e-051.07495300723623e-05
410.9999792903996334.14192007349759e-052.07096003674879e-05
420.9999723984134495.52031731026553e-052.76015865513276e-05
430.9999848260004623.03479990752284e-051.51739995376142e-05
440.9999916990232511.66019534971663e-058.30097674858314e-06
450.9999765974935634.68050128736922e-052.34025064368461e-05
460.9999363657774820.0001272684450368506.36342225184251e-05
470.9999178405128230.0001643189743545688.21594871772838e-05
480.999960930133997.81397320197246e-053.90698660098623e-05
490.9999955304309188.9391381636776e-064.4695690818388e-06
500.9999871329980272.57340039459862e-051.28670019729931e-05
510.9999948335334641.03329330728023e-055.16646653640115e-06
520.9999700569338535.98861322940471e-052.99430661470236e-05
530.999982844404913.43111901788382e-051.71555950894191e-05
540.999894569246760.0002108615064808530.000105430753240426
550.9986859429053440.002628114189311980.00131405709465599


Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level300.588235294117647NOK
5% type I error level350.686274509803922NOK
10% type I error level410.80392156862745NOK
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2009/Nov/19/t1258644870gllazrrm9qt3ktc/1088rz1258644760.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/19/t1258644870gllazrrm9qt3ktc/1088rz1258644760.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Nov/19/t1258644870gllazrrm9qt3ktc/1vovz1258644760.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/19/t1258644870gllazrrm9qt3ktc/1vovz1258644760.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Nov/19/t1258644870gllazrrm9qt3ktc/2oifp1258644760.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/19/t1258644870gllazrrm9qt3ktc/2oifp1258644760.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Nov/19/t1258644870gllazrrm9qt3ktc/3xd641258644760.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/19/t1258644870gllazrrm9qt3ktc/3xd641258644760.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Nov/19/t1258644870gllazrrm9qt3ktc/490af1258644760.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/19/t1258644870gllazrrm9qt3ktc/490af1258644760.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Nov/19/t1258644870gllazrrm9qt3ktc/5erem1258644760.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/19/t1258644870gllazrrm9qt3ktc/5erem1258644760.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Nov/19/t1258644870gllazrrm9qt3ktc/63pd01258644760.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/19/t1258644870gllazrrm9qt3ktc/63pd01258644760.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Nov/19/t1258644870gllazrrm9qt3ktc/724e01258644760.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/19/t1258644870gllazrrm9qt3ktc/724e01258644760.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Nov/19/t1258644870gllazrrm9qt3ktc/8ftnx1258644760.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/19/t1258644870gllazrrm9qt3ktc/8ftnx1258644760.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Nov/19/t1258644870gllazrrm9qt3ktc/9lblo1258644760.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/19/t1258644870gllazrrm9qt3ktc/9lblo1258644760.ps (open in new window)


 
Parameters (Session):
par1 = 1 ; par2 = Do not include Seasonal Dummies ; par3 = No Linear Trend ;
 
Parameters (R input):
par1 = 1 ; par2 = Do not include Seasonal 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