Home » date » 2010 » Dec » 12 »

*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, 12 Dec 2010 18:44:50 +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/12/t12921793715d7fgb11lyac8tx.htm/, Retrieved Sun, 12 Dec 2010 19:43: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/12/t12921793715d7fgb11lyac8tx.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 «
50556 -9 0 8,3 1,2 43901 -13 4 8,2 1,7 48572 -18 5 8 1,8 43899 -11 -7 7,9 1,5 37532 -9 -2 7,6 1 40357 -10 1 7,6 1,6 35489 -13 3 8,3 1,5 29027 -11 -2 8,4 1,8 34485 -5 -6 8,4 1,8 42598 -15 10 8,4 1,6 30306 -6 -9 8,4 1,9 26451 -6 0 8,6 1,7 47460 -3 -3 8,9 1,6 50104 -1 -2 8,8 1,3 61465 -3 2 8,3 1,1 53726 -4 1 7,5 1,9 39477 -6 2 7,2 2,6 43895 0 -6 7,4 2,3 31481 -4 4 8,8 2,4 29896 -2 -2 9,3 2,2 33842 -2 0 9,3 2 39120 -6 4 8,7 2,9 33702 -7 1 8,2 2,6 25094 -6 -1 8,3 2,3 51442 -6 0 8,5 2,3 45594 -3 -3 8,6 2,6 52518 -2 -1 8,5 3,1 48564 -5 3 8,2 2,8 41745 -11 6 8,1 2,5 49585 -11 0 7,9 2,9 32747 -11 0 8,6 3,1 33379 -10 -1 8,7 3,1 35645 -14 4 8,7 3,2 37034 -8 -6 8,5 2,5 35681 -9 1 8,4 2,6 20972 -5 -4 8,5 2,9 58552 -1 -4 8,7 2,6 54955 -2 1 8,7 2,4 65540 -5 3 8,6 1,7 51570 -4 -1 8,5 2 51145 -6 2 8,3 2,2 46641 -2 -4 8 1,9 35704 -2 0 8,2 1,6 33253 -2 0 8,1 1,6 35193 -2 0 8,1 1,2 41668 2 -4 8 1,2 34865 1 1 7,9 1,5 21210 -8 9 7,9 1,6 56126 -1 -7 8 1,7 49231 1 -2 8 1,8 59723 -1 2 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'George Udny Yule' @ 72.249.76.132
R Framework
error message
The field 'Names of X columns' contains a hard return which cannot be interpreted.
Please, resubmit your request without hard returns in the 'Names of X columns'.


Multiple Linear Regression - Estimated Regression Equation
Inschrijvingen_met_transit[t] = + 45154.1899984168 + 331.286415273221Consumentenvertrouwen[t] + 33.1752327449542Evolutie_consumentenvertrouwen[t] -524.465533822917Totaal_Werkloosheid[t] + 549.593645272708`Algemene_index `[t] + 68.6401600734777t + e[t]


Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STAT
H0: parameter = 0
2-tail p-value1-tail p-value
(Intercept)45154.189998416817817.6222362.53420.0131480.006574
Consumentenvertrouwen331.286415273221189.5656321.74760.084230.042115
Evolutie_consumentenvertrouwen33.1752327449542329.5679530.10070.9200610.46003
Totaal_Werkloosheid-524.4655338229172011.101885-0.26080.7949040.397452
`Algemene_index `549.593645272708844.6817170.65070.5170680.258534
t68.640160073477750.6114961.35620.1787080.089354


