Home » date » 2009 » Dec » 20 »

*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, 20 Dec 2009 11:09:00 -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/Dec/20/t1261332735n4530u2khclw4rm.htm/, Retrieved Sun, 20 Dec 2009 19:12:28 +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/Dec/20/t1261332735n4530u2khclw4rm.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 «
128,7 0 136,9 0 156,9 0 109,1 0 122,3 0 123,9 0 90,9 0 77,9 0 120,3 0 118,9 0 125,5 0 98,9 0 102,9 0 105,9 0 117,6 0 113,6 0 115,9 0 118,9 0 77,6 0 81,2 0 123,1 0 136,6 0 112,1 0 95,1 0 96,3 0 105,7 0 115,8 0 105,7 0 105,7 0 111,1 0 82,4 0 60 0 107,3 0 99,3 0 113,5 0 108,9 0 100,2 0 103,9 0 138,7 0 120,2 0 100,2 0 143,2 0 70,9 0 85,2 0 133 0 136,6 0 117,9 0 106,3 0 122,3 0 125,5 0 148,4 0 126,3 0 99,6 0 140,4 0 80,3 0 92,6 0 138,5 0 110,9 0 119,6 0 105 0 109 0 129,4 0 148,6 0 101,4 0 134,8 0 143,7 0 81,6 0 90,3 0 141,5 0 140,7 0 140,2 0 100,2 0 125,7 0 119,6 0 134,7 0 109 0 116,3 0 146,9 0 97,4 0 89,4 0 132,1 1 139,8 1 129 1 112,5 1 121,9 1 121,7 1 123,1 1 131,6 1 119,3 1 132,5 1 98,3 1 85,1 1 131,7 1 129,3 1 90,7 1 78,6 1 68,9 1 79,1 1 83,5 1 74,1 1 59,7 1 93,3 1 61,3 1 56,6 1 98,5 1
 
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
autoprod[t] = + 100.936662011173 -16.1842178770950crisis[t] + 7.6478358421271M1[t] + 13.3330785743844M2[t] + 28.7738768621974M3[t] + 9.11467515001035M4[t] + 7.13325121560109M5[t] + 27.0740495034140M6[t] -18.9073744309952M7[t] -21.4665761431823M8[t] + 25.5613574643079M9[t] + 25.9656256465963M10[t] + 17.9453128232982M11[t] + 0.0703128232981583t + e[t]


Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STAT
H0: parameter = 0
2-tail p-value1-tail p-value
(Intercept)100.9366620111736.45624915.633900
crisis-16.18421787709505.392988-3.0010.0034730.001736
M17.64783584212717.6904890.99450.3226390.161319
M213.33307857438447.6882181.73420.0862650.043132
M328.77387686219747.6866933.74330.0003180.000159
M49.114675150010357.6859161.18590.2387520.119376
M57.133251215601097.6858870.92810.3558120.177906
M627.07404950341407.6866043.52220.0006710.000336
M7-18.90737443099527.68807-2.45930.0158110.007905
M8-21.46657614318237.690282-2.79140.0063950.003198
M925.56135746430797.691823.32320.0012830.000642
M1025.96562564659637.9094013.28290.0014590.000729
M1117.94531282329827.9083122.26920.0256210.012811
t0.07031282329815830.0757970.92760.3560450.178022


