Home » date » 2009 » Nov » 25 »

WS7 aanpassing

*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: Wed, 25 Nov 2009 10:21:22 -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/25/t12591698123hise409lpir07f.htm/, Retrieved Wed, 25 Nov 2009 18:23:44 +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/25/t12591698123hise409lpir07f.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 «
103.7 114813 116476 106370 106.2 117925 123297 109375 107.7 126466 114813 116476 109.9 131235 117925 123297 111.7 120546 126466 114813 114.9 123791 131235 117925 116 129813 120546 126466 118.3 133463 123791 131235 120.4 122987 129813 120546 126 125418 133463 123791 128.1 130199 122987 129813 130.1 133016 125418 133463 130.8 121454 130199 122987 133.6 122044 133016 125418 134.2 128313 121454 130199 135.5 131556 122044 133016 136.2 120027 128313 121454 139.1 123001 131556 122044 139 130111 120027 128313 139.6 132524 123001 131556 138.7 123742 130111 120027 140.9 124931 132524 123001 141.3 133646 123742 130111 141.8 136557 124931 132524 142 127509 133646 123742 144.5 128945 136557 124931 144.6 137191 127509 133646 145.5 139716 128945 136557 146.8 129083 137191 127509 149.5 131604 139716 128945 149.9 139413 129083 137191 150.1 143125 131604 139716 150.9 133948 139413 129083 152.8 137116 143125 131604 153.1 144864 133948 139413 154 149277 137116 143125 154.9 138796 144864 133948 etc...
 
Output produced by software:

Enter (or paste) a matrix (table) containing all data (time) series. Every column represents a different variable and must be delimited by a space or Tab. Every row represents a period in time (or category) and must be delimited by hard returns. The easiest way to enter data is to copy and paste a block of spreadsheet cells. Please, do not use commas or spaces to seperate groups of digits!


Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time5 seconds
R Server'Gwilym Jenkins' @ 72.249.127.135


Multiple Linear Regression - Estimated Regression Equation
HFCE[t] = + 74688.2221859923 -442.983839249867RPI[t] + 0.630377456292092`HFCE-2`[t] + 0.211331462128754`HFCE-4`[t] -12639.0030914300Q1[t] -11436.7551722576Q2[t] -1206.43033445861Q3[t] + 720.266859665427t + e[t]


Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STAT
H0: parameter = 0
2-tail p-value1-tail p-value
(Intercept)74688.222185992310682.7063336.991500
RPI-442.98383924986779.24004-5.590400
`HFCE-2`0.6303774562920920.1590693.96290.0001638.1e-05
`HFCE-4`0.2113314621287540.1496611.41210.1619060.080953
Q1-12639.00309143002487.099896-5.08182e-061e-06
Q2-11436.75517225762762.014669-4.14078.7e-054.3e-05
Q3-1206.43033445861645.142892-1.870.0652330.032616
t720.266859665427119.4511316.029800