Multiple Linear Regression - Regression Statistics
Multiple R0.242329991256108
R-squared0.0587238246621852
Adjusted R-squared0.00202044060569018
F-TEST (value)1.03563174648760
F-TEST (DF numerator)5
F-TEST (DF denominator)83
p-value0.402276300608291
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation10405.2880891738
Sum Squared Residuals8986411678.15228


Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolation
Forecast
Residuals
Prediction Error
15055638547.700864628212008.2991353718
24390137751.13967060746149.86032939265
34857236356.375458351512215.6245416485
44389938233.48619219865665.51380780141
53753239013.1181840538-1481.11818405380
64035739179.75381425261177.24618574745
73548937898.7999557930-2409.79995579296
82902738576.5683228876-9549.56832288763
93448540500.2260436206-6015.22604362062
104259837676.88704582664921.1129541734
113030640261.6536147868-9955.65361478676
122645140414.0590337457-13963.0590337457
134746041164.73371672986295.26628327017
145010441816.69039989528287.30960010482
156146541507.772698259019957.2273017410
165372642071.198553590811654.8014464092
173947742052.4963277005-2575.49632770051
184389543573.6819171073321.318082892708
193148141969.6363607126-10488.6363607126
202989642129.6464588968-12233.6464588968
213384242154.7183554057-8312.71835540565
223912041840.2273864052-2720.22738640525
233370241575.4101063003-7873.41010630029
242509441691.661569193-16597.6615691930
255144241688.58385524689753.41614475318
264559442763.98910310462830.01089689538
275251843557.50951995998960.49048004012
284856442757.45293175865806.54706824143
294174540825.4687582281919.531241771939
304958541019.78808670558565.21191329452
313274740831.2211021575-8084.22110215746
323337941145.5258913769-7766.52589137691
333564540109.8559186095-4464.85591860955
343703441554.6397979465-4520.6397979465
353568141631.626089871-5950.626089871
362097242971.9672875121-21999.9672875121
375855244095.981908332114456.0180916679
385495543889.293087802611065.7069121974
396554042698.155469237722841.8445307623
405157043182.70576056878387.29423943134
415114542903.11062414978241.88937585031
424664144090.30661541142550.69338458861
433570444021.8765061183-8317.87650611829
443325344142.9632195741-10889.9632195741
453519343991.7659215384-8798.76592153845
464166845305.2973651073-3637.29736510729
473486545425.8519205964-10560.8519205964
482121042833.2755696978-21623.2755696978
495612644692.629723909511433.3702760905
504923145644.67824278153586.32175721849
515972345235.893056670714487.1069433293
524810346080.06974545672022.93025454327
534747246130.77844127561341.22155872441
545049746163.54018573234333.45981426774
554005945500.4024523846-5441.40245238465
563414945144.5959776227-10995.5959776227
573686045557.2380232072-8697.2380232072
584635646308.704917499847.2950825001558
593657744708.4575843113-8131.4575843113
602387245742.3414675731-21870.3414675731
615727645514.851098296711761.1489017033
625638946571.32681175699817.6731882431
635765747336.507246430310320.4927535697
646230046312.570160865315987.4298391347
654892946359.2203303222569.77966967797
665116845885.25763348355282.74236651648
673963644716.9256869503-5080.92568695033
683321344935.7478171895-11722.7478171895
693812745931.7063858659-7804.70638586585
704329143556.8119552787-265.811955278683
713060041147.4841684617-10547.4841684617
722195639723.7781344424-17767.7781344424
734803340598.99798828227434.00201171778
744614839263.89246371146884.10753628856
755073638485.359953950612250.6400460494
764811439307.56213922758806.43786077254
773839039997.0788806321-1607.07888063211
784411240026.19381639554085.80618360447
793628739729.2383309026-3442.23833090257
803033342009.4619928715-11676.4619928715
813590842162.2091980702-6254.20919807015
824000542147.5500114345-2142.55001143449
833526343273.871584565-8010.87158456498
842659141928.3575420670-15337.3575420670
854970941838.65997185067870.3400281494
864784041909.8129430695930.18705693094
876478143229.162220236421551.8377797636
885780245014.561229732912787.4387702671
894815444190.65812367313963.34187632693


Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
90.08835282285817430.1767056457163490.911647177141826
100.1268704705718070.2537409411436140.873129529428193
110.06315865901766540.1263173180353310.936841340982335
120.03363222030947310.06726444061894610.966367779690527
130.1734463780517870.3468927561035730.826553621948213
140.1882351737138610.3764703474277220.811764826286139
150.3315009431261400.6630018862522790.66849905687386
160.341248433746350.68249686749270.65875156625365
170.2611078239449340.5222156478898690.738892176055066
180.1944542696570150.388908539314030.805545730342985
190.1610902245674890.3221804491349770.838909775432511
200.1197884406121030.2395768812242060.880211559387897
210.08416882210852180.1683376442170440.915831177891478
220.08182032037630460.1636406407526090.918179679623695
230.05531426142907120.1106285228581420.944685738570929
240.0521152604216610.1042305208433220.947884739578339
250.1327383790339280.2654767580678560.867261620966072
260.1475742259118840.2951484518237680.852425774088116
270.2336330107923230.4672660215846450.766366989207677
280.2027211486187480.4054422972374960.797278851381252
290.1593883312689780.3187766625379570.840611668731022
300.1687722436096760.3375444872193530.831227756390324
310.1323198097791520.2646396195583030.867680190220848
320.1018319201458840.2036638402917670.898168079854116
330.07427747137723440.1485549427544690.925722528622766
340.05421745487369760.1084349097473950.945782545126302
350.04343673954866170.08687347909732330.956563260451338
360.1176512522618380.2353025045236770.882348747738162
370.1808734790387720.3617469580775450.819126520961228
380.1629221111329460.3258442222658920.837077888867054
390.2441363590320470.4882727180640940.755863640967953
400.2177776660898570.4355553321797150.782222333910143
410.2149040716271460.4298081432542930.785095928372854
420.2002009021358800.4004018042717610.79979909786412
430.2951580561340250.5903161122680510.704841943865975
440.3687238124491190.7374476248982370.631276187550881
450.3832237942861240.7664475885722480.616776205713876
460.3348301426675660.6696602853351330.665169857332434
470.3466812667769450.6933625335538890.653318733223055
480.5158683371162470.9682633257675070.484131662883753
490.5419340356181850.916131928763630.458065964381815
500.4848267514084010.9696535028168030.515173248591599
510.5620012421095860.8759975157808280.437998757890414
520.5053983503610210.9892032992779580.494601649638979
530.4538982190694150.907796438138830.546101780930585
540.4291874435990570.8583748871981140.570812556400943
550.3790662444056080.7581324888112170.620933755594392
560.3481612860830630.6963225721661260.651838713916937
570.3028979185726410.6057958371452810.69710208142736
580.2499382154365110.4998764308730230.750061784563489
590.2040947445424780.4081894890849560.795905255457522
600.3696405722262730.7392811444525460.630359427773727
610.4119020227424570.8238040454849140.588097977257543
620.4059473118203550.8118946236407110.594052688179645
630.4161022280902550.832204456180510.583897771909745
640.7014290350857760.5971419298284480.298570964914224
650.7254771754351130.5490456491297750.274522824564887
660.8338455733687040.3323088532625930.166154426631296
670.7839663932575450.4320672134849090.216033606742455
680.7602169292327710.4795661415344580.239783070767229
690.7100333685409210.5799332629181580.289966631459079
700.8146512620526270.3706974758947460.185348737947373
710.7828096680189570.4343806639620860.217190331981043
720.9115840428086870.1768319143826260.0884159571913132
730.8967520902105720.2064958195788550.103247909789428
740.8645206592179740.2709586815640530.135479340782026
750.8720208692819630.2559582614360730.127979130718037
760.9255021237856460.1489957524287090.0744978762143544
770.8654733304385120.2690533391229770.134526669561488
780.8010834229337280.3978331541325440.198916577066272
790.6750080309351370.6499839381297260.324991969064863
800.5823980042449760.8352039915100490.417601995755024


Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level00OK
5% type I error level00OK
10% type I error level20.0277777777777778OK
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Dec/12/t12921793715d7fgb11lyac8tx/10njlj1292179482.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/12/t12921793715d7fgb11lyac8tx/10njlj1292179482.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/12/t12921793715d7fgb11lyac8tx/1z0681292179482.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/12/t12921793715d7fgb11lyac8tx/1z0681292179482.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/12/t12921793715d7fgb11lyac8tx/2r95b1292179482.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/12/t12921793715d7fgb11lyac8tx/2r95b1292179482.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/12/t12921793715d7fgb11lyac8tx/3r95b1292179482.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/12/t12921793715d7fgb11lyac8tx/3r95b1292179482.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/12/t12921793715d7fgb11lyac8tx/4r95b1292179482.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/12/t12921793715d7fgb11lyac8tx/4r95b1292179482.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/12/t12921793715d7fgb11lyac8tx/5r95b1292179482.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/12/t12921793715d7fgb11lyac8tx/5r95b1292179482.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/12/t12921793715d7fgb11lyac8tx/6k14e1292179482.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/12/t12921793715d7fgb11lyac8tx/6k14e1292179482.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/12/t12921793715d7fgb11lyac8tx/7dsly1292179482.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/12/t12921793715d7fgb11lyac8tx/7dsly1292179482.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/12/t12921793715d7fgb11lyac8tx/8dsly1292179482.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/12/t12921793715d7fgb11lyac8tx/8dsly1292179482.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/12/t12921793715d7fgb11lyac8tx/9njlj1292179482.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/12/t12921793715d7fgb11lyac8tx/9njlj1292179482.ps (open in new window)


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