Home » date » 2009 » Dec » 20 »

*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, 20 Dec 2009 12:57:16 -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/20/t12613391238cxm2iueep7n928.htm/, Retrieved Sun, 20 Dec 2009 20:58:57 +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/20/t12613391238cxm2iueep7n928.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 «
156,9 0 136,9 128,7 109,1 0 156,9 136,9 122,3 0 109,1 156,9 123,9 0 122,3 109,1 90,9 0 123,9 122,3 77,9 0 90,9 123,9 120,3 0 77,9 90,9 118,9 0 120,3 77,9 125,5 0 118,9 120,3 98,9 0 125,5 118,9 102,9 0 98,9 125,5 105,9 0 102,9 98,9 117,6 0 105,9 102,9 113,6 0 117,6 105,9 115,9 0 113,6 117,6 118,9 0 115,9 113,6 77,6 0 118,9 115,9 81,2 0 77,6 118,9 123,1 0 81,2 77,6 136,6 0 123,1 81,2 112,1 0 136,6 123,1 95,1 0 112,1 136,6 96,3 0 95,1 112,1 105,7 0 96,3 95,1 115,8 0 105,7 96,3 105,7 0 115,8 105,7 105,7 0 105,7 115,8 111,1 0 105,7 105,7 82,4 0 111,1 105,7 60 0 82,4 111,1 107,3 0 60 82,4 99,3 0 107,3 60 113,5 0 99,3 107,3 108,9 0 113,5 99,3 100,2 0 108,9 113,5 103,9 0 100,2 108,9 138,7 0 103,9 100,2 120,2 0 138,7 103,9 100,2 0 120,2 138,7 143,2 0 100,2 120,2 70,9 0 143,2 100,2 85,2 0 70,9 143,2 133 0 85,2 70,9 136,6 0 133 85,2 117,9 0 136,6 133 106,3 0 117,9 136,6 122,3 0 106,3 117,9 125,5 0 122,3 106,3 148,4 0 125,5 122,3 126,3 0 148,4 125,5 99,6 0 126,3 148,4 14 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 time4 seconds
R Server'Gwilym Jenkins' @ 72.249.127.135
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
autoprod[t] = + 35.7573039309252 -8.98791834332252crisis[t] + 0.347101915345739autoprod1[t] + 0.372187267732638`autoprod2 `[t] + 12.6743252271334M1[t] -14.5074404099936M2[t] -15.4590446081435M3[t] + 12.4393559876213M4[t] -39.7731547715001M5[t] -33.8408857027352M6[t] + 29.3437475247696M7[t] + 13.1734504311751M8[t] -10.0699472818691M9[t] -24.5358224404104M10[t] -10.2267828010560M11[t] + 0.0667958759252148t + e[t]


Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STAT
H0: parameter = 0
2-tail p-value1-tail p-value
(Intercept)35.757303930925210.2001193.50560.0007230.000361
crisis-8.987918343322524.237576-2.1210.0367670.018383
autoprod10.3471019153457390.0980753.53910.0006470.000323
`autoprod2 `0.3721872677326380.0970933.83330.0002380.000119
M112.67432522713345.6869692.22870.0284140.014207
M2-14.50744040999365.943831-2.44080.0166840.008342
M3-15.45904460814356.2038-2.49190.0146040.007302
M412.43935598762135.6942422.18460.0316110.015806
M5-39.77315477150015.927418-6.7100
M6-33.84088570273527.189936-4.70679e-065e-06
M729.34374752476966.0268854.86885e-062e-06
M813.17345043117516.7941251.93890.0557490.027875
M9-10.06994728186916.21787-1.61950.1089560.054478
M10-24.53582244041046.152504-3.98790.0001386.9e-05
M11-10.22678280105606.164386-1.6590.1007150.050357
t0.06679587592521480.0563591.18520.2391690.119585


