Home » date » 2010 » Dec » 21 »

*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 19:41:47 +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/t1292960383pvwrau67g6movyp.htm/, Retrieved Tue, 21 Dec 2010 20:39:46 +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/t1292960383pvwrau67g6movyp.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 «
320 324 343 295 301 367 196 182 342 361 333 330 345 323 365 323 316 358 235 169 430 409 407 341 326 374 364 349 300 385 304 196 443 414 325 388 356 386 444 387 327 448 225 182 460 411 342 361 377 331 428 340 352 461 221 198 422 329 320 375 364 351 380 319 322 386 221 187 343 342 365 313 356 337 389 326 343 357 220 218 391 425 332 298 360 336 325 393 301 426 265 210 429 440 357 431 442 422 544 420 396 482 261 211 448 468 464 425
 
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'RServer@AstonUniversity' @ vre.aston.ac.uk


Multiple Linear Regression - Estimated Regression Equation
Vl[t] = + 326.861111111111 + 4.74583333333336M1[t] -2.73611111111112M2[t] + 40.8930555555555M3[t] -7.47777777777778M4[t] -29.6263888888889M5[t] + 48.8916666666666M6[t] -120.8125M7[t] -165.294444444444M8[t] + 51.3347222222222M9[t] + 38.6305555555556M10[t] -1.29583333333333M11[t] + 0.593055555555555t + e[t]


Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STAT
H0: parameter = 0
2-tail p-value1-tail p-value
(Intercept)326.86111111111114.4319222.648500
M14.7458333333333617.8618680.26570.7910490.395524
M2-2.7361111111111217.853769-0.15330.8785250.439263
M340.893055555555517.8464382.29140.0241510.012075
M4-7.4777777777777817.839875-0.41920.6760450.338022
M5-29.626388888888917.834083-1.66120.0999660.049983
M648.891666666666617.8290622.74220.0072930.003646
M7-120.812517.824812-6.777800
M8-165.29444444444417.821334-9.275100
M951.334722222222217.8186282.8810.0049010.00245
M1038.630555555555617.8166962.16820.032640.01632
M11-1.2958333333333317.815536-0.07270.9421690.471085
t0.5930555555555550.1173685.0532e-061e-06


