Home » date » 2009 » Nov » 20 »

ws7 link 4

*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: Fri, 20 Nov 2009 04:56:30 -0700
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2009/Nov/20/t1258718344qd2wt1onp84z0mt.htm/, Retrieved Fri, 20 Nov 2009 12:59:16 +0100
 
BibTeX entries for LaTeX users:
@Manual{KEY,
    author = {{YOUR NAME}},
    publisher = {Office for Research Development and Education},
    title = {Statistical Computations at FreeStatistics.org, URL http://www.freestatistics.org/blog/date/2009/Nov/20/t1258718344qd2wt1onp84z0mt.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:
ws7 link 4
 
Dataseries X:
» Textbox « » Textfile « » CSV «
6.3 101.9 1,7 1 1,2 1,4 6 106.2 6.3 1,7 1 1,2 6.2 81 6 6.3 1,7 1 6.4 94.7 6.2 6 6.3 1,7 6.8 101 6.4 6.2 6 6.3 7.5 109.4 6.8 6.4 6.2 6 7.5 102.3 7.5 6.8 6.4 6.2 7.6 90.7 7.5 7.5 6.8 6.4 7.6 96.2 7.6 7.5 7.5 6.8 7.4 96.1 7.6 7.6 7.5 7.5 7.3 106 7.4 7.6 7.6 7.5 7.1 103.1 7.3 7.4 7.6 7.6 6.9 102 7.1 7.3 7.4 7.6 6.8 104.7 6.9 7.1 7.3 7.4 7.5 86 6.8 6.9 7.1 7.3 7.6 92.1 7.5 6.8 6.9 7.1 7.8 106.9 7.6 7.5 6.8 6.9 8 112.6 7.8 7.6 7.5 6.8 8.1 101.7 8 7.8 7.6 7.5 8.2 92 8.1 8 7.8 7.6 8.3 97.4 8.2 8.1 8 7.8 8.2 97 8.3 8.2 8.1 8 8 105.4 8.2 8.3 8.2 8.1 7.9 102.7 8 8.2 8.3 8.2 7.6 98.1 7.9 8 8.2 8.3 7.6 104.5 7.6 7.9 8 8.2 8.3 87.4 7.6 7.6 7.9 8 8.4 89.9 8.3 7.6 7.6 7.9 8.4 109.8 8.4 8.3 7.6 7.6 8.4 111.7 8.4 8.4 8.3 7.6 8.4 98.6 8.4 8.4 8.4 8.3 8.6 96.9 8.4 8.4 8.4 8.4 8.9 95.1 8.6 8.4 8.4 8.4 8.8 97 8.9 8.6 8.4 8.4 8.3 112.7 8.8 8.9 8.6 8.4 7.5 102.9 8.3 8.8 8.9 8.6 7.2 97.4 7.5 8.3 8.8 8.9 7.4 111.4 7.2 7.5 8.3 8.8 8.8 87.4 7.4 7.2 7.5 8.3 9.3 96.8 8.8 7.4 7.2 7.5 9.3 114.1 9.3 8. 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 time3 seconds
R Server'Gwilym Jenkins' @ 72.249.127.135


Multiple Linear Regression - Estimated Regression Equation
Y[t] = + 2.80871688717935 + 0.00219088351317846X[t] + 0.68729913105026Y1[t] -0.239085441528047Y2[t] -0.0409734428967782Y3[t] + 0.21095965078892Y4[t] + 0.141196595109811M1[t] -0.242648801192167M2[t] + 0.681888267994503M3[t] + 0.334352165097872M4[t] + 0.298794143047685M5[t] + 0.308872252168863M6[t] + 0.129614560491464M7[t] + 0.324046218241749M8[t] + 0.42947025602853M9[t] + 0.248535643118973M10[t] + 0.138288439029698M11[t] -0.00505416953979656t + e[t]


Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STAT
H0: parameter = 0
2-tail p-value1-tail p-value
(Intercept)2.808716887179351.1732552.3940.0191680.009584
X0.002190883513178460.0108360.20220.8403190.42016
Y10.687299131050260.1048416.555700
Y2-0.2390854415280470.131833-1.81350.0737480.036874
Y3-0.04097344289677820.131618-0.31130.7564320.378216
Y40.210959650788920.0853422.47190.0157060.007853
M10.1411965951098110.2155670.6550.5144720.257236
M2-0.2426488011921670.22589-1.07420.2861820.143091
M30.6818882679945030.2882522.36560.0205870.010293
M40.3343521650978720.2431051.37530.173120.08656
M50.2987941430476850.2295151.30180.1969530.098476
M60.3088722521688630.2286251.3510.1807580.090379
M70.1296145604914640.2084240.62190.5359060.267953
M80.3240462182417490.2252541.43860.1544280.077214
M90.429470256028530.2227871.92770.0576770.028839
M100.2485356431189730.2223611.11770.2672580.133629
M110.1382884390296980.224110.61710.5390660.269533
t-0.005054169539796560.002206-2.29150.0247440.012372


Multiple Linear Regression - Regression Statistics
Multiple R0.871851262816224
R-squared0.760124624474244
Adjusted R-squared0.705752872688407
F-TEST (value)13.9801385739466
F-TEST (DF numerator)17
F-TEST (DF denominator)75
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation0.402113921449158
Sum Squared Residuals12.1271704367415


Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolation
Forecast
Residuals
Prediction Error
16.34.343608803627981.95639119637202
266.92434898907602-0.924348989076022
36.26.41176551366118-0.21176551366118
46.46.257569722250820.142430277749177
56.87.30310926119637-0.503109261196373
67.57.482156602586920.0178433974130835
77.57.70176192512855-0.201761925128545
87.67.7241679085156-0.124167908515603
97.67.96101999947792-0.361019999477918
107.47.89857534007669-0.498575340076686
117.37.66340654272835-0.363406542728353
127.17.51389351225011-0.413893512250115
136.97.54226937247774-0.642269372477741
146.87.031547868349-0.231547868349001
157.57.87624714500048-0.376247145000484
167.68.008041956304-0.408041956304002
177.87.86313035887635-0.0631303588763472
1887.944416241433460.0555837585665431
198.17.969440899089620.130559100910375
208.28.171380918521240.0286190814787650
218.38.36240016827003-0.0624001682700315
228.28.25845098723574-0.0584509872357365
2388.08591319864875-0.0859131986487455
247.97.840102543325640.0598974566743637
257.67.97044738930418-0.370447389304184
267.67.400387006284940.199612993715058
278.38.31603684444677-0.0160368444467706
288.48.44122924031861-0.041229240318613
298.48.28229783943960.117702160560403
308.48.238894503515470.161105496484531
318.48.16945647953820.230543520461798
328.68.376205430855180.223794569144820
338.98.610091534988490.289908465011507
348.88.586638082223650.213361917776352
358.38.35708334560868-0.0570833456086827
367.57.90242895452646-0.402428954526465
377.27.66361017622417-0.463610176224167
387.47.289852349843750.110147650156252
398.88.293238432765770.506761567234233
409.38.719168472755870.580831527244132
419.38.65390592951370.646094070486296
428.78.515890901083280.184109098916720
438.28.180034696407680.0199653035923150
448.38.269654677324020.03034532267598
458.58.56754506058587-0.067545060585873
468.68.391866639735940.208133360264065
478.58.207180696138110.292819303861888
488.27.979938228135280.220061771864714
498.17.96159689189920.138403108100807
507.97.63550231428760.264497685712404
518.68.360330843732480.239669156267524
528.78.509901576384880.190098423615119
538.78.396098673811380.303901326188622
548.58.290347279408220.209652720591777
558.48.118503565431760.281496434568241
568.58.293823451086060.206176548913937
578.78.487796549576740.212203450423255
588.78.380988965288940.319011034711064
598.68.225102269980730.374897730019273
608.57.99350594881070.506494051189299
618.38.147175063907520.152824936092481
6287.659118712810120.340881287189885
638.28.3392565420735-0.139256542073495
648.18.21603279285499-0.116032792854991
658.18.060303336804070.039696663195926
6688.02147773869463-0.0214777386946323
677.97.806838058172430.0931619418275705
687.97.90641758205816-0.00641758205815926
6988.04355687280034-0.0435568728003401
7087.907765764207570.0922342357924267
717.97.777036808774710.122963191225286
7287.533042722193150.46695727780685
737.77.78993039734206-0.0899303973420581
747.27.192337872076190.00766212792381141
757.57.76058870651227-0.260588706512269
767.37.79275222920706-0.492752229207055
7777.5183377383197-0.518337738319700
7877.26890691540859-0.268906915408587
7977.20786623049591-0.207866230495913
807.27.33820507069238-0.138205070692377
817.37.53618932350375-0.236189323503747
827.17.37571422123149-0.275714221231485
836.87.08427713812067-0.284277138120665
846.46.83708809075865-0.437088090758647
856.16.78136190521716-0.681361905217156
866.56.266904887272380.233095112727615
877.77.442535971807560.257464028192440
887.97.755304009923770.144695990076231
897.57.52281686203883-0.0228168620388276
906.97.23790981786943-0.337909817869434
916.66.94609814573584-0.346098145735842
926.97.12014496094736-0.220144960947364
937.77.431400490796850.268599509203149


Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
210.1837787096813250.3675574193626510.816221290318675
220.2764951843128430.5529903686256870.723504815687157
230.2312825554130190.4625651108260380.768717444586981
240.2282765489673330.4565530979346660.771723451032667
250.2121869491807470.4243738983614950.787813050819253
260.1532440392894970.3064880785789950.846755960710503
270.1071757023524260.2143514047048520.892824297647574
280.08141971075739120.1628394215147820.918580289242609
290.05090791678560320.1018158335712060.949092083214397
300.2278986357741850.455797271548370.772101364225815
310.3210258329780410.6420516659560820.678974167021959
320.5914615795104190.8170768409791620.408538420489581
330.5107388315413250.978522336917350.489261168458675
340.4515812189037280.9031624378074560.548418781096272
350.5351549659196960.9296900681606070.464845034080304
360.9689234813424720.06215303731505660.0310765186575283
370.996292341850430.007415316299139510.00370765814956976
380.998814096008290.002371807983418280.00118590399170914
390.9986218895197570.002756220960484990.00137811048024250
400.9986662714823230.002667457035354370.00133372851767718
410.99906707266310.001865854673799760.000932927336899878
420.9984511232785670.003097753442866370.00154887672143319
430.9993959184136880.001208163172624070.000604081586312037
440.9999006355950370.0001987288099253879.93644049626935e-05
450.9999715744368665.6851126267352e-052.8425563133676e-05
460.9999497569262870.0001004861474256255.02430737128124e-05
470.9999123755448950.0001752489102095418.76244551047705e-05
480.9998851617736060.0002296764527878630.000114838226393932
490.9998157174515420.0003685650969166850.000184282548458343
500.9998466923780020.0003066152439963690.000153307621998184
510.9996886000054880.0006227999890245390.000311399994512269
520.999555153811830.0008896923763383970.000444846188169198
530.9994172664351430.001165467129713360.000582733564856679
540.9993890476808620.001221904638275600.000610952319137801
550.99936335946540.001273281069201680.00063664053460084
560.9990627674437880.001874465112424280.000937232556212142
570.9983363048563340.003327390287332360.00166369514366618
580.9968643915926660.006271216814667410.00313560840733371
590.9951703897726020.009659220454795620.00482961022739781
600.991338496479750.01732300704049900.00866150352024951
610.9904504239647650.01909915207046910.00954957603523454
620.9851948916433820.02961021671323520.0148051083566176
630.9901364615584840.01972707688303180.00986353844151592
640.9925691741856030.01486165162879430.00743082581439714
650.9898301577712470.02033968445750670.0101698422287534
660.9907892576974620.01842148460507690.00921074230253845
670.9879890180026230.02402196399475370.0120109819973769
680.9757095422343120.0485809155313750.0242904577656875
690.9534380303710670.09312393925786630.0465619696289332
700.9055442536996540.1889114926006930.0944557463003464
710.9306151608507350.1387696782985300.0693848391492648
720.9027368986925580.1945262026148830.0972631013074415


Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level230.442307692307692NOK
5% type I error level320.615384615384615NOK
10% type I error level340.653846153846154NOK
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2009/Nov/20/t1258718344qd2wt1onp84z0mt/10czb01258718185.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/20/t1258718344qd2wt1onp84z0mt/10czb01258718185.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Nov/20/t1258718344qd2wt1onp84z0mt/1zloc1258718185.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/20/t1258718344qd2wt1onp84z0mt/1zloc1258718185.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Nov/20/t1258718344qd2wt1onp84z0mt/2klq71258718185.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/20/t1258718344qd2wt1onp84z0mt/2klq71258718185.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Nov/20/t1258718344qd2wt1onp84z0mt/31ce51258718185.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/20/t1258718344qd2wt1onp84z0mt/31ce51258718185.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Nov/20/t1258718344qd2wt1onp84z0mt/4q43b1258718185.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/20/t1258718344qd2wt1onp84z0mt/4q43b1258718185.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Nov/20/t1258718344qd2wt1onp84z0mt/5lf7p1258718185.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/20/t1258718344qd2wt1onp84z0mt/5lf7p1258718185.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Nov/20/t1258718344qd2wt1onp84z0mt/6lgf31258718185.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/20/t1258718344qd2wt1onp84z0mt/6lgf31258718185.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Nov/20/t1258718344qd2wt1onp84z0mt/7iyyt1258718185.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/20/t1258718344qd2wt1onp84z0mt/7iyyt1258718185.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Nov/20/t1258718344qd2wt1onp84z0mt/8k37o1258718185.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/20/t1258718344qd2wt1onp84z0mt/8k37o1258718185.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Nov/20/t1258718344qd2wt1onp84z0mt/9e8i51258718185.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/20/t1258718344qd2wt1onp84z0mt/9e8i51258718185.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