Multiple Linear Regression - Regression Statistics
Multiple R0.880535870435265
R-squared0.77534341912319
Adjusted R-squared0.736609525868568
F-TEST (value)20.0171827300284
F-TEST (DF numerator)15
F-TEST (DF denominator)87
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation11.6046182875216
Sum Squared Residuals11716.0434071200


Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolation
Forecast
Residuals
Prediction Error
1156.9143.91717860200612.9828213979938
2109.1126.796182743127-17.6961827431267
3122.3116.7636482220285.5363517779715
4123.9131.520038578662-7.62003857866221
590.984.842558694096.05744130591002
677.979.982760060743-2.08276006074291
7120.3126.439684429501-6.13968442950131
8118.9120.214869941967-1.31486994196703
9125.5112.33306557522813.1669344247722
1098.999.703796759068-0.803796759068003
11102.9107.303157293186-4.40315729318625
12105.9109.084962309862-3.18496230986229
13117.6124.356138229889-6.75613822988865
14113.6102.4188226814311.1811773185700
15115.9104.50019773029411.3998022697059
16118.9131.774979536349-12.8749795363489
1777.681.526601114975-3.92660111497494
1881.274.3069187590846.89308124091605
19123.1123.436580600401-0.336580600400741
20136.6123.21652379955513.3834762004446
21112.1120.320444337601-8.22044433760137
2295.1102.441896243405-7.34189624340533
2396.3101.798411138358-5.4984111383577
24105.7106.181328562299-0.481328562298956
25115.8122.631832390887-6.83183239088665
26105.7102.5211522913643.17884770863632
27105.7101.8897060282473.81029397175337
28111.1126.095811095837-14.9958110958371
2982.475.82444655550786.57555344449219
306073.8714977755315-13.8714977755315
31107.3118.666069391290-11.3660693912903
3299.3110.643493972263-11.3434939722633
33113.5102.29453457613211.2054654238678
34108.989.846804349564519.0531956504355
35100.2107.911030256057-7.71103025605717
36103.9113.472760837960-9.57276083796033
37138.7124.26012979852414.4398702014758
38120.2110.6013995819659.59860041803507
39100.2116.247322742940-16.0473227429398
40143.2130.38501645466112.8149835453386
4170.985.7209385766791-14.8209385766791
4285.282.62858755437582.57141244562424
43133123.9344345901809.06556540981984
44136.6129.7446828546146.85531714538609
45117.9125.608199310360-7.70819931035963
46106.3106.0581883746160.241811625384228
47122.3109.44773976528412.8522602347156
48125.5120.9775767820994.52242321790112
49148.4140.7844202979867.61557970201397
50126.3122.8090836549463.49091634505382
5199.6122.776411434658-23.176411434658
52140.4133.2486481497267.15135185027444
5380.385.327291364174-5.02729136417404
5492.685.65077172007696.94922827992308
55138.5130.8030995915287.69690040847199
56110.9135.209479681340-24.3094796813396
57119.6119.5362605696060.0637394303937566
5810597.88459936107737.1154006389227
59109110.430776141583-1.43077614158303
60129.4116.67882837105112.7211716289493
61148.6137.98957761809310.6104223819071
62101.4125.131584893275-23.7315848932752
63134.8115.00956170719819.7904382928018
64143.7137.0007231144556.69927688554452
6581.6100.375270020106-18.7752700201064
6690.388.13177270464672.16822729535335
67141.5131.29015914538810.2098408546122
68140.7136.1963052226944.50369477730569
69140.2131.7980099612108.40199003879024
70100.2116.927629906735-16.7276299067347
71125.7117.2332951743188.4667048256816
72119.6121.490481983310-1.89048198331047
73134.7141.605056729942-6.90505672994231
74109117.460983557292-8.46098355729213
75116.3113.2756837534453.02431624655525
76146.9134.2095114264312.6904885735701
7797.495.40208220726161.99791779273845
7889.495.6085327349564-6.20853273495635
79132.1137.659876762855-5.55987676285493
80139.8133.4001291885886.39987081141246
81129119.8006900884929.19930991150816
82112.5104.5187520816837.98124791831687
83121.9109.14778350224612.7522164977545
84121.7116.5630302658885.13696973411184
85123.1132.733291302564-9.6332913025644
86131.6106.02982676930025.5701732306998
87119.3108.6164469023410.6835530976601
88132.5135.475881591005-2.97588159100483
8998.383.334008597260914.9659914027391
9085.182.37505997119762.72494002880241
91131.7128.3159392356083.38406076439232
92129.3123.4745153389795.82548466102106
9390.7116.808795581371-26.1087955813711
9478.688.1183329238512-9.5183329238512
9568.983.9278067289675-15.0278067289675
9679.186.3510308875301-7.25103088753013
9783.599.0223750301086-15.5223750301086
9874.177.2309638273011-3.13096382730107
9959.774.72102147885-15.02102147885
10093.394.1893900528746-0.889390052874652
10161.348.346802869945212.9531971300548
10256.655.74409871938840.855901280611623
10398.5105.454156253249-6.95415625324906


Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
190.7653213994412930.4693572011174150.234678600558707
200.7306680040465070.5386639919069870.269331995953493
210.7049894484068560.5900211031862880.295010551593144
220.5912443161669360.8175113676661270.408755683833064
230.4735299181813760.9470598363627520.526470081818624
240.3656484100748450.731296820149690.634351589925155
250.3201339378589560.6402678757179120.679866062141044
260.2429383489305630.4858766978611260.757061651069437
270.1752181446166810.3504362892333620.824781855383319
280.1373262283217360.2746524566434730.862673771678264
290.1039231208425230.2078462416850450.896076879157477
300.1015426558854400.2030853117708800.89845734411456
310.07908607777912950.1581721555582590.92091392222087
320.09567095378229050.1913419075645810.90432904621771
330.07628095737866640.1525619147573330.923719042621334
340.1550071737311570.3100143474623150.844992826268843
350.1261853723353760.2523707446707530.873814627664624
360.1011516362538140.2023032725076270.898848363746186
370.134472666371430.268945332742860.86552733362857
380.1323236855550950.264647371110190.867676314444905
390.1511766060681240.3023532121362480.848823393931876
400.2862086241814990.5724172483629980.713791375818501
410.2896356867499780.5792713734999550.710364313250022
420.2415253504080820.4830507008161640.758474649591918
430.267993539958230.535987079916460.73200646004177
440.239403980277610.478807960555220.76059601972239
450.2067701979701440.4135403959402880.793229802029856
460.1608879435616700.3217758871233390.83911205643833
470.1835609387245120.3671218774490230.816439061275488
480.1623611313863880.3247222627727770.837638868613612
490.133754184518980.267508369037960.86624581548102
500.1015307455657970.2030614911315930.898469254434203
510.2217865419507690.4435730839015380.778213458049231
520.191164341649510.382328683299020.80883565835049
530.1683146618567660.3366293237135330.831685338143234
540.1357651097108610.2715302194217210.86423489028914
550.1147584797988290.2295169595976570.885241520201171
560.3384028107860390.6768056215720780.661597189213961
570.2879868688376980.5759737376753950.712013131162302
580.2368954804324770.4737909608649530.763104519567523
590.2068507401670940.4137014803341880.793149259832906
600.1894750028565640.3789500057131290.810524997143436
610.1799756718537920.3599513437075840.820024328146208
620.4454381035412390.8908762070824780.554561896458761
630.4822175767324990.9644351534649980.517782423267501
640.4486143532161340.8972287064322680.551385646783866
650.8216409601624950.3567180796750100.178359039837505
660.8435345469302970.3129309061394070.156465453069704
670.832950059460210.3340998810795790.167049940539789
680.9544808864252430.09103822714951330.0455191135747567
690.9452420579909150.109515884018170.054757942009085
700.9621093057224490.07578138855510260.0378906942775513
710.9505639837248230.0988720325503540.049436016275177
720.925050196082960.1498996078340810.0749498039170405
730.9185085751171630.1629828497656730.0814914248828367
740.9571171271172520.08576574576549540.0428828728827477
750.9439558184929190.1120883630141630.0560441815070813
760.9397743897174130.1204512205651730.0602256102825867
770.9170483145154560.1659033709690870.0829516854845437
780.869908757957990.2601824840840210.130091242042010
790.8475414827601260.3049170344797470.152458517239874
800.7669418395269060.4661163209461890.233058160473094
810.6671916965528980.6656166068942030.332808303447102
820.622752710552270.7544945788954590.377247289447729
830.5876509601237960.8246980797524080.412349039876204
840.477108832452510.954217664905020.52289116754749


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 level40.0606060606060606OK
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2009/Dec/20/t12613391238cxm2iueep7n928/10ztq71261339030.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/20/t12613391238cxm2iueep7n928/10ztq71261339030.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/20/t12613391238cxm2iueep7n928/1sqco1261339030.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/20/t12613391238cxm2iueep7n928/1sqco1261339030.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/20/t12613391238cxm2iueep7n928/24ymf1261339030.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/20/t12613391238cxm2iueep7n928/24ymf1261339030.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/20/t12613391238cxm2iueep7n928/3froc1261339030.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/20/t12613391238cxm2iueep7n928/3froc1261339030.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/20/t12613391238cxm2iueep7n928/4j2xy1261339030.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/20/t12613391238cxm2iueep7n928/4j2xy1261339030.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/20/t12613391238cxm2iueep7n928/51q9o1261339030.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/20/t12613391238cxm2iueep7n928/51q9o1261339030.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/20/t12613391238cxm2iueep7n928/61c7p1261339030.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/20/t12613391238cxm2iueep7n928/61c7p1261339030.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/20/t12613391238cxm2iueep7n928/7acbn1261339030.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/20/t12613391238cxm2iueep7n928/7acbn1261339030.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/20/t12613391238cxm2iueep7n928/8kd2t1261339030.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/20/t12613391238cxm2iueep7n928/8kd2t1261339030.ps (open in new window)


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