Multiple Linear Regression - Regression Statistics
Multiple R0.75620610559094
R-squared0.571847674133016
Adjusted R-squared0.510683056152018
F-TEST (value)9.34932143793777
F-TEST (DF numerator)13
F-TEST (DF denominator)91
p-value5.83000314691162e-12
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation15.8158969812649
Sum Squared Residuals22762.9763563004


Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolation
Forecast
Residuals
Prediction Error
1128.7108.65481067659820.0451893234017
2136.9114.41036623215422.4896337678461
3156.9129.92147734326526.9785226567349
4109.1110.332588454376-1.23258845437614
5122.3108.42147734326513.8785226567350
6123.9128.432588454376-4.53258845437615
790.982.5214773432658.37852265673495
877.980.0325884543762-2.13258845437617
9120.3127.130834885164-6.83083488516444
10118.9127.605415890751-8.70541589075111
11125.5119.6554158907515.84458410924892
1298.9101.780415890751-2.88041589075106
13102.9109.498564556176-6.5985645561763
14105.9115.254120111732-9.35412011173182
15117.6130.765231222843-13.1652312228429
16113.6111.1763423339542.42365766604592
17115.9109.2652312228436.63476877715704
18118.9129.276342333954-10.3763423339541
1977.683.365231222843-5.76523122284295
2081.280.8763423339540.323657666045935
21123.1127.974588764742-4.87458876474241
22136.6128.4491697703298.15083022967101
23112.1120.499169770329-8.399169770329
2495.1102.624169770329-7.52416977032899
2596.3110.342318435754-14.0423184357542
26105.7116.097873991310-10.3978739913097
27115.8131.608985102421-15.8089851024208
28105.7112.020096213532-6.32009621353197
29105.7110.108985102421-4.40898510242087
30111.1130.120096213532-19.0200962135320
3182.484.2089851024209-1.80898510242084
326081.720096213532-21.7200962135320
33107.3128.818342644320-21.5183426443203
3499.3129.292923649907-29.9929236499069
35113.5121.342923649907-7.84292364990689
36108.9103.4679236499075.43207635009313
37100.2111.186072315332-10.9860723153321
38103.9116.941627870888-13.0416278708876
39138.7132.4527389819996.24726101800124
40120.2112.8638500931107.33614990689013
41100.2110.952738981999-10.7527389819988
42143.2130.9638500931112.2361499068901
4370.985.0527389819988-14.1527389819988
4485.282.56385009310992.63614990689013
45133129.6620965238983.33790347610179
46136.6130.1366775294856.46332247051521
47117.9122.186677529485-4.28667752948478
48106.3104.3116775294851.98832247051522
49122.3112.0298261949110.2701738050900
50125.5117.7853817504667.71461824953444
51148.4133.29649286157715.1035071384234
52126.3113.70760397268812.5923960273122
5399.6111.796492861577-12.1964928615767
54140.4131.8076039726888.59239602731223
5580.385.8964928615766-5.59649286157665
5692.683.40760397268789.19239602731222
57138.5130.5058504034767.9941495965239
58110.9130.980431409063-20.0804314090627
59119.6123.030431409063-3.4304314090627
60105105.155431409063-0.155431409062682
61109112.873580074488-3.87358007448792
62129.4118.62913563004310.7708643699566
63148.6134.14024674115514.4597532588454
64101.4114.551357852266-13.1513578522657
65134.8112.64024674115522.1597532588454
66143.7132.65135785226611.0486421477343
6781.686.7402467411546-5.14024674115456
6890.384.25135785226576.04864214773432
69141.5131.34960428305410.150395716946
70140.7131.8241852886418.8758147113594
71140.2123.87418528864116.3258147113594
72100.2105.999185288641-5.79918528864058
73125.7113.71733395406611.9826660459342
74119.6119.4728895096210.127110490378640
75134.7134.984000620732-0.284000620732461
76109115.395111731844-6.39511173184358
77116.3113.4840006207322.81599937926753
78146.9133.49511173184413.4048882681564
7997.487.58400062073259.81599937926755
8089.485.09511173184364.30488826815643
81132.1116.00914028553716.0908597144631
82139.8116.48372129112423.3162787088765
83129108.53372129112420.4662787088765
84112.590.658721291123521.8412787088765
85121.998.376869956548723.5231300434513
86121.7104.13242551210417.5675744878957
87123.1119.6435366232153.45646337678462
88131.6100.05464773432631.5453522656735
89119.398.143536623215421.1564633767846
90132.5118.15464773432714.3453522656735
9198.372.243536623215426.0564633767846
9285.169.754647734326515.3453522656735
93131.7116.85289416511514.8471058348851
94129.3117.32747517070111.9725248292986
9590.7109.377475170701-18.6774751707014
9678.691.5024751707014-12.9024751707014
9768.999.2206238361266-30.3206238361266
9879.1104.976179391682-25.8761793916822
9983.5120.487290502793-36.9872905027933
10074.1100.898401613904-26.7984016139044
10159.798.9872905027933-39.2872905027933
10293.3118.998401613904-25.6984016139044
10361.373.0872905027933-11.7872905027933
10456.670.5984016139044-13.9984016139044
10598.5117.696648044693-19.1966480446927


Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
170.5119779368518940.9760441262962120.488022063148106
180.3981600437516540.7963200875033080.601839956248346
190.2610217483513710.5220434967027420.738978251648629
200.2357211470943190.4714422941886370.764278852905681
210.1941578944168980.3883157888337970.805842105583102
220.2595664649234730.5191329298469460.740433535076527
230.179346374815280.358692749630560.82065362518472
240.1209296202037060.2418592404074110.879070379796294
250.08023193990079640.1604638798015930.919768060099204
260.04902493616545680.09804987233091360.950975063834543
270.03160131729087730.06320263458175470.968398682709123
280.02159835446812050.04319670893624110.97840164553188
290.01203903875668020.02407807751336030.98796096124332
300.007727554856865490.01545510971373100.992272445143135
310.005612517184618910.01122503436923780.994387482815381
320.003987482556098950.00797496511219790.996012517443901
330.002772996757242520.005545993514485050.997227003242757
340.004188826646023640.008377653292047280.995811173353976
350.003021805663958050.00604361132791610.996978194336042
360.006415419980787360.01283083996157470.993584580019213
370.004793852215525690.009587704431051380.995206147784474
380.003499529352112470.006999058704224940.996500470647887
390.006049837578626070.01209967515725210.993950162421374
400.00924278780783880.01848557561567760.990757212192161
410.006784556748519770.01356911349703950.99321544325148
420.02531355203886550.05062710407773090.974686447961135
430.02433003121128720.04866006242257450.975669968788713
440.02971407107774120.05942814215548230.970285928922259
450.03935424821957470.07870849643914950.960645751780425
460.0490754912737280.0981509825474560.950924508726272
470.04266835232081120.08533670464162250.957331647679189
480.03496228027944540.06992456055889070.965037719720555
490.03538693327311720.07077386654623450.964613066726883
500.03160077163303410.06320154326606830.968399228366966
510.02925380089843690.05850760179687380.970746199101563
520.02437175598497780.04874351196995570.975628244015022
530.02975828921480490.05951657842960980.970241710785195
540.02888606056622860.05777212113245710.971113939433771
550.03510542406776310.07021084813552620.964894575932237
560.03734251233003470.07468502466006930.962657487669965
570.03839462329556410.07678924659112820.961605376704436
580.1181542564419070.2363085128838140.881845743558093
590.1346320211484890.2692640422969780.865367978851511
600.1315854591912880.2631709183825750.868414540808712
610.1534762166068960.3069524332137910.846523783393105
620.1353678495185120.2707356990370240.864632150481488
630.1103286348610460.2206572697220930.889671365138954
640.2240165133820090.4480330267640170.775983486617991
650.227147364982830.454294729965660.77285263501717
660.2277066590862390.4554133181724780.772293340913761
670.5166434234282610.9667131531434780.483356576571739
680.6831908598599890.6336182802800230.316809140140012
690.6979172249347210.6041655501305580.302082775065279
700.708454402994110.5830911940117810.291545597005890
710.6879511674090980.6240976651818050.312048832590902
720.7004450284788210.5991099430423580.299554971521179
730.6542969189072460.6914061621855080.345703081092754
740.5833324739850360.8333350520299280.416667526014964
750.5394990599192880.9210018801614240.460500940080712
760.5445826274646420.9108347450707150.455417372535358
770.4636335975012450.9272671950024890.536366402498755
780.4413568125470530.8827136250941060.558643187452947
790.3651114747742410.7302229495484810.63488852522576
800.2837761291266590.5675522582533190.716223870873341
810.7204900343742830.5590199312514340.279509965625717
820.9199147559345440.1601704881309110.0800852440654555
830.871447034336630.2571059313267410.128552965663370
840.8276004693504340.3447990612991320.172399530649566
850.782044516829810.4359109663403790.217955483170190
860.6660337304036350.667932539192730.333966269596365
870.5435938670344450.912812265931110.456406132965555
880.5531401474267050.893719705146590.446859852573295


Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level60.0833333333333333NOK
5% type I error level160.222222222222222NOK
10% type I error level320.444444444444444NOK
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2009/Dec/20/t1261332735n4530u2khclw4rm/10e4kj1261332533.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/20/t1261332735n4530u2khclw4rm/10e4kj1261332533.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/20/t1261332735n4530u2khclw4rm/1rp791261332533.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/20/t1261332735n4530u2khclw4rm/1rp791261332533.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/20/t1261332735n4530u2khclw4rm/2t9251261332533.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/20/t1261332735n4530u2khclw4rm/2t9251261332533.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/20/t1261332735n4530u2khclw4rm/3ydbt1261332533.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/20/t1261332735n4530u2khclw4rm/3ydbt1261332533.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/20/t1261332735n4530u2khclw4rm/42g6v1261332533.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/20/t1261332735n4530u2khclw4rm/42g6v1261332533.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/20/t1261332735n4530u2khclw4rm/50oz51261332533.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/20/t1261332735n4530u2khclw4rm/50oz51261332533.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/20/t1261332735n4530u2khclw4rm/6wr7z1261332533.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/20/t1261332735n4530u2khclw4rm/6wr7z1261332533.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/20/t1261332735n4530u2khclw4rm/7xel91261332533.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/20/t1261332735n4530u2khclw4rm/7xel91261332533.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/20/t1261332735n4530u2khclw4rm/8l3ot1261332533.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/20/t1261332735n4530u2khclw4rm/8l3ot1261332533.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/20/t1261332735n4530u2khclw4rm/97ahe1261332533.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/20/t1261332735n4530u2khclw4rm/97ahe1261332533.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