Home » date » 2010 » Dec » 21 »

paper - multiple regression

*The author of this computation has been verified*
R Software Module: /rwasp_multipleregression.wasp (opens new window with default values)
Title produced by software: Multiple Regression
Date of computation: Tue, 21 Dec 2010 20:42:43 +0000
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2010/Dec/21/t1292964046n9orm27qrtmokyx.htm/, Retrieved Tue, 21 Dec 2010 21:40:49 +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/2010/Dec/21/t1292964046n9orm27qrtmokyx.htm/},
    year = {2010},
}
@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 = {2010},
    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 «
631923 -12 -10.8 654294 -13 -12.2 671833 -16 -14.1 586840 -10 -15.2 600969 -4 -15.8 625568 -9 -15.8 558110 -8 -14.9 630577 -9 -12.6 628654 -3 -9.9 603184 -13 -7.8 656255 -3 -6 600730 -1 -5 670326 -2 -4.5 678423 0 -3.9 641502 0 -2.9 625311 -3 -1.5 628177 0 -0.5 589767 5 0 582471 3 0.5 636248 4 0.9 599885 3 0.8 621694 1 0.1 637406 -1 -1 596994 0 -2 696308 -2 -3 674201 -1 -3.7 648861 2 -4.7 649605 0 -6.4 672392 -6 -7.5 598396 -7 -7.8 613177 -6 -7.7 638104 -4 -6.6 615632 -9 -4.2 634465 -2 -2 638686 -3 -0.7 604243 2 0.1 706669 3 0.9 677185 1 2.1 644328 0 3.5 644825 1 4.9 605707 1 5.7 600136 3 6.2 612166 5 6.5 599659 5 6.5 634210 4 6.3 618234 11 6.2 613576 8 6.4 627200 -1 6.3 668973 4 5.8 651479 4 5.1 619661 4 5.1 644260 6 5.8 579936 6 6.7 601752 6 7.1 595376 6 6.7 588902 4 5.5 634341 1 4.2 594305 6 3 606200 0 2.2 610926 2 2 633685 -2 1.8 639696 0 1.8 659451 1 1.5 593248 -3 0.4 606677 -3 -0.9 599434 -5 -1.7 569578 -7 -2.6 629873 -7 -4.4 613438 -5 - 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 time6 seconds
R Server'RServer@AstonUniversity' @ vre.aston.ac.uk


Multiple Linear Regression - Estimated Regression Equation
Werkloosheid[t] = + 625621.704483033 + 2021.02707171529Consumentenvertrouwen[t] -3338.43957822753Ondernemersvertrouwen[t] + e[t]


Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STAT
H0: parameter = 0
2-tail p-value1-tail p-value
(Intercept)625621.7044830334314.125304145.01700
Consumentenvertrouwen2021.027071715291180.8119641.71160.0908050.045403
Ondernemersvertrouwen-3338.43957822753820.468089-4.06890.0001095.5e-05


