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 15:51:03 +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/t129294869888jduzolpeeiyw8.htm/, Retrieved Tue, 21 Dec 2010 17:25:01 +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/t129294869888jduzolpeeiyw8.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 «
1.4562 8.1000 7.9000 8.7000 104.5000 2443.2700 16.2000 16.3000 3.0000 -12.0000 65.0000 1.4268 8.3000 8.1000 8.9000 89.1000 2293.4100 12.5000 13.6000 6.0000 -11.0000 55.0000 1.4088 8.1000 8.3000 8.9000 82.6000 2070.8300 14.8000 14.3000 7.0000 -11.0000 57.0000 1.4016 7.4000 8.1000 8.1000 102.7000 2029.6000 15.4000 15.5000 -4.0000 -17.0000 57.0000 1.3650 7.3000 7.4000 8.0000 91.8000 2052.0200 13.6000 13.9000 -5.0000 -18.0000 57.0000 1.3190 7.7000 7.3000 8.3000 94.1000 1864.4400 14.2000 14.3000 -7.0000 -19.0000 65.0000 1.3050 8.0000 7.7000 8.5000 103.1000 1670.0700 15.0000 15.8000 -10.0000 -22.0000 69.0000 1.2785 8.0000 8.0000 8.7000 93.2000 1810.9900 14.1000 14.5000 -21.0000 -24.0000 70.0000 1.3239 7.7000 8.0000 8.6000 91.0000 1905.4100 13.7000 15.1000 -22.0000 -24.0000 71.0000 1.3449 6.9000 7.7000 8.3000 94.3000 1862.8300 14.4000 15.8000 -16.0000 -20.0000 71.0000 1.2732 6.6000 6.9000 7.9000 99.4000 2014.4500 15.6000 17.2000 -25.0000 -25.0000 73.0000 1.3322 6.9000 6.6000 7.9000 115.7000 2197.8200 19.7 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 time7 seconds
R Server'RServer@AstonUniversity' @ vre.aston.ac.uk


Multiple Linear Regression - Estimated Regression Equation
WER[t] = -2.57593064449642 -0.0525602121412567WSK[t] + 0.754726043505015`WER(d-1)`[t] + 0.386600312376373`WER(d-12)`[t] + 0.00616360269856735INP[t] + 0.000325014145383515BE2[t] + 0.0104056299362115Uit[t] -0.0227331712258726INV[t] + 0.0171781802564919`CE-AES`[t] -0.0152629886526889`CE-CV`[t] + 0.00228401340448317`CE-WER`[t] + e[t]


Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STAT
H0: parameter = 0
2-tail p-value1-tail p-value
(Intercept)-2.575930644496420.768842-3.35040.0011630.000581
WSK-0.05256021214125670.324036-0.16220.8714930.435746
`WER(d-1)`0.7547260435050150.0504614.957100
`WER(d-12)`0.3866003123763730.0747485.1721e-061e-06
INP0.006163602698567350.0053691.1480.2538990.126949
BE20.0003250141453835159e-053.62320.0004720.000236
Uit0.01040562993621150.0503960.20650.8368650.418433
INV-0.02273317122587260.05169-0.43980.661090.330545
`CE-AES`0.01717818025649190.0060632.83340.0056360.002818
`CE-CV`-0.01526298865268890.011471-1.33050.1865670.093284
`CE-WER`0.002284013404483170.0034390.66410.5082240.254112


