Home » date » 2008 » Dec » 22 »

Paper - s0410061

*Unverified author*
R Software Module: rwasp_multipleregression.wasp (opens new window with default values)
Title produced by software: Multiple Regression
Date of computation: Mon, 22 Dec 2008 10:28:18 -0700
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2008/Dec/22/t1229966931sgvo9fiftx67lj4.htm/, Retrieved Mon, 22 Dec 2008 18:29: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/2008/Dec/22/t1229966931sgvo9fiftx67lj4.htm/},
    year = {2008},
}
@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 = {2008},
    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 «
101.0 0 98.7 0 105.1 0 98.4 0 101.7 0 102.9 0 92.2 0 94.9 0 92.8 0 98.5 0 94.3 0 87.4 0 103.4 0 101.2 0 109.6 0 111.9 0 108.9 0 105.6 0 107.8 0 97.5 0 102.4 0 105.6 0 99.8 0 96.2 0 113.1 0 107.4 0 116.8 0 112.9 0 105.3 0 109.3 0 107.9 0 101.1 0 114.7 0 116.2 0 108.4 0 113.4 0 108.7 0 112.6 0 124.2 1 114.9 1 110.5 1 121.5 1 118.1 1 111.7 1 132.7 1 119.0 1 116.7 1 120.1 1 113.4 1 106.6 1 116.3 1 112.6 1 111.6 1 125.1 1 110.7 1 109.6 1 114.2 1 113.4 1 116.0 1 109.6 1 117.8 1 115.8 1 125.3 1 113.0 1 120.5 1 116.6 1 111.8 1 115.2 1 118.6 1 122.4 1 116.4 1 114.5 1 119.8 1 115.8 1 127.8 1 118.8 1 119.7 1 118.6 1 120.8 1 115.9 1 109.7 1 114.8 1 116.2 1 112.2 1
 
Output produced by software:

Enter (or paste) a matrix (table) containing all data (time) series. Every column represents a different variable and must be delimited by a space or Tab. Every row represents a period in time (or category) and must be delimited by hard returns. The easiest way to enter data is to copy and paste a block of spreadsheet cells. Please, do not use commas or spaces to seperate groups of digits!


Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time4 seconds
R Server'Gwilym Jenkins' @ 72.249.127.135


Multiple Linear Regression - Estimated Regression Equation
Y[t] = + 96.0952380952381 + 4.43333333333331DUM[t] + 6.0958333333333M1[t] + 3.17976190476191M2[t] + 11.9303571428572M3[t] + 5.65714285714287M4[t] + 4.85535714285714M5[t] + 7.72500000000001M6[t] + 3.20892857142858M7[t] -0.321428571428567M8[t] + 5.09107142857143M9[t] + 5.58928571428572M10[t] + 2.24464285714286M11[t] + 0.187500000000000t + e[t]


Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STAT
H0: parameter = 0
2-tail p-value1-tail p-value
(Intercept)96.09523809523812.45174839.194600
DUM4.433333333333312.3799741.86280.0666920.033346
M16.09583333333332.9003672.10170.0391760.019588
M23.179761904761912.8966281.09770.2760770.138039
M311.93035714285722.9185774.08770.0001155.7e-05
M45.657142857142872.9115551.9430.0560390.028019
M54.855357142857142.9053441.67120.0991510.049576
M67.725000000000012.8999512.66380.0095810.00479
M73.208928571428582.895381.10830.2715290.135764
M8-0.3214285714285672.891635-0.11120.9118090.455905
M95.091071428571432.8887191.76240.0823670.041184
M105.589285714285722.8866341.93630.0568740.028437
M112.244642857142862.8853820.77790.4392280.219614
t0.1875000000000000.0490743.82070.0002850.000143


