Home » date » 2009 » Nov » 22 »

Ws 7 link 4 verbetering

*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: Sun, 22 Nov 2009 15:10:50 -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/22/t12589279143qutm7yg9yi31c3.htm/, Retrieved Sun, 22 Nov 2009 23:12:06 +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/22/t12589279143qutm7yg9yi31c3.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:
Ws 7 link 4 verbetering
 
Dataseries X:
» Textbox « » Textfile « » CSV «
106370 100.3 123297 116476 109375 106370 109375 101.9 106370 123297 116476 109375 116476 102.1 109375 106370 123297 116476 123297 103.2 116476 109375 106370 123297 114813 103.7 123297 116476 109375 106370 117925 106.2 114813 123297 116476 109375 126466 107.7 117925 114813 123297 116476 131235 109.9 126466 117925 114813 123297 120546 111.7 131235 126466 117925 114813 123791 114.9 120546 131235 126466 117925 129813 116 123791 120546 131235 126466 133463 118.3 129813 123791 120546 131235 122987 120.4 133463 129813 123791 120546 125418 126 122987 133463 129813 123791 130199 128.1 125418 122987 133463 129813 133016 130.1 130199 125418 122987 133463 121454 130.8 133016 130199 125418 122987 122044 133.6 121454 133016 130199 125418 128313 134.2 122044 121454 133016 130199 131556 135.5 128313 122044 121454 133016 120027 136.2 131556 128313 122044 121454 123001 139.1 120027 131556 128313 122044 130111 139 123001 120027 131556 128313 132524 139.6 130111 123001 120027 131556 123742 138.7 132524 13 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 time4 seconds
R Server'Gwilym Jenkins' @ 72.249.127.135


Multiple Linear Regression - Estimated Regression Equation
Y[t] = + 59313.335440879 -345.279769827803X[t] + 0.213894954464884Y1[t] + 0.507550237696988Y2[t] -0.215173320358447Y3[t] + 0.325595448772870Y4[t] -11107.3359434972M1[t] -7270.12175937004M2[t] + 1809.7233257425M3[t] -456.589776813249M4[t] -11681.9631328455M5[t] -5738.79009446743M6[t] + 2125.90512822115M7[t] -236.514315406094M8[t] -11095.5021540931M9[t] -6801.7209454567M10[t] + 2587.76554077346M11[t] + 625.751505986009t + e[t]


Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STAT
H0: parameter = 0
2-tail p-value1-tail p-value
(Intercept)59313.33544087911944.305334.96584e-062e-06
X-345.27976982780379.207601-4.35924.3e-052.1e-05
Y10.2138949544648840.1595331.34080.1842150.092108
Y20.5075502376969880.1939562.61680.0108080.005404
Y3-0.2151733203584470.188576-1.1410.2576330.128816
Y40.3255954487728700.1666361.95390.0545940.027297
M1-11107.33594349722849.885156-3.89750.0002160.000108
M2-7270.121759370044646.259177-1.56470.1220320.061016
M31809.72332574253337.0809620.54230.5892810.294641
M4-456.5897768132491158.548292-0.39410.6946680.347334
M5-11681.96313284552756.939703-4.23736.6e-053.3e-05
M6-5738.790094467434554.875333-1.25990.2117660.105883
M72125.905128221153348.7651790.63480.527550.263775
M8-236.5143154060941191.153196-0.19860.8431670.421584
M9-11095.50215409312810.4122-3.9480.0001829.1e-05
M10-6801.72094545674565.700972-1.48970.140660.07033
M112587.765540773463264.5893790.79270.430570.215285
t625.751505986009129.8103584.82058e-064e-06


