Home » date » 2008 » Dec » 20 »

transport

*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: Sat, 20 Dec 2008 01:42:11 -0700
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2008/Dec/20/t1229762619kfbtpe3gq0ur4h6.htm/, Retrieved Sat, 20 Dec 2008 09:43:48 +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/2008/Dec/20/t1229762619kfbtpe3gq0ur4h6.htm/},
    year = {2008},
}
@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 = {2008},
    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 «
124,9 11554,5 132 13182,1 151,4 14800,1 108,9 12150,7 121,3 14478,2 123,4 13253,9 90,3 12036,8 79,3 12653,2 117,2 14035,4 116,9 14571,4 120,8 15400,9 96,1 14283,2 100,8 14485,3 105,3 14196,3 116,1 15559,1 112,8 13767,4 114,5 14634 117,2 14381,1 77,1 12509,9 80,1 12122,3 120,3 13122,3 133,4 13908,7 109,4 13456,5 93,2 12441,6 91,2 12953 99,2 13057,2 108,2 14350,1 101,5 13830,2 106,9 13755,5 104,4 13574,4 77,9 12802,6 60 11737,3 99,5 13850,2 95 15081,8 105,6 13653,3 102,5 14019,1 93,3 13962 97,3 13768,7 127 14747,1 111,7 13858,1 96,4 13188 133 13693,1 72,2 12970 95,8 11392,8 124,1 13985,2 127,6 14994,7 110,7 13584,7 104,6 14257,8 112,7 13553,4 115,3 14007,3 139,4 16535,8 119 14721,4 97,4 13664,6 154 16405,9 81,5 13829,4 88,8 13735,6 127,7 15870,5 105,1 15962,4 114,9 15744,1 106,4 16083,7 104,5 14863,9 121,6 15533,1 141,4 17473,1 99 15925,5 126,7 15573,7 134,1 17495 81,3 14155,8 88,6 14913,9 132,7 17250,4 132,9 15879,8 134,4 17647,8 103,7 17749,9
 
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 time8 seconds
R Server'George Udny Yule' @ 72.249.76.132


Multiple Linear Regression - Estimated Regression Equation
transport[t] = + 45.6868318715026 + 0.00393335216032763Invoer[t] + 7.63202351997289M1[t] + 13.3609366719667M2[t] + 25.8561378782793M3[t] + 10.1961029363617M4[t] + 11.2981547120789M5[t] + 26.2151620747627M6[t] -14.4679010513006M7[t] -11.2034416318284M8[t] + 19.4366460284292M9[t] + 16.2397839003692M10[t] + 14.388284023985M11[t] -0.0676250412593975t + e[t]


Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STAT
H0: parameter = 0
2-tail p-value1-tail p-value
(Intercept)45.686831871502622.2020552.05780.0441160.022058
Invoer0.003933352160327630.0016442.3920.0200180.010009
M17.632023519972896.9637521.0960.2776240.138812
M213.36093667196676.8721691.94420.0567260.028363
M325.85613787827937.0830253.65040.0005630.000282
M410.19610293636176.8598011.48640.1426010.071301
M511.29815471207896.8356661.65280.103770.051885
M626.21516207476276.8251253.8410.0003060.000153
M7-14.46790105130067.269998-1.99010.0513020.025651
M8-11.20344163182847.476562-1.49850.1394330.069717
M919.43664602842926.8043172.85650.0059360.002968
M1016.23978390036926.826022.37910.0206670.010333
M1114.3882840239856.806092.1140.0388230.019412
t-0.06762504125939750.096034-0.70420.4841390.242069


