Home » date » 2009 » Dec » 05 »

*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: Sat, 05 Dec 2009 12:08:14 -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/05/t1260040162wbm08awg7jhvltd.htm/, Retrieved Sat, 05 Dec 2009 20:09:34 +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/05/t1260040162wbm08awg7jhvltd.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 «
8823 0 9051 8776 0 8823 8255 0 8776 7969 0 8255 8758 0 7969 8693 0 8758 8271 0 8693 7790 0 8271 7769 0 7790 8170 0 7769 8209 0 8170 9395 0 8209 9260 0 9395 9018 0 9260 8501 0 9018 8500 0 8501 9649 0 8500 9319 0 9649 8830 0 9319 8436 0 8830 8169 0 8436 8269 0 8169 7945 0 8269 9144 0 7945 8770 0 9144 8834 0 8770 7837 0 8834 7792 0 7837 8616 0 7792 8518 0 8616 7940 0 8518 7545 0 7940 7531 0 7545 7665 0 7531 7599 0 7665 8444 0 7599 8549 0 8444 7986 0 8549 7335 0 7986 7287 0 7335 7870 0 7287 7839 0 7870 7327 0 7839 7259 0 7327 6964 0 7259 7271 0 6964 6956 0 7271 7608 0 6956 7692 0 7608 7255 0 7692 6804 0 7255 6655 0 6804 7341 0 6655 7602 0 7341 7086 0 7602 6625 0 7086 6272 0 6625 6576 0 6272 6491 0 6576 7649 0 6491 7400 0 7649 6913 0 7400 6532 0 6913 6486 0 6532 7295 0 6486 7556 0 7295 7088 1 7556 6952 1 7088 6773 1 6952 6917 1 6773 7371 1 6917 8221 1 7371 7953 1 8221 8027 1 7953 7287 1 8027 8076 1 7287 8933 1 8076 9433 1 8933 9479 1 943 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] = + 1029.25177948533 + 293.630335878267X[t] + 1.00160644084244Y1[t] -1166.49099523471M1[t] -1299.84636877925M2[t] -1732.48748327642M3[t] -1001.05820969392M4[t] -266.302441146827M5[t] -1044.60240661893M6[t] -1571.60816034634M7[t] -1468.87276527106M8[t] -1262.17642796682M9[t] -931.311419086338M10[t] -1030.21523527544M11[t] + 0.0556754590232193t + e[t]


Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STAT
H0: parameter = 0
2-tail p-value1-tail p-value
(Intercept)1029.25177948533163.0881546.31100
X293.630335878267106.5351852.75620.0072590.003629
Y11.001606440842440.01566963.920900
M1-1166.49099523471136.138675-8.568400
M2-1299.84636877925135.996499-9.557900
M3-1732.48748327642135.623453-12.774200
M4-1001.05820969392134.858196-7.42300
M5-266.302441146827134.959846-1.97320.051970.025985
M6-1044.60240661893136.424166-7.65700
M7-1571.60816034634135.982433-11.557400
M8-1468.87276527106135.278237-10.858200
M9-1262.17642796682134.953683-9.352700
M10-931.311419086338134.881544-6.904700
M11-1030.21523527544139.14898-7.403700
t0.05567545902321931.630110.03420.972840.48642