Multiple Linear Regression - Regression Statistics
Multiple R0.929644126482349
R-squared0.864238201903129
Adjusted R-squared0.849795457424738
F-TEST (value)59.8389179560861
F-TEST (DF numerator)10
F-TEST (DF denominator)94
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation0.297710738998776
Sum Squared Residuals8.33137830682857


Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolation
Forecast
Residuals
Prediction Error
18.18.29265521881706-0.192655218817059
28.38.415149808463-0.115149808463007
38.18.48440197102304-0.384401971023039
47.48.0166245485608-0.616624548560796
57.37.40741128683155-0.107411286831546
67.77.399875523615070.300124476384933
787.749736497227920.250263502772079
887.903686608567570.0963133914324344
97.77.84707193180696-0.147071931806962
106.97.54345889520785-0.643458895207855
116.66.77645918512078-0.17645918512078
126.96.671247329983230.228752670016769
137.57.128399032071020.371600967928981
147.97.515000920277020.384999079722978
157.77.663062673579850.0369373264201524
166.57.31643228740354-0.816432287403536
176.16.46590361258185-0.365903612581846
186.46.40435916830324-0.00435916830323796
196.86.712449856516250.0875501434837498
207.17.1066703343962-0.00667033439620104
217.37.168286743813230.131713256186766
227.27.019169373643590.180830626356414
2376.905668470399090.0943315296009105
2477.00328990836448-0.00328990836448503
2577.27321957647593-0.273219576475927
267.37.36830191971521-0.0683019197152102
277.57.54299276653779-0.0429927665377928
287.27.56508085729152-0.365080857291522
297.77.17911187114440.520888128855604
3087.619986894864960.380013105135042
317.98.00481740743841-0.104817407438413
3287.963195318485920.0368046815140762
3388.0973650306042-0.0973650306041957
347.98.02979728047357-0.12979728047357
357.97.90516660227695-0.00516660227694742
3687.941036944305970.0589630556940319
378.18.007563762561730.0924362374382648
388.17.971464850157010.128535149842987
398.27.893459347586960.306540652413034
4088.05394496528462-0.0539449652846225
418.38.091638732490650.208361267509347
428.58.435795123243470.0642048767565263
438.68.567222238930050.0327777610699528
448.78.617852230607820.0821477693921784
458.78.624702299598370.0752977004016266
468.58.54627348499163-0.0462734849916292
478.48.40543692931311-0.00543692931311358
488.58.36059908376270.139400916237309
498.78.50177563724690.198224362753104
508.78.418033570815660.281966429184342
518.68.46703138387490.132968616125111
527.98.39026060830668-0.490260608306676
538.17.924688110868880.175311889131122
548.28.22751789428266-0.0275178942826648
558.58.41087280651620.089127193483804
568.68.71263616317767-0.112636163177673
578.58.67626750388815-0.176267503888146
588.38.54268309060236-0.242683090602365
598.28.36611858008647-0.166118580086469
608.78.324125531556780.37587446844322
619.38.735113899347060.564886100652942
629.39.105240180797510.194759819202487
638.89.02875417026727-0.228754170267271
647.48.42803208949464-1.02803208949464
657.27.48090964152376-0.28090964152376
667.57.368156629467840.131843370532158
678.37.76148915866530.538510841334707
688.88.399567998340420.400432001659585
698.98.704213649485510.195786350514487
708.68.62229276904944-0.0222927690494447
718.48.351981690256460.0480183097435403
728.48.45057160394317-0.0505716039431707
738.48.60057761136297-0.20057761136297
748.48.5286008257302-0.128600825730197
758.38.274165093930970.0258349060690335
767.67.69473932431204-0.0947393243120431
777.67.057426124072640.542573875927363
787.97.262080169244090.637919830755915
7987.631747886527050.368252113472954
808.27.713980950466350.486019049533648
818.38.040607702375960.25939229762404
828.27.987407457805070.212592542194925
838.18.037180627891660.0628193721083405
8488.03268557668898-0.032685576688981
857.87.9406108315492-0.140610831549197
867.67.69770267845844-0.0977026784584374
877.57.484892758171610.0151072418283927
886.87.37556351200715-0.575563512007151
896.96.98099484623923-0.080994846239232
907.17.1778906988426-0.0778906988425973
917.37.30607468092066-0.00607468092066037
927.47.51995053896731-0.11995053896731
937.67.590439382334480.00956061766551647
947.67.64177745034414-0.0417774503441385
957.57.61176252596301-0.111762525963013
967.57.406664649426690.0933353505733095
976.87.24633541148015-0.446335411480155
986.46.80407907912955-0.404079079129547
996.26.41950399451627-0.219503994516271
10066.08312999138659-0.0831299913865905
1016.35.937344150551050.362655849448949
1026.36.22529756349430.0747024365056934
1036.16.31660085754083-0.216600857540832
1046.16.21828691635673-0.118286916356734
1056.36.273067065333210.0269329346667916


Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
140.5754478514140810.8491042971718390.424552148585919
150.4052398713913640.8104797427827280.594760128608636
160.772969561261670.4540608774766580.227030438738329
170.9115059289126720.1769881421746550.0884940710873275
180.9005456793207720.1989086413584570.0994543206792284
190.8565912338547940.2868175322904130.143408766145206
200.7943844355514020.4112311288971950.205615564448598
210.8666284961574180.2667430076851640.133371503842582
220.9052693798869330.1894612402261340.094730620113067
230.8809598068397570.2380803863204860.119040193160243
240.8489807682639470.3020384634721060.151019231736053
250.9028285509901330.1943428980197350.0971714490098674
260.8803397973184040.2393204053631930.119660202681597
270.861005879891410.2779882402171810.138994120108591
280.8633315555363060.2733368889273870.136668444463694
290.8839268208215610.2321463583568770.116073179178439
300.8933268887552270.2133462224895450.106673111244773
310.8659764925877130.2680470148245740.134023507412287
320.8270403594783180.3459192810433640.172959640521682
330.7880327220813250.4239345558373490.211967277918675
340.7473993401830050.5052013196339910.252600659816995
350.7208885951689490.5582228096621020.279111404831051
360.6671747097791320.6656505804417350.332825290220868
370.6342184385004680.7315631229990630.365781561499532
380.580236263308240.839527473383520.41976373669176
390.5936966876034270.8126066247931460.406303312396573
400.5292130550117920.9415738899764160.470786944988208
410.5184193697726740.9631612604546520.481580630227326
420.460107782114860.920215564229720.53989221788514
430.3995290838199420.7990581676398840.600470916180058
440.3473514178600220.6947028357200430.652648582139978
450.3008369591416430.6016739182832870.699163040858356
460.2954930339189370.5909860678378740.704506966081063
470.2433334988844990.4866669977689990.756666501115501
480.2622759836476050.524551967295210.737724016352395
490.3049560971274710.6099121942549420.695043902872529
500.3380324160898410.6760648321796820.661967583910159
510.3135193406479970.6270386812959940.686480659352003
520.3484751403775850.6969502807551710.651524859622415
530.3010156050962220.6020312101924450.698984394903778
540.2487895987738850.4975791975477690.751210401226115
550.2038258001225040.4076516002450080.796174199877496
560.1715423161478110.3430846322956220.828457683852189
570.1370181935673510.2740363871347030.862981806432649
580.1261101226675670.2522202453351330.873889877332433
590.1105541340236130.2211082680472270.889445865976387
600.1405963238973080.2811926477946160.859403676102692
610.514808727333460.970382545333080.48519127266654
620.7025554727843680.5948890544312640.297444527215632
630.7401415459148910.5197169081702190.259858454085109
640.9901466738972630.01970665220547340.00985332610273668
650.995016261040450.009967477919100930.00498373895955046
660.996143772109290.007712455781420670.00385622789071033
670.996229513729660.007540972540679510.00377048627033976
680.9976973801841360.004605239631727590.0023026198158638
690.999584462011740.0008310759765183730.000415537988259186
700.9992222567893590.001555486421282570.000777743210641286
710.999048367365980.001903265268041570.000951632634020785
720.998896682024750.002206635950500470.00110331797525023
730.9985884674518370.002823065096324910.00141153254816246
740.9978637409834170.004272518033165530.00213625901658276
750.9961854978200130.00762900435997450.00381450217998725
760.9943044117778030.0113911764443940.00569558822219701
770.9957539561074420.008492087785116840.00424604389255842
780.999460699424670.001078601150658270.000539300575329135
790.9991512699327530.001697460134494430.000848730067247217
800.9986025421776430.002794915644714290.00139745782235714
810.9973822758652720.005235448269456330.00261772413472816
820.9949711977965490.01005760440690250.00502880220345125
830.9958696613395670.008260677320866750.00413033866043338
840.9916644527753980.01667109444920360.00833554722460181
850.9842330654285940.03153386914281240.0157669345714062
860.9985050455147640.002989908970471590.00149495448523579
870.9971124443252380.005775111349524670.00288755567476233
880.9949573753375020.01008524932499570.00504262466249784
890.988345201990.02330959602000050.0116547980100002
900.9655213859556280.0689572280887450.0344786140443725
910.9665103729286560.06697925414268810.033489627071344


Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level190.243589743589744NOK
5% type I error level260.333333333333333NOK
10% type I error level280.358974358974359NOK
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Dec/21/t129294869888jduzolpeeiyw8/10jcwa1292946652.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/21/t129294869888jduzolpeeiyw8/10jcwa1292946652.ps (open in new window)


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


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


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


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


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


http://www.freestatistics.org/blog/date/2010/Dec/21/t129294869888jduzolpeeiyw8/6xtgm1292946652.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/21/t129294869888jduzolpeeiyw8/6xtgm1292946652.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/21/t129294869888jduzolpeeiyw8/783fp1292946652.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/21/t129294869888jduzolpeeiyw8/783fp1292946652.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/21/t129294869888jduzolpeeiyw8/883fp1292946652.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/21/t129294869888jduzolpeeiyw8/883fp1292946652.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/21/t129294869888jduzolpeeiyw8/983fp1292946652.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/21/t129294869888jduzolpeeiyw8/983fp1292946652.ps (open in new window)


 
Parameters (Session):
par1 = 2 ; par2 = Do not include Seasonal Dummies ; par3 = No Linear Trend ;
 
Parameters (R input):
par1 = 2 ; 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