Multiple Linear Regression - Regression Statistics
Multiple R0.822720530353184
R-squared0.676869071064625
Adjusted R-squared0.616859041405198
F-TEST (value)11.2792657311793
F-TEST (DF numerator)13
F-TEST (DF denominator)70
p-value1.48470125083122e-12
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation5.39727444443688
Sum Squared Residuals2039.14


Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolation
Forecast
Residuals
Prediction Error
1101102.378571428572-1.37857142857155
298.799.65-0.949999999999967
3105.1108.588095238095-3.48809523809521
498.4102.502380952381-4.10238095238093
5101.7101.888095238095-0.188095238095272
6102.9104.945238095238-2.04523809523809
792.2100.616666666667-8.41666666666666
894.997.2738095238095-2.37380952380953
992.8102.873809523810-10.0738095238095
1098.5103.559523809524-5.05952380952381
1194.3100.402380952381-6.10238095238095
1287.498.3452380952381-10.9452380952381
13103.4104.628571428571-1.2285714285714
14101.2101.9-0.700000000000013
15109.6110.838095238095-1.23809523809525
16111.9104.7523809523817.14761904761905
17108.9104.1380952380954.76190476190477
18105.6107.195238095238-1.59523809523810
19107.8102.8666666666674.93333333333333
2097.599.5238095238095-2.02380952380952
21102.4105.123809523810-2.72380952380952
22105.6105.809523809524-0.209523809523815
2399.8102.652380952381-2.85238095238096
2496.2100.595238095238-4.39523809523809
25113.1106.8785714285716.22142857142858
26107.4104.153.25
27116.8113.0880952380953.71190476190475
28112.9107.0023809523815.89761904761905
29105.3106.388095238095-1.08809523809524
30109.3109.445238095238-0.145238095238096
31107.9105.1166666666672.78333333333334
32101.1101.773809523810-0.673809523809531
33114.7107.3738095238107.32619047619048
34116.2108.0595238095248.14047619047619
35108.4104.9023809523813.49761904761905
36113.4102.84523809523810.5547619047619
37108.7109.128571428571-0.428571428571408
38112.6106.46.19999999999999
39124.2119.7714285714294.42857142857143
40114.9113.6857142857141.21428571428572
41110.5113.071428571429-2.57142857142856
42121.5116.1285714285715.37142857142858
43118.1111.86.3
44111.7108.4571428571433.24285714285715
45132.7114.05714285714318.6428571428571
46119114.7428571428574.25714285714286
47116.7111.5857142857145.11428571428572
48120.1109.52857142857110.5714285714286
49113.4115.811904761905-2.41190476190473
50106.6113.083333333333-6.48333333333334
51116.3122.021428571429-5.72142857142858
52112.6115.935714285714-3.3357142857143
53111.6115.321428571429-3.72142857142857
54125.1118.3785714285716.72142857142857
55110.7114.05-3.35
56109.6110.707142857143-1.10714285714286
57114.2116.307142857143-2.10714285714285
58113.4116.992857142857-3.59285714285714
59116113.8357142857142.16428571428571
60109.6111.778571428571-2.17857142857143
61117.8118.061904761905-0.261904761904745
62115.8115.3333333333330.466666666666661
63125.3124.2714285714291.02857142857142
64113118.185714285714-5.18571428571429
65120.5117.5714285714292.92857142857143
66116.6120.628571428571-4.02857142857143
67111.8116.3-4.50000000000001
68115.2112.9571428571432.24285714285714
69118.6118.5571428571430.0428571428571376
70122.4119.2428571428573.15714285714286
71116.4116.0857142857140.314285714285716
72114.5114.0285714285710.471428571428576
73119.8120.311904761905-0.511904761904748
74115.8117.583333333333-1.78333333333334
75127.8126.5214285714291.27857142857142
76118.8120.435714285714-1.63571428571430
77119.7119.821428571429-0.121428571428565
78118.6122.878571428571-4.27857142857144
79120.8118.552.24999999999999
80115.9115.2071428571430.692857142857145
81109.7120.807142857143-11.1071428571429
82114.8121.492857142857-6.69285714285715
83116.2118.335714285714-2.13571428571429
84112.2116.278571428571-4.07857142857143


Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
170.3677393116319160.7354786232638310.632260688368084
180.2492235861896320.4984471723792640.750776413810368
190.3940655958886270.7881311917772540.605934404111373
200.3205029097201410.6410058194402810.67949709027986
210.2589865026333440.5179730052666880.741013497366656
220.1774903236545910.3549806473091810.82250967634541
230.1327828979928200.2655657959856410.86721710200718
240.1250057709825540.2500115419651080.874994229017446
250.08003963416541730.1600792683308350.919960365834583
260.05614838260312190.1122967652062440.943851617396878
270.03291028605630570.06582057211261140.967089713943694
280.02176549196799760.04353098393599530.978234508032002
290.07087698501572920.1417539700314580.92912301498427
300.05981131785551230.1196226357110250.940188682144488
310.03836760542138870.07673521084277750.961632394578611
320.03592437329921300.07184874659842610.964075626700787
330.07329764098041450.1465952819608290.926702359019586
340.07169534535554940.1433906907110990.92830465464445
350.05493135713680120.1098627142736020.945068642863199
360.155982502836790.311965005673580.84401749716321
370.2498305016352610.4996610032705220.750169498364739
380.195717852836550.39143570567310.80428214716345
390.1475326702365990.2950653404731990.8524673297634
400.1256413749166530.2512827498333050.874358625083347
410.1227735056405730.2455470112811470.877226494359427
420.1146268795081270.2292537590162540.885373120491873
430.1016025621479390.2032051242958790.89839743785206
440.07489540531270180.1497908106254040.925104594687298
450.6981785366058040.6036429267883920.301821463394196
460.6628961305564390.6742077388871220.337103869443561
470.6094140123969010.7811719752061990.390585987603099
480.8004547409497380.3990905181005240.199545259050262
490.8277006156528180.3445987686943630.172299384347181
500.9164415945021560.1671168109956880.0835584054978442
510.961376277118230.07724744576354020.0386237228817701
520.958900507210830.08219898557834110.0410994927891706
530.9702140218651630.05957195626967450.0297859781348373
540.9871043222489650.02579135550207050.0128956777510353
550.9854018479271120.02919630414577530.0145981520728877
560.9825089803919460.03498203921610710.0174910196080535
570.9747345542786930.05053089144261480.0252654457213074
580.9708877897278730.05822442054425360.0291122102721268
590.9486352711997130.1027294576005730.0513647288002866
600.9291589277453820.1416821445092360.0708410722546181
610.8884356137792750.2231287724414510.111564386220725
620.8236480199765220.3527039600469560.176351980023478
630.7466771717186460.5066456565627070.253322828281354
640.7453452153631930.5093095692736140.254654784636807
650.6199634962708250.760073007458350.380036503729175
660.5136090204863980.9727819590272040.486390979513602
670.7558515505115940.4882968989768120.244148449488406


Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level00OK
5% type I error level40.0784313725490196NOK
10% type I error level120.235294117647059NOK
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/22/t1229966931sgvo9fiftx67lj4/10qpln1229966893.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/22/t1229966931sgvo9fiftx67lj4/10qpln1229966893.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/22/t1229966931sgvo9fiftx67lj4/1u0nr1229966893.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/22/t1229966931sgvo9fiftx67lj4/1u0nr1229966893.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/22/t1229966931sgvo9fiftx67lj4/20rl11229966893.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/22/t1229966931sgvo9fiftx67lj4/20rl11229966893.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/22/t1229966931sgvo9fiftx67lj4/3khgp1229966893.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/22/t1229966931sgvo9fiftx67lj4/3khgp1229966893.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/22/t1229966931sgvo9fiftx67lj4/4tpkb1229966893.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/22/t1229966931sgvo9fiftx67lj4/4tpkb1229966893.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/22/t1229966931sgvo9fiftx67lj4/56yw41229966893.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/22/t1229966931sgvo9fiftx67lj4/56yw41229966893.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/22/t1229966931sgvo9fiftx67lj4/6phvl1229966893.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/22/t1229966931sgvo9fiftx67lj4/6phvl1229966893.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/22/t1229966931sgvo9fiftx67lj4/7gb8a1229966893.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/22/t1229966931sgvo9fiftx67lj4/7gb8a1229966893.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/22/t1229966931sgvo9fiftx67lj4/88jyf1229966893.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/22/t1229966931sgvo9fiftx67lj4/88jyf1229966893.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/22/t1229966931sgvo9fiftx67lj4/912n21229966893.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/22/t1229966931sgvo9fiftx67lj4/912n21229966893.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