Multiple Linear Regression - Regression Statistics
Multiple R0.997952047794552
R-squared0.99590828969734
Adjusted R-squared0.994942191431434
F-TEST (value)1030.85609905699
F-TEST (DF numerator)17
F-TEST (DF denominator)72
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation2217.37818625887
Sum Squared Residuals354007153.504561


Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolation
Forecast
Residuals
Prediction Error
1106370110789.223748055-4419.22374805503
2109375113991.610659245-4616.6106592452
3116476116523.958824619-47.9588246193766
4123297123410.771366961-113.771366960822
5114813111543.6513652373269.34863476347
6117925118347.160438379-422.160438379289
7126466123523.6284575572942.37154244318
8131235128480.1351780932754.86482190718
9120546119548.475717370997.524282629702
10123791122672.7547912451118.24520875481
11129813129331.818836326481.181163674124
12133463133363.48958455899.5104154420338
13122987121815.474569121171.52543087991
14125418123717.4518688871700.54813111313
15130199129076.1964607391122.80353926059
16133016132444.140821748571.85917825189
17121454120697.938642843756.061357156643
18122044125019.574279092-2975.57427909211
19128313128511.283917885-198.283917885046
20131556131371.150698427184.849301573219
21120027120880.225466575-853.225466574991
22123001122821.617108971179.382891028670
23130111128999.3107727751111.68922722507
24132524133397.01566003-873.015660029913
25123742122957.278346865784.721653135353
26124931125445.360333711-514.360333710849
27133646132605.6303490321040.36965096777
28136557135935.314545609621.685454391414
29127509127197.364966544311.635033456173
30128945130957.144781943-2012.14478194311
31137191137339.096938056-148.096938056247
32139716140678.993697401-962.99369740135
33129083131467.261175466-2384.26117546578
34131604133154.993675675-1550.99367567498
35139413140316.11469941-903.114699409919
36143125144344.95098283-1219.95098283015
37133948134340.072259181-392.072259180559
38137116137208.656539505-92.656539505202
39144864144574.351378352289.648621648318
40149277149071.471115929205.528884070750
41138796139367.856636484-571.856636483645
42143258144608.531317978-1350.53131797765
43150034149788.977311781245.022688218931
44154708155009.571331533-301.571331533269
45144888144669.931287694218.068712305775
46148762148820.258524659-58.2585246594785
47156500155707.857012904792.142987096144
48161088160760.351051209327.648948791323
49152772151398.3074929431373.69250705708
50158011155386.0052622022624.99473779769
51163318163489.124154871-171.12415487135
52169969168511.6363042191457.36369578133
53162269157951.5582915444317.44170845621
54165765165742.71077596322.2892240365053
55170600171266.030797166-666.030797165741
56174681175780.502745089-1099.50274508871
57166364165683.902191265680.097808734801
58170240170268.614257983-28.6142579830335
59176150177553.217464230-1403.21746423047
60182056182009.99481747346.0051825271638
61172218172214.7787716843.22122831564263
62177856176836.2837230971019.71627690272
63182253183200.82843932-947.828439319855
64188090188849.725412082-759.725412082309
65176863176968.671831365-105.671831365079
66183273184263.270993316-990.270993316145
67187969188429.554493895-460.554493894696
68194650194887.178041399-237.178041399191
69183036183120.956935987-84.956935987502
70189516189160.670277170355.329722830374
71193805194378.874641017-573.874641017446
72200499200676.004156411-177.004156410861
73188142188454.686970685-312.686970685221
74193732194099.458643029-367.458643029133
75197126198443.342576793-1317.34257679263
76205140204824.571191347315.428808652804
77191751192262.887306922-511.887306922197
78196700199951.309002789-3251.30900278881
79199784201498.428083660-1714.42808366038
80207360207698.468308058-338.468308057885
81196101194674.2472256421426.75277435799
82200824200839.091364296-15.0913642963660
83205743205247.806573337495.193426662506
84212489210692.1937474901796.80625251040
85200810199019.1778414671790.82215853283
86203683203437.172970323245.827029676841
87207286207254.56781627331.4321837265343
88210910213208.369242105-2298.36924210505
89194915202380.070959062-7465.07095906157
90217920206940.29841053910979.7015894606


Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
210.003731560644663830.007463121289327670.996268439355336
220.000679023389905440.001358046779810880.999320976610095
230.0001134339251088270.0002268678502176530.999886566074891
240.01656924793865360.03313849587730710.983430752061346
250.01594203014138250.03188406028276490.984057969858618
260.1933162542955350.386632508591070.806683745704465
270.1789411927118260.3578823854236530.821058807288173
280.2160274209470.4320548418940.783972579053
290.2626028900407850.525205780081570.737397109959215
300.2132599367187510.4265198734375020.786740063281249
310.1931559509062020.3863119018124040.806844049093798
320.1971848778158730.3943697556317460.802815122184127
330.1564257314974790.3128514629949590.84357426850252
340.12033206820980.24066413641960.8796679317902
350.08215557150028320.1643111430005660.917844428499717
360.05533091864065160.1106618372813030.944669081359348
370.04158076535140120.08316153070280240.958419234648599
380.02852193271494920.05704386542989840.97147806728505
390.01821856324922810.03643712649845610.981781436750772
400.01094979252389790.02189958504779570.989050207476102
410.008104075198493120.01620815039698620.991895924801507
420.00934399723969130.01868799447938260.990656002760309
430.005860510226780710.01172102045356140.99413948977322
440.003371385295675050.00674277059135010.996628614704325
450.002253743289423970.004507486578847950.997746256710576
460.001558097362281220.003116194724562440.998441902637719
470.0008076363064056680.001615272612811340.999192363693594
480.0005073028348988480.001014605669797700.999492697165101
490.0003998619181925970.0007997238363851940.999600138081807
500.0002932946999894560.0005865893999789120.99970670530001
510.0003812603700339300.0007625207400678610.999618739629966
520.0001900582848438040.0003801165696876070.999809941715156
530.000949429136987830.001898858273975660.999050570863012
540.0004780875194339570.0009561750388679140.999521912480566
550.0007874043018878140.001574808603775630.999212595698112
560.0005795101581676960.001159020316335390.999420489841832
570.0003099552751867350.000619910550373470.999690044724813
580.0001649444825508610.0003298889651017230.99983505551745
590.0001295776361160320.0002591552722320650.999870422363884
600.0001927083363908490.0003854166727816980.99980729166361
618.71757165820747e-050.0001743514331641490.999912824283418
626.34612230998622e-050.0001269224461997240.9999365387769
635.35502984946583e-050.0001071005969893170.999946449701505
643.04144292267508e-056.08288584535015e-050.999969585570773
650.0001161168220906490.0002322336441812990.99988388317791
660.0001580353528772280.0003160707057544570.999841964647123
670.0001027526402659820.0002055052805319640.999897247359734
687.98057807163835e-050.0001596115614327670.999920194219284
690.0001286645376445980.0002573290752891960.999871335462355


Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level290.591836734693878NOK
5% type I error level360.73469387755102NOK
10% type I error level380.775510204081633NOK
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2009/Nov/22/t12589279143qutm7yg9yi31c3/10hhfy1258927845.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/22/t12589279143qutm7yg9yi31c3/10hhfy1258927845.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Nov/22/t12589279143qutm7yg9yi31c3/10x0l1258927845.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/22/t12589279143qutm7yg9yi31c3/10x0l1258927845.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Nov/22/t12589279143qutm7yg9yi31c3/2q2971258927845.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/22/t12589279143qutm7yg9yi31c3/2q2971258927845.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Nov/22/t12589279143qutm7yg9yi31c3/3z5w61258927845.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/22/t12589279143qutm7yg9yi31c3/3z5w61258927845.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Nov/22/t12589279143qutm7yg9yi31c3/49t6p1258927845.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/22/t12589279143qutm7yg9yi31c3/49t6p1258927845.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Nov/22/t12589279143qutm7yg9yi31c3/54ppd1258927845.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/22/t12589279143qutm7yg9yi31c3/54ppd1258927845.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Nov/22/t12589279143qutm7yg9yi31c3/6uc6m1258927845.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/22/t12589279143qutm7yg9yi31c3/6uc6m1258927845.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Nov/22/t12589279143qutm7yg9yi31c3/78u1s1258927845.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/22/t12589279143qutm7yg9yi31c3/78u1s1258927845.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Nov/22/t12589279143qutm7yg9yi31c3/8yg931258927845.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/22/t12589279143qutm7yg9yi31c3/8yg931258927845.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Nov/22/t12589279143qutm7yg9yi31c3/9bzbv1258927845.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/22/t12589279143qutm7yg9yi31c3/9bzbv1258927845.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