Multiple Linear Regression - Regression Statistics
Multiple R0.998043546349196
R-squared0.99609092040928
Adjusted R-squared0.995740105574216
F-TEST (value)2839.36373507684
F-TEST (DF numerator)7
F-TEST (DF denominator)78
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation1980.38801473839
Sum Squared Residuals305911061.735718


Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolation
Forecast
Residuals
Prediction Error
1114813112735.234049732077.76595027006
2117925118485.144903508-560.144903507992
3126466124923.8032154921542.19678450810
4131235129279.1625104271955.83748957257
5120546120154.173097504391.826902496483
6123791124323.073189943-532.073189943426
7129813129853.260051969-40.2600519685351
8133463133814.509004378-351.509004377733
9122987122502.717753285484.282246714847
10125418124931.171342398486.828657602327
11130199129620.300810261578.699189739208
12133016132964.83775890151.1622410988788
13121454121535.939060933-81.9390609332829
14122044124507.619168681-2463.61916868131
15128313128914.372133384-601.372133384241
16131556131232.433764512323.566235487521
17120027120512.030753635-485.030753635457
18123001123318.89205206-317.892052059885
19130111128370.9973759431740.00262405706
20132524132591.994753213-67.9947532132893
21123742123117.487264128624.512735872052
22124931126215.038167020-1284.03816701980
23133646132955.028203363690.971796637425
24136557135919.695091510637.304908490343
25127509127550.188723066-41.1887230659590
26128945130451.545787516-1506.54578751649
27137191137495.937568977-304.937568977185
28139716140544.357221269-828.357221268587
29129083131335.707433723-2252.70743372279
30131604133957.340903340-2353.3409033404
31139413139770.574809065-357.57480906478
32143125143731.468744526-606.468744526318
33133948134133.875560732-185.875560731733
34137116138087.448778778-971.448778777643
35144864144770.45879583893.541204161959
36149277149079.968703592197.031296407523
37138796139707.322719899-911.322719898554
38143258144195.223606878-937.223606877547
39150034149511.749594643522.250405356648
40154708154607.917750092100.082249907925
41144888144524.162187966363.837812033706
42148762149007.070663782-245.070663782258
43156500154977.8458082181522.15419178214
44161088160024.2998345321063.70016546766
45152772151218.2380889271553.76191107349
46158011156054.2518108691956.74818913052
47163318163353.609051836-35.6090518361932
48169969169020.861880621948.138119378625
49162269158380.0176828613888.98231713871
50165765164229.0885519161535.91144808422
51170600171314.414753673-714.414753673445
52174681176363.194866438-1682.19486643813
53166364165953.678145304410.321854695638
54170240170257.312052448-17.3120524476215
55176150176942.543681398-792.543681398274
56182056182263.624360908-207.624360907873
57172218172268.476741380-50.4767413797112
58177856177802.85546186553.1445381350352
59182253183534.972381959-1281.97238195882
60188090189555.087147190-1465.08714719031
61176863177886.057827069-1023.05782706950
62183273183749.306539341-476.306539341452
63187969188330.38305437-361.383054369768
64194650195044.059264597-394.059264596803
65183036183314.271786935-278.271786935468
66189516189695.513425381-179.513425381408
67193805193830.031668451-25.0316684512737
68200499200456.10936718142.8906328194848
69188142188565.166524664-423.166524664422
70193732195102.291424166-1370.29142416612
71197126198859.620847824-1733.62084782451
72205140205237.498606936-97.4986069363634
73191751192625.348664677-874.348664677184
74196700199274.90619809-2574.90619809002
75199784201749.560589-1965.56058899985
76207360207559.340089389-199.340089388571
77196101194046.3968435872054.60315641288
78200824200328.683967844495.316032155527
79205743204479.2150427211263.78495727856
80212489209788.1757540262700.82424597419
81200810198015.0063066302794.99369337044
82203683203327.633776398355.3662236015
83207286207025.320561614260.679438385779
84210910213030.403525761-2120.40352576076
85194915202952.502783364-8037.50278336425
86217920207013.58822777610906.4117722243


Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
110.1130731776697450.2261463553394900.886926822330255
120.05795077031491790.1159015406298360.942049229685082
130.02234121498282660.04468242996565310.977658785017173
140.008110493740637870.01622098748127570.991889506259362
150.004776053977399560.009552107954799130.9952239460226
160.004605243442868300.009210486885736610.995394756557132
170.001767115839556730.003534231679113450.998232884160443
180.001536827171337020.003073654342674030.998463172828663
190.002401440174568470.004802880349136930.997598559825432
200.001163057642809640.002326115285619280.99883694235719
210.0005169122834900550.001033824566980110.99948308771651
220.0001966164443117130.0003932328886234260.999803383555688
239.3338518393699e-050.0001866770367873980.999906661481606
243.85954730223443e-057.71909460446885e-050.999961404526978
251.51403647196483e-053.02807294392967e-050.99998485963528
265.60047744306368e-061.12009548861274e-050.999994399522557
272.04870017605542e-064.09740035211084e-060.999997951299824
287.45712585792165e-071.49142517158433e-060.999999254287414
298.01848485735302e-071.60369697147060e-060.999999198151514
303.18796800462823e-076.37593600925646e-070.9999996812032
311.72074146108611e-073.44148292217223e-070.999999827925854
326.60889359225331e-081.32177871845066e-070.999999933911064
334.57107100686876e-089.14214201373752e-080.99999995428929
346.27642329314905e-081.25528465862981e-070.999999937235767
353.18502061387298e-086.37004122774595e-080.999999968149794
361.9861765013917e-083.9723530027834e-080.999999980138235
377.09973856037044e-091.41994771207409e-080.999999992900261
389.93207370174289e-091.98641474034858e-080.999999990067926
397.40515131545105e-091.48103026309021e-080.999999992594849
403.56815344651333e-097.13630689302666e-090.999999996431847
412.45221629833006e-094.90443259666012e-090.999999997547784
424.96853179751971e-099.93706359503941e-090.999999995031468
435.15119093568681e-091.03023818713736e-080.99999999484881
443.04504367912784e-096.09008735825569e-090.999999996954956
452.59364542844847e-095.18729085689694e-090.999999997406355
461.34114427967779e-082.68228855935559e-080.999999986588557
471.13039473784277e-082.26078947568555e-080.999999988696053
484.6087750046188e-099.2175500092376e-090.999999995391225
495.68675936267155e-081.13735187253431e-070.999999943132406
502.49836299052218e-084.99672598104436e-080.99999997501637
514.59745495067858e-089.19490990135716e-080.99999995402545
522.54943167700930e-075.09886335401859e-070.999999745056832
532.33447832053266e-074.66895664106532e-070.999999766552168
541.01321132888002e-072.02642265776003e-070.999999898678867
558.86884895039645e-081.77376979007929e-070.99999991131151
565.84407036040984e-081.16881407208197e-070.999999941559296
573.06795256232356e-086.13590512464713e-080.999999969320474
581.62051504315226e-083.24103008630452e-080.99999998379485
591.78734280458408e-083.57468560916816e-080.999999982126572
604.33518048156874e-088.67036096313748e-080.999999956648195
612.48333521653283e-084.96667043306565e-080.999999975166648
621.53608198601331e-083.07216397202663e-080.99999998463918
637.9240922743439e-091.58481845486878e-080.999999992075908
641.48050709172517e-082.96101418345035e-080.99999998519493
651.71390945758549e-083.42781891517098e-080.999999982860905
668.34203198647446e-081.66840639729489e-070.99999991657968
671.32883450006375e-072.65766900012749e-070.99999986711655
682.9665872629177e-075.9331745258354e-070.999999703341274
693.37298606721484e-076.74597213442968e-070.999999662701393
701.64924718326091e-073.29849436652182e-070.999999835075282
717.7409490203867e-081.54818980407734e-070.99999992259051
725.63556525324159e-081.12711305064832e-070.999999943644347
731.77201105772803e-083.54402211545605e-080.99999998227989
742.75984526279561e-085.51969052559121e-080.999999972401547
759.43391343773175e-091.88678268754635e-080.999999990566087


Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level610.938461538461538NOK
5% type I error level630.96923076923077NOK
10% type I error level630.96923076923077NOK
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2009/Nov/25/t12591698123hise409lpir07f/10dnv81259169675.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/25/t12591698123hise409lpir07f/10dnv81259169675.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Nov/25/t12591698123hise409lpir07f/1nywu1259169675.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/25/t12591698123hise409lpir07f/1nywu1259169675.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Nov/25/t12591698123hise409lpir07f/292eq1259169675.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/25/t12591698123hise409lpir07f/292eq1259169675.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Nov/25/t12591698123hise409lpir07f/3klty1259169675.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/25/t12591698123hise409lpir07f/3klty1259169675.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Nov/25/t12591698123hise409lpir07f/4hy5f1259169675.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/25/t12591698123hise409lpir07f/4hy5f1259169675.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Nov/25/t12591698123hise409lpir07f/5j0x01259169675.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/25/t12591698123hise409lpir07f/5j0x01259169675.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Nov/25/t12591698123hise409lpir07f/6ankb1259169675.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/25/t12591698123hise409lpir07f/6ankb1259169675.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Nov/25/t12591698123hise409lpir07f/7uv8b1259169675.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/25/t12591698123hise409lpir07f/7uv8b1259169675.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Nov/25/t12591698123hise409lpir07f/8unuh1259169675.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/25/t12591698123hise409lpir07f/8unuh1259169675.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Nov/25/t12591698123hise409lpir07f/9cvhp1259169675.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/25/t12591698123hise409lpir07f/9cvhp1259169675.ps (open in new window)


 
Parameters (Session):
par1 = 2 ; par2 = Include Quarterly Dummies ; par3 = Linear Trend ;
 
Parameters (R input):
par1 = 2 ; par2 = Include Quarterly 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