Multiple Linear Regression - Regression Statistics
Multiple R0.827365424448612
R-squared0.684533545573033
Adjusted R-squared0.613825547166988
F-TEST (value)9.68113312502586
F-TEST (DF numerator)13
F-TEST (DF denominator)58
p-value2.73402855910376e-10
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation11.7801588769225
Sum Squared Residuals8048.78430360103


Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolation
Forecast
Residuals
Prediction Error
1124.998.699147886721226.2008521132788
2132110.76235997360521.2376400263948
3151.4129.55409993406921.8459000659315
4108.9103.4054167373205.49458326268046
5121.3113.594720624947.70527937506008
6123.4123.628499896475-0.228499896475197
790.378.090528814817712.2094711851823
879.383.7118814646565-4.41188146465651
9117.2119.721023439660-2.52102343965957
10116.9118.564813028276-1.66481302827571
11120.8119.9084037276240.891596272376054
1296.1101.056186952781-4.95618695278136
13100.8109.415515903097-8.61551590309705
14105.3113.940065239497-8.64006523949674
15116.1131.728013728644-15.6280137286445
16112.8108.9529666798083.84703332019154
17114.5113.3960363964061.10396360359378
18117.2127.250673956484-10.0506739564837
1977.179.139897226756-2.03989722675597
2080.180.8121643076258-0.712164307625836
21120.3115.3179790869524.98202091304839
22133.4115.14668005651418.2533199434862
23109.4111.448893291970-2.04889329197012
2493.293.00102511920920.198974880790798
2591.2102.576939892714-11.3769398927143
2699.2108.648083298555-9.44808329855477
27108.2126.161090471696-17.9610904716956
28101.5108.388480700364-6.88848070036426
29106.9109.129086028446-2.22908602844562
30104.4123.266138273635-18.8661382736347
3177.979.479688908971-1.57968890897109
326078.4863232307869-18.4863232307869
3399.5117.369565629341-17.8695656293413
3495118.949394980681-23.9493949806814
35105.6111.411476502010-5.81147650200984
36102.598.39438765701334.10561234298673
3793.3105.734191727372-12.4341917273721
3897.3110.635162865515-13.3351628655151
39127126.9111307842330.088869215767128
40111.7107.6867207305254.01327926947538
4196.4106.085408182347-9.68540818234692
42133122.92152667995310.0784733200472
4372.279.3266315654972-7.12663156549716
4495.876.319782916441319.4802170835587
45124.1117.0890676758737.01093232412722
46127.6117.7952995124049.80470048759589
47110.7110.3301480486990.369851951301411
48104.698.52177832257076.07822167742929
49112.7103.3155235395499.38447646045059
50115.3110.7621601958574.53783980414349
51139.4133.1352172982986.26478270170188
52119110.2708831554238.7291168445773
5397.4107.148543326846-9.7485433268463
54154132.78042392537721.2195760746232
5581.581.89545391697-0.395453916969955
5688.884.7233398625444.07666013745591
57127.7123.6931160086264.00688399137431
58105.1120.790103902840-15.6901039028404
59114.9118.012328208597-3.11232820859729
60106.4104.8921855370001.50781446299986
61104.5107.658681050546-3.158681050546
62121.6115.9521684269725.64783157302836
63141.4136.0104477830605.38955221693957
6499114.195531996560-15.1955319965604
65126.7113.84620544101512.853794558985
66134.1136.252737268077-2.15273726807685
6781.382.3677995669881-1.06779956698812
6888.688.54650821794530.0534917820546443
69132.7128.3092481595494.39075184045098
70132.9119.65370851928513.2462914807155
71134.4124.6887502211009.71124977889979
72103.7110.634436411425-6.93443641142527


Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
170.7478216207324410.5043567585351180.252178379267559
180.6526887883399160.6946224233201680.347311211660084
190.5159021899437370.9681956201125260.484097810056263
200.4394183928952130.8788367857904260.560581607104787
210.353061081981180.706122163962360.64693891801882
220.5139363405918310.9721273188163380.486063659408169
230.5398940136848750.920211972630250.460105986315125
240.4432782346928120.8865564693856240.556721765307188
250.3852819044714230.7705638089428460.614718095528577
260.3186626520594270.6373253041188530.681337347940573
270.328378555106310.656757110212620.67162144489369
280.2864903185198290.5729806370396590.71350968148017
290.2499335050626610.4998670101253220.750066494937339
300.2647538957566980.5295077915133960.735246104243302
310.2853625088009250.570725017601850.714637491199075
320.2840094470769260.5680188941538520.715990552923074
330.2766762345465810.5533524690931630.723323765453419
340.3048983591618430.6097967183236870.695101640838157
350.2462961886203970.4925923772407930.753703811379603
360.3858584848058120.7717169696116250.614141515194188
370.346722598223050.69344519644610.65327740177695
380.348153047360390.696306094720780.65184695263961
390.3951210657272390.7902421314544770.604878934272761
400.4439879909452750.887975981890550.556012009054725
410.4136196320572870.8272392641145740.586380367942713
420.5667583151759530.8664833696480950.433241684824047
430.5006017650554740.9987964698890510.499398234944526
440.6455276954362160.7089446091275670.354472304563784
450.6227447578765070.7545104842469870.377255242123493
460.6228994818704550.754201036259090.377100518129545
470.5530739445944070.8938521108111860.446926055405593
480.4844721468944740.9689442937889470.515527853105526
490.4563102922001050.912620584400210.543689707799895
500.3697374767045010.7394749534090020.630262523295499
510.3039769183836280.6079538367672550.696023081616372
520.3861520848582030.7723041697164060.613847915141797
530.4845898230046780.9691796460093560.515410176995322
540.720817939671570.558364120656860.27918206032843
550.6939975221105570.6120049557788850.306002477889443


Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level00OK
5% type I error level00OK
10% type I error level00OK
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/20/t1229762619kfbtpe3gq0ur4h6/10yp5h1229762521.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/20/t1229762619kfbtpe3gq0ur4h6/10yp5h1229762521.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/20/t1229762619kfbtpe3gq0ur4h6/1tkq21229762521.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/20/t1229762619kfbtpe3gq0ur4h6/1tkq21229762521.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/20/t1229762619kfbtpe3gq0ur4h6/27s9y1229762521.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/20/t1229762619kfbtpe3gq0ur4h6/27s9y1229762521.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/20/t1229762619kfbtpe3gq0ur4h6/3lauy1229762521.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/20/t1229762619kfbtpe3gq0ur4h6/3lauy1229762521.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/20/t1229762619kfbtpe3gq0ur4h6/4tsw71229762521.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/20/t1229762619kfbtpe3gq0ur4h6/4tsw71229762521.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/20/t1229762619kfbtpe3gq0ur4h6/5zry01229762521.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/20/t1229762619kfbtpe3gq0ur4h6/5zry01229762521.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/20/t1229762619kfbtpe3gq0ur4h6/6w1001229762521.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/20/t1229762619kfbtpe3gq0ur4h6/6w1001229762521.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/20/t1229762619kfbtpe3gq0ur4h6/71ldu1229762521.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/20/t1229762619kfbtpe3gq0ur4h6/71ldu1229762521.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/20/t1229762619kfbtpe3gq0ur4h6/847gh1229762521.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/20/t1229762619kfbtpe3gq0ur4h6/847gh1229762521.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/20/t1229762619kfbtpe3gq0ur4h6/9rebw1229762521.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/20/t1229762619kfbtpe3gq0ur4h6/9rebw1229762521.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