Multiple Linear Regression - Regression Statistics
Multiple R0.88286179482399
R-squared0.779444948759838
Adjusted R-squared0.751585363340028
F-TEST (value)27.9776219572028
F-TEST (DF numerator)12
F-TEST (DF denominator)95
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation37.791638668049
Sum Squared Residuals135679.755555556


Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolation
Forecast
Residuals
Prediction Error
1320332.2-12.1999999999998
2324325.311111111111-1.31111111111113
3343369.533333333333-26.5333333333333
4295321.755555555556-26.7555555555556
5301300.20.800000000000013
6367379.311111111111-12.3111111111111
7196210.2-14.2
8182166.31111111111115.688888888889
9342383.533333333333-41.5333333333333
10361371.422222222222-10.4222222222223
11333332.0888888888890.911111111111104
12330333.977777777778-3.97777777777779
13345339.3166666666675.68333333333328
14323332.427777777778-9.42777777777779
15365376.65-11.65
16323328.872222222222-5.87222222222223
17316307.3166666666678.68333333333333
18358386.427777777778-28.4277777777778
19235217.31666666666717.6833333333333
20169173.427777777778-4.42777777777778
21430390.6539.35
22409378.53888888888930.4611111111111
23407339.20555555555667.7944444444445
24341341.094444444444-0.0944444444444565
25326346.433333333333-20.4333333333334
26374339.54444444444434.4555555555556
27364383.766666666667-19.7666666666667
28349335.98888888888913.0111111111111
29300314.433333333333-14.4333333333333
30385393.544444444444-8.54444444444445
31304224.43333333333379.5666666666667
32196180.54444444444415.4555555555555
33443397.76666666666745.2333333333333
34414385.65555555555628.3444444444444
35325346.322222222222-21.3222222222222
36388348.21111111111139.7888888888889
37356353.552.44999999999997
38386346.66111111111139.3388888888889
39444390.88333333333353.1166666666667
40387343.10555555555643.8944444444445
41327321.555.44999999999999
42448400.66111111111147.3388888888889
43225231.55-6.55000000000001
44182187.661111111111-5.66111111111114
45460404.88333333333355.1166666666666
46411392.77222222222218.2277777777778
47342353.438888888889-11.4388888888889
48361355.3277777777785.67222222222221
49377360.66666666666716.3333333333333
50331353.777777777778-22.7777777777778
5142839830
52340350.222222222222-10.2222222222222
53352328.66666666666723.3333333333333
54461407.77777777777853.2222222222222
55221238.666666666667-17.6666666666667
56198194.7777777777783.22222222222221
5742241210
58329399.888888888889-70.8888888888889
59320360.555555555556-40.5555555555556
60375362.44444444444412.5555555555556
61364367.783333333333-3.78333333333336
62351360.894444444444-9.89444444444444
63380405.116666666667-25.1166666666667
64319357.338888888889-38.3388888888889
65322335.783333333333-13.7833333333333
66386414.894444444444-28.8944444444444
67221245.783333333333-24.7833333333333
68187201.894444444444-14.8944444444445
69343419.116666666667-76.1166666666667
70342407.005555555556-65.0055555555555
71365367.672222222222-2.67222222222222
72313369.561111111111-56.5611111111111
73356374.9-18.9
74337368.011111111111-31.0111111111111
75389412.233333333333-23.2333333333333
76326364.455555555556-38.4555555555555
77343342.90.0999999999999954
78357422.011111111111-65.0111111111111
79220252.9-32.9
80218209.0111111111118.98888888888888
81391426.233333333333-35.2333333333333
82425414.12222222222210.8777777777778
83332374.788888888889-42.7888888888889
84298376.677777777778-78.6777777777778
85360382.016666666667-22.0166666666667
86336375.127777777778-39.1277777777778
87325419.35-94.35
88393371.57222222222221.4277777777778
89301350.016666666667-49.0166666666667
90426429.127777777778-3.12777777777777
91265260.0166666666674.98333333333333
92210216.127777777778-6.12777777777776
93429433.35-4.34999999999999
94440421.23888888888918.7611111111111
95357381.905555555556-24.9055555555556
96431383.79444444444447.2055555555556
97442389.13333333333352.8666666666667
98422382.24444444444439.7555555555556
99544426.466666666667117.533333333333
100420378.68888888888941.3111111111112
101396357.13333333333338.8666666666667
102482436.24444444444445.7555555555556
103261267.133333333333-6.13333333333333
104211223.244444444444-12.2444444444444
105448440.4666666666677.53333333333333
106468428.35555555555639.6444444444444
107464389.02222222222274.9777777777778
108425390.91111111111134.0888888888889


Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
160.01636319579656920.03272639159313830.98363680420343
170.00314225435928350.006284508718566990.996857745640716
180.003325434412562950.006650868825125890.996674565587437
190.002358137142018570.004716274284037140.997641862857981
200.002073075512251390.004146151024502770.997926924487749
210.02671749612428950.0534349922485790.97328250387571
220.0167311025816780.03346220516335590.983268897418322
230.02263982405209370.04527964810418730.977360175947906
240.01261297463603770.02522594927207540.987387025363962
250.01529909433278280.03059818866556560.984700905667217
260.0094077385007720.0188154770015440.990592261499228
270.006298678215362380.01259735643072480.993701321784638
280.003232355896235350.00646471179247070.996767644103765
290.003348717938796730.006697435877593460.996651282061203
300.001698894339906310.003397788679812620.998301105660094
310.0057578004544490.0115156009088980.994242199545551
320.003320259774724170.006640519549448330.996679740225276
330.002590333040142020.005180666080284040.997409666959858
340.00148806785121390.002976135702427810.998511932148786
350.006485676334875820.01297135266975160.993514323665124
360.005097924108189310.01019584821637860.99490207589181
370.0030802949012770.006160589802553990.996919705098723
380.002159132001036890.004318264002073780.997840867998963
390.003269040383832830.006538080767665670.996730959616167
400.002757636855222080.005515273710444170.997242363144778
410.001923936087117060.003847872174234120.998076063912883
420.002140571648831580.004281143297663160.997859428351168
430.004536719878400970.009073439756801950.9954632801216
440.004348391847770290.008696783695540580.99565160815223
450.005670640040513110.01134128008102620.994329359959487
460.005160859672803050.01032171934560610.994839140327197
470.006292861853539260.01258572370707850.99370713814646
480.005461692875736230.01092338575147250.994538307124264
490.00387924646012440.00775849292024880.996120753539876
500.006293158199764940.01258631639952990.993706841800235
510.005913124351345170.01182624870269030.994086875648655
520.005339331847481160.01067866369496230.994660668152519
530.004877175160641190.009754350321282380.99512282483936
540.01183396619656720.02366793239313440.988166033803433
550.01704751088412580.03409502176825170.982952489115874
560.01642769078792490.03285538157584990.983572309212075
570.02865931472807540.05731862945615070.971340685271925
580.08619872423979850.1723974484795970.913801275760202
590.0937837663628220.1875675327256440.906216233637178
600.1228557103918570.2457114207837140.877144289608143
610.1075940008509360.2151880017018710.892405999149064
620.1077216206876490.2154432413752970.892278379312351
630.09857765330499160.1971553066099830.901422346695008
640.09080287034328740.1816057406865750.909197129656713
650.08411451581872430.1682290316374490.915885484181276
660.08187543836936310.1637508767387260.918124561630637
670.08400368094540110.1680073618908020.915996319054599
680.0833997982972510.1667995965945020.91660020170275
690.1273073960360150.2546147920720310.872692603963985
700.1292528128921480.2585056257842950.870747187107852
710.1385275990419660.2770551980839320.861472400958034
720.1320588157101250.264117631420250.867941184289875
730.1017757080051270.2035514160102540.898224291994873
740.08105562616355750.1621112523271150.918944373836442
750.06072523898406250.1214504779681250.939274761015938
760.04471735891777720.08943471783555430.955282641082223
770.04915556972196110.09831113944392220.950844430278039
780.04605868453714840.09211736907429670.953941315462852
790.03481127560659540.06962255121319070.965188724393405
800.05994982234584440.1198996446916890.940050177654156
810.0494468336682720.0988936673365440.950553166331728
820.06089116473897490.121782329477950.939108835261025
830.04334288416388240.08668576832776480.956657115836118
840.04319762419613390.08639524839226790.956802375803866
850.0285493372122980.0570986744245960.971450662787702
860.01928344340429070.03856688680858130.98071655659571
870.5876563978278590.8246872043442820.412343602172141
880.5003222571082050.999355485783590.499677742891795
890.5923419471741980.8153161056516030.407658052825802
900.5160160348964840.9679679302070320.483983965103516
910.4335216466122370.8670432932244730.566478353387763
920.3412467912774460.6824935825548920.658753208722554


Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level200.25974025974026NOK
5% type I error level410.532467532467532NOK
10% type I error level510.662337662337662NOK
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Dec/21/t1292960383pvwrau67g6movyp/104mw21292960498.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/21/t1292960383pvwrau67g6movyp/104mw21292960498.ps (open in new window)


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


http://www.freestatistics.org/blog/date/2010/Dec/21/t1292960383pvwrau67g6movyp/28uyb1292960498.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/21/t1292960383pvwrau67g6movyp/28uyb1292960498.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/21/t1292960383pvwrau67g6movyp/38uyb1292960498.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/21/t1292960383pvwrau67g6movyp/38uyb1292960498.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/21/t1292960383pvwrau67g6movyp/48uyb1292960498.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/21/t1292960383pvwrau67g6movyp/48uyb1292960498.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/21/t1292960383pvwrau67g6movyp/504gw1292960498.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/21/t1292960383pvwrau67g6movyp/504gw1292960498.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/21/t1292960383pvwrau67g6movyp/604gw1292960498.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/21/t1292960383pvwrau67g6movyp/604gw1292960498.ps (open in new window)


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


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


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