Multiple Linear Regression - Regression Statistics
Multiple R0.994108696621259
R-squared0.988252100698017
Adjusted R-squared0.986170194492603
F-TEST (value)474.686178526083
F-TEST (DF numerator)14
F-TEST (DF denominator)79
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation260.288261028821
Sum Squared Residuals5352248.32752319


Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolation
Forecast
Residuals
Prediction Error
188238928.35635577457-105.356355774566
287768566.69038917697209.309610823031
382558087.02944741923167.970552580774
479698296.67744078184-327.677440781836
587588745.0294427070112.9705572929847
686938757.05263451863-64.0526345186299
782718164.99813759548106.001862404518
877907845.11129009427-55.1112900942681
977697570.09060481232198.909395187684
1081707879.97755389414290.022446105864
1182098182.7735959418826.2264040581251
1293959252.1071578692142.892842130806
1392609273.57707693264-13.5770769326362
1490189005.060509333412.9394906666032
1585018330.08631161138170.913688388625
1685008543.74073073735-43.7407307373549
1796499277.55056830263371.449431697368
1893199650.15207881752-331.15207881752
1988308792.6718750711337.3281249288731
2084368405.6773960334730.3226039665295
2181698217.79647110481-48.7964711048116
2282698281.2882357394-12.2882357393896
2379458282.60073909355-337.600739093554
2491448988.35116299507155.648837004933
2587709022.84196578946-252.841965789461
2688348514.94145882888319.058541171120
2778378146.45883200465-309.458832004645
2877927879.34215952625-87.3421595262537
2986168569.0813136944646.9186863055372
3085188616.16073093556-98.160730935558
3179407991.05322146461-51.0532214646114
3275457514.9157691919830.084230808022
3375317326.03323782248204.966762177523
3476657642.9314319901922.0685680098086
3575997678.298554333-79.2985543329994
3684448642.46343997186-198.463439971862
3785498322.38556270803226.614437291968
3879868294.25454091098-308.254540910979
3973357297.7646756785437.2353243214649
4072877377.20383173163-90.2038317316278
4178708063.93816657731-193.938166577309
4278397869.63043157538-30.6304315753766
4373277311.6305536408715.3694463591263
4472596901.59912646384357.400873536159
4569647040.24190124982-76.2419012498176
4672717075.68868554081195.311314459193
4769567284.33372214936-328.333722149357
4876087999.09860401845-391.098604018452
4976927485.71068367203206.289316327969
5072557436.54592661729-181.545926617287
5168046566.25847293099237.741527069010
5266556846.01891715257-191.018917152571
5373417431.59100147317-90.5910014731662
5476027340.448729878261.551270121995
5570867074.917932669511.0820673305061
5666256660.88007972909-35.8800797290919
5762726405.89152326399-133.891523263990
5865766383.24513398612192.754866013883
5964916588.88535127214-97.88535127214
6076497534.019714535114.980285465004
6174007527.44465325485-127.444653254850
6269137144.74495139957-231.744951399573
6365326224.37717567115307.622824328845
6464866574.2500707517-88.2500707517061
6572957262.9876184790732.0123815209273
6675567295.04293910753260.957060892469
6770887323.14247777729-235.142477777289
6869526957.18173399732-5.18173399732387
6967737027.71527080601-254.715270806014
7069177179.34840223473-262.348402234727
7173717224.73158898596146.268411014041
7282218709.73182386289-488.731823862889
7379538394.66197880327-441.661978803273
7480277992.9317545719934.0682454280105
7572877634.46519215618-347.465192156179
7680767624.7613749743451.238625025705
7789339149.8403008051-216.840300805099
7894339229.972730594203.027269406006
7994799203.82587274683275.174127253173
8091999352.69083955987-153.690839559876
8194699278.99304888725190.006951112745
82100159880.34747225422134.652527745777
831099910328.3764482241670.623551775885
841300912344.2280967475664.77190325246
851369913191.0217230652507.978276934848
861389513748.8304691609146.169530839074
871324813512.5598925279-264.559892527894
881397313596.0054743444376.994525655644
891509515056.981587961238.0184120387566
901520115402.5397245734-201.539724573386
911482314981.7599290343-158.759929034297
921453814705.9437649302-167.943764930151
931454714627.2379420533-80.2379420533186
941440714967.1730843604-560.17308436041


Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
180.3345797563444990.6691595126889970.665420243655501
190.1854594409978660.3709188819957310.814540559002134
200.1005984568284830.2011969136569670.899401543171517
210.06470158797905090.1294031759581020.935298412020949
220.07786803454285140.1557360690857030.922131965457149
230.1226563693418440.2453127386836890.877343630658156
240.07550481429807650.1510096285961530.924495185701923
250.05118601437371720.1023720287474340.948813985626283
260.05046629717386150.1009325943477230.949533702826139
270.0918546751840520.1837093503681040.908145324815948
280.06493838595032660.1298767719006530.935061614049673
290.04379684193795260.08759368387590510.956203158062047
300.0290814661504440.0581629323008880.970918533849556
310.01782649038101450.03565298076202910.982173509618985
320.01041072955702120.02082145911404250.989589270442979
330.007719568722980780.01543913744596160.99228043127702
340.004725471192279020.009450942384558040.995274528807721
350.002646435132907070.005292870265814150.997353564867093
360.003170718837243270.006341437674486530.996829281162757
370.005366154109926690.01073230821985340.994633845890073
380.01073488340434890.02146976680869780.989265116595651
390.006629022249352030.01325804449870410.993370977750648
400.003945079842077570.007890159684155150.996054920157922
410.004037131638231510.008074263276463020.995962868361769
420.002524474778632990.005048949557265980.997475525221367
430.001412125107973420.002824250215946850.998587874892026
440.002788324742384490.005576649484768990.997211675257615
450.001938037055547290.003876074111094570.998061962944453
460.002041015274135170.004082030548270340.997958984725865
470.001745276794121360.003490553588242710.998254723205879
480.003289113166955490.006578226333910970.996710886833045
490.003215850184345190.006431700368690380.996784149815655
500.002402996731438910.004805993462877820.99759700326856
510.003103364805983150.00620672961196630.996896635194017
520.002031469067397460.004062938134794920.997968530932603
530.001319262025484150.002638524050968300.998680737974516
540.002171972893302860.004343945786605730.997828027106697
550.00137248419155090.00274496838310180.99862751580845
560.0009613348155597650.001922669631119530.99903866518444
570.0006546189662041410.001309237932408280.999345381033796
580.001477668274532850.002955336549065710.998522331725467
590.000985129199054490.001970258398108980.999014870800946
600.000675721971993980.001351443943987960.999324278028006
610.0003652265454660540.0007304530909321080.999634773454534
620.0003160716987315630.0006321433974631250.999683928301268
630.0007547808952759570.001509561790551910.999245219104724
640.000946584137155550.00189316827431110.999053415862844
650.0004946893910534780.0009893787821069560.999505310608947
660.0004239475077818730.0008478950155637460.999576052492218
670.0002010706777270430.0004021413554540860.999798929322273
680.000353232673337450.00070646534667490.999646767326663
690.0002073429223105140.0004146858446210280.99979265707769
700.001373156624239450.002746313248478890.99862684337576
710.004379379159984210.008758758319968430.995620620840016
720.003445105712142350.006890211424284690.996554894287858
730.1730886093732370.3461772187464740.826911390626763
740.1661799186647060.3323598373294120.833820081335294
750.1290443849705230.2580887699410460.870955615029477
760.1323557905306740.2647115810613480.867644209469326


Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level360.610169491525424NOK
5% type I error level420.711864406779661NOK
10% type I error level440.745762711864407NOK
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2009/Dec/05/t1260040162wbm08awg7jhvltd/10prl21260040089.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/05/t1260040162wbm08awg7jhvltd/10prl21260040089.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/05/t1260040162wbm08awg7jhvltd/1jc2b1260040089.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/05/t1260040162wbm08awg7jhvltd/1jc2b1260040089.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/05/t1260040162wbm08awg7jhvltd/2mr7h1260040089.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/05/t1260040162wbm08awg7jhvltd/2mr7h1260040089.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/05/t1260040162wbm08awg7jhvltd/305hp1260040089.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/05/t1260040162wbm08awg7jhvltd/305hp1260040089.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/05/t1260040162wbm08awg7jhvltd/427uc1260040089.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/05/t1260040162wbm08awg7jhvltd/427uc1260040089.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/05/t1260040162wbm08awg7jhvltd/5jebp1260040089.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/05/t1260040162wbm08awg7jhvltd/5jebp1260040089.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/05/t1260040162wbm08awg7jhvltd/6z0u41260040089.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/05/t1260040162wbm08awg7jhvltd/6z0u41260040089.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/05/t1260040162wbm08awg7jhvltd/7zmwj1260040089.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/05/t1260040162wbm08awg7jhvltd/7zmwj1260040089.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/05/t1260040162wbm08awg7jhvltd/8yyu81260040089.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/05/t1260040162wbm08awg7jhvltd/8yyu81260040089.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/05/t1260040162wbm08awg7jhvltd/9h8ze1260040089.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/05/t1260040162wbm08awg7jhvltd/9h8ze1260040089.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