Multiple Linear Regression - Regression Statistics
Multiple R0.539281172544876
R-squared0.290824183061377
Adjusted R-squared0.273313669062892
F-TEST (value)16.6085463331657
F-TEST (DF numerator)2
F-TEST (DF denominator)81
p-value9.0267967600699e-07
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation35366.6665765281
Sum Squared Residuals101314889483.56


Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolation
Forecast
Residuals
Prediction Error
1631923637424.527067307-5501.52706730695
2654294640077.3154051114216.6845948902
3671833640357.26938859631475.7306114038
4586840656155.715354938-69315.7153549382
5600969670284.941532166-69315.9415321664
6625568660179.80617359-34611.80617359
7558110659196.2376249-101086.237624901
8630577649496.799523262-18919.7995232619
9628654652609.17509234-23955.1750923393
10603184625388.181260909-22204.1812609087
11656255639589.26073725216665.7392627481
12600730640292.875302455-39562.875302455
13670326636602.62844162633723.3715583741
14678423638641.6188381239781.38116188
15641502635303.1792598926198.82074010754
16625311624566.282635228744.71736477193
17628177627290.924272146886.075727853605
18589767635726.839841609-45959.839841609
19582471630015.565909065-47544.5659090647
20636248630701.2171494895546.78285051101
21599885629014.034035596-29129.0340355965
22621694627308.887596925-5614.88759692516
23637406626939.11698954510466.8830104551
24596994632298.583639488-35304.5836394877
25696308631594.96907428564713.0309257153
26674201635952.90385075938248.0961492408
27648861645354.4246441333506.57535586742
28649605646987.7177836892617.2822163112
29672392638533.83888944733858.1611105526
30598396637514.3436912-39118.3436912004
31613177639201.526805093-26024.5268050929
32638104639571.297412473-1467.29741247318
33615632621453.907066151-5821.90706615069
34634465628256.5294960576208.47050394288
35638686621895.53097264616790.469027354
36604243629329.91466864-25086.9146686404
37706669628680.19007777477988.8099222263
38677185620632.0084404756552.9915595299
39644328613937.16595923630390.8340407637
40644825611284.37762143333540.622378567
41605707608613.625958851-2906.62595885101
42600136610986.460313168-10850.4603131678
43612166614026.98258313-1860.98258313012
44599659614026.98258313-14367.9825831301
45634210612673.6434270621536.3565729397
46618234627154.67688689-8920.67688689008
47613576620423.907756099-6847.90775609872
48627200602568.50806848424631.4919315161
49668973614342.86321617454630.1367838259
50651479616679.77092093334799.2290790666
51619661616679.7709209332981.22907906663
52644260618384.91735960525875.0826403953
53579936615380.3217392-35444.3217391999
54601752614044.945907909-12292.9459079089
55595376615380.3217392-20004.3217391999
56588902615344.395089642-26442.3950896424
57634341613621.28532619220719.7146738077
58594305627732.548178642-33427.5481786418
59606200618277.137410932-12077.1374109321
60610926622986.879470008-12060.8794700081
61633685615570.45909879318114.5409012075
62639696619612.51324222320083.4867577769
63659451622635.07218740736815.9278125934
64593248618223.247436596-24975.2474365958
65606677622563.218888292-15886.2188882916
66599434621191.916407443-21757.916407443
67569578620154.457884417-50576.4578844172
68629873626163.6491252273709.35087477324
69613438643225.617623745-29787.6176237447
70604172647421.88247721-43249.8824772103
71658328664394.034351834-6066.03435183442
72612633673669.811871756-61036.8118717564
73707372686725.65287640120646.3471235987
74739770686004.0749864253765.9250135805
75777535688358.94601595889176.0539840424
76685030691769.2388933-6739.23889330016
77730234687799.03804898542434.9619510153
78714154682827.30533120131326.6946687991
79630872678523.260529063-47651.2605290626
80719492683990.50712767835501.4928723219
81677023674291.0690260392731.93097396054
82679272663608.06237571115663.9376242886
83718317656651.2292357761665.7707642301
84645672635827.1605773089844.83942269217


Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
60.342437039597280.684874079194560.65756296040272
70.5953386106907440.8093227786185120.404661389309256
80.4869301144936810.9738602289873620.513069885506319
90.4218843898377130.8437687796754260.578115610162287
100.5824530142662320.8350939714675370.417546985733768
110.5668783981706770.8662432036586450.433121601829323
120.5367652069737070.9264695860525860.463234793026293
130.5649823806939520.8700352386120960.435017619306048
140.5796032016023750.8407935967952490.420396798397625
150.4947849270969420.9895698541938840.505215072903058
160.4797586886343040.9595173772686070.520241311365696
170.4238477900431850.847695580086370.576152209956815
180.4976325149626910.9952650299253820.502367485037309
190.5865313631735510.8269372736528990.413468636826449
200.5163888838152760.9672222323694490.483611116184724
210.4966132515604390.9932265031208790.503386748439561
220.4241615159188650.848323031837730.575838484081135
230.3549142869917080.7098285739834170.645085713008292
240.3521047325880680.7042094651761360.647895267411932
250.5737252979136130.8525494041727730.426274702086387
260.6234915938067940.7530168123864120.376508406193206
270.5986900553188860.8026198893622290.401309944681114
280.5666632590271260.8666734819457480.433336740972874
290.5796425320361190.8407149359277630.420357467963881
300.5984829463816790.8030341072366430.401517053618322
310.5650301157457480.8699397685085030.434969884254252
320.5024531029386980.9950937941226030.497546897061302
330.4635091958083570.9270183916167150.536490804191643
340.3983236842935770.7966473685871540.601676315706423
350.3414369005957830.6828738011915670.658563099404217
360.3282320682038820.6564641364077640.671767931796118
370.5680352438676790.8639295122646420.431964756132321
380.6233606210441720.7532787579116550.376639378955828
390.5923791832697850.8152416334604310.407620816730215
400.572818270421070.854363459157860.42718172957893
410.5626865501541380.8746268996917230.437313449845862
420.5489259939314820.9021480121370360.451074006068518
430.5012525073883090.9974949852233820.498747492611691
440.4741477014513010.9482954029026020.525852298548699
450.4281059489042650.856211897808530.571894051095735
460.3779177078446360.7558354156892730.622082292155363
470.32764072663530.65528145327060.6723592733647
480.3155709874658650.6311419749317310.684429012534134
490.3991484364930360.7982968729860720.600851563506964
500.4027124109886240.8054248219772470.597287589011376
510.3481832055313860.6963664110627730.651816794468614
520.3266850650367980.6533701300735960.673314934963202
530.3503536681814410.7007073363628820.649646331818559
540.306592132134830.6131842642696590.69340786786517
550.2757719778879570.5515439557759150.724228022112043
560.2602981455445280.5205962910890570.739701854455472
570.2382430198075740.4764860396151480.761756980192426
580.2484985051242660.4969970102485330.751501494875734
590.2046352478205110.4092704956410220.79536475217949
600.1654224125042620.3308448250085250.834577587495738
610.146659061784240.293318123568480.85334093821576
620.1293897177606420.2587794355212850.870610282239358
630.1606668102699150.321333620539830.839333189730085
640.1335073554729610.2670147109459230.866492644527039
650.1018874850808260.2037749701616530.898112514919174
660.07830293325294220.1566058665058840.921697066747058
670.07934374801343080.1586874960268620.920656251986569
680.06534508249041750.1306901649808350.934654917509583
690.04833874199404460.0966774839880890.951661258005955
700.04476227705778170.08952455411556340.955237722942218
710.03122561643767570.06245123287535150.968774383562324
720.142724837421880.285449674843760.85727516257812
730.1307419484919440.2614838969838890.869258051508056
740.1294103960907710.2588207921815430.870589603909229
750.4442676268012670.8885352536025350.555732373198732
760.3284687728387290.6569375456774580.671531227161271
770.4072880100827290.8145760201654570.592711989917271
780.9299244755160640.1401510489678710.0700755244839357


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 level30.0410958904109589OK
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Dec/21/t1292964046n9orm27qrtmokyx/109dbr1292964149.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/21/t1292964046n9orm27qrtmokyx/109dbr1292964149.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/21/t1292964046n9orm27qrtmokyx/1kueg1292964149.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/21/t1292964046n9orm27qrtmokyx/1kueg1292964149.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/21/t1292964046n9orm27qrtmokyx/2kueg1292964149.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/21/t1292964046n9orm27qrtmokyx/2kueg1292964149.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/21/t1292964046n9orm27qrtmokyx/3v4v01292964149.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/21/t1292964046n9orm27qrtmokyx/3v4v01292964149.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/21/t1292964046n9orm27qrtmokyx/4v4v01292964149.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/21/t1292964046n9orm27qrtmokyx/4v4v01292964149.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/21/t1292964046n9orm27qrtmokyx/5v4v01292964149.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/21/t1292964046n9orm27qrtmokyx/5v4v01292964149.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/21/t1292964046n9orm27qrtmokyx/65vc31292964149.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/21/t1292964046n9orm27qrtmokyx/65vc31292964149.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/21/t1292964046n9orm27qrtmokyx/7gmup1292964149.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/21/t1292964046n9orm27qrtmokyx/7gmup1292964149.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/21/t1292964046n9orm27qrtmokyx/8gmup1292964149.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/21/t1292964046n9orm27qrtmokyx/8gmup1292964149.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/21/t1292964046n9orm27qrtmokyx/9gmup1292964149.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/21/t1292964046n9orm27qrtmokyx/9gmup1292964149.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