Home » date » 2008 » Dec » 12 »

Multiple Regression - Totale Productie (C)

*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: Thu, 11 Dec 2008 17:16:36 -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/12/t122904105098axlrm0oj6w79y.htm/, Retrieved Fri, 12 Dec 2008 00:17:30 +0000
 
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/12/t122904105098axlrm0oj6w79y.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},
}
 
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
 
Feedback Forum:

Post a new message
 
Original text written by user:
 
IsPrivate?
No (this computation is public)
 
User-defined keywords:
 
Dataseries X:
» Textbox « » Textfile « » CSV «
101.5 1 100.7 1 110.6 1 96.8 1 100.0 1 104.8 1 86.8 1 92.0 1 100.2 1 106.6 1 102.1 1 93.7 1 97.6 1 96.9 1 105.6 1 102.8 1 101.7 1 104.2 1 92.7 1 91.9 1 106.5 1 112.3 1 102.8 1 96.5 1 101.0 0 98.9 0 105.1 0 103.0 0 99.0 0 104.3 0 94.6 0 90.4 0 108.9 0 111.4 0 100.8 0 102.5 0 98.2 0 98.7 0 113.3 0 104.6 0 99.3 0 111.8 0 97.3 0 97.7 0 115.6 0 111.9 0 107.0 0 107.1 0 100.6 0 99.2 0 108.4 0 103.0 0 99.8 0 115.0 0 90.8 0 95.9 0 114.4 0 108.2 0 112.6 0 109.1 0 105.0 0 105.0 0 118.5 0 103.7 0 112.5 0 116.6 0 96.6 0 101.9 0 116.5 0 119.3 0 115.4 0 108.5 0 111.5 0 108.8 0 121.8 0 109.6 0 112.2 0 119.6 0 104.1 0 105.3 0 115.0 0 124.1 0 116.8 0 107.5 0 115.6 0 116.2 0 116.3 0 119.0 0 111.9 0 118.6 0 106.9 0 103.2 0
 
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'Sir Ronald Aylmer Fisher' @ 193.190.124.24


Multiple Linear Regression - Estimated Regression Equation
Y[t] = + 91.7816770186336 + 2.91902173913043X[t] + 1.56184329710144M1[t] + 0.508896221532095M2[t] + 9.68094914596273M3[t] + 2.31550207039337M4[t] + 1.32505499482402M5[t] + 8.40960791925466M6[t] -7.4558391563147M7[t] -6.62128623188405M8[t] + 8.14098408385093M9[t] + 10.2987512939959M10[t] + 4.88508993271221M11[t] + 0.227947075569358t + e[t]


Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STAT
H0: parameter = 0
2-tail p-value1-tail p-value
(Intercept)91.78167701863361.72940453.071300
X2.919021739130431.1885042.4560.0162710.008135
M11.561843297101441.6778070.93090.3547860.177393
M20.5088962215320951.6763850.30360.7622660.381133
M39.680949145962731.6751955.77900
M42.315502070393371.6742351.3830.1706050.085302
M51.325054994824021.6735060.79180.4308880.215444
M68.409607919254661.6730085.02663e-062e-06
M7-7.45583915631471.672743-4.45732.7e-051.4e-05
M8-6.621286231884051.672709-3.95840.0001658.3e-05
M98.140984083850931.728334.71031.1e-055e-06
M1010.29875129399591.7277695.960700
M114.885089932712211.7274322.82790.0059510.002975
t0.2279470755693580.01969411.574200


Multiple Linear Regression - Regression Statistics
Multiple R0.929251546713724
R-squared0.86350843706985
Adjusted R-squared0.840759843248157
F-TEST (value)37.958761048626
F-TEST (DF numerator)13
F-TEST (DF denominator)78
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation3.23151893143709
Sum Squared Residuals814.531739130434


Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolation
Forecast
Residuals
Prediction Error
1101.596.49048913043485.00951086956518
2100.795.66548913043485.03451086956522
3110.6105.0654891304355.53451086956522
496.897.9279891304348-1.12798913043478
510097.16548913043482.83451086956522
6104.8104.4779891304350.322010869565221
786.888.8404891304348-2.04048913043478
89289.90298913043482.09701086956521
9100.2104.893206521739-4.69320652173913
10106.6107.278920807453-0.678920807453423
11102.1102.0932065217390.00679347826086579
1293.797.4360636645963-3.73606366459626
1397.699.225854037267-1.62585403726708
1496.998.400854037267-1.50085403726708
15105.6107.800854037267-2.20085403726708
16102.8100.6633540372672.13664596273292
17101.799.9008540372671.79914596273292
18104.2107.213354037267-3.01335403726707
1992.791.5758540372671.12414596273292
2091.992.638354037267-0.738354037267077
21106.5107.628571428571-1.12857142857143
22112.3110.0142857142862.28571428571429
23102.8104.828571428571-2.02857142857143
2496.5100.171428571429-3.67142857142857
2510199.0421972049691.95780279503106
2698.998.2171972049690.682802795031059
27105.1107.617197204969-2.51719720496895
28103100.4796972049692.52030279503106
299999.717197204969-0.717197204968944
30104.3107.029697204969-2.72969720496895
3194.691.3921972049693.20780279503105
3290.492.454697204969-2.05469720496894
33108.9107.4449145962731.45508540372671
34111.4109.8306288819881.56937111801243
35100.8104.644914596273-3.84491459627329
36102.599.98777173913042.51222826086956
3798.2101.777562111801-3.57756211180123
3898.7100.952562111801-2.25256211180124
39113.3110.3525621118012.94743788819875
40104.6103.2150621118011.38493788819875
4199.3102.452562111801-3.15256211180125
42111.8109.7650621118012.03493788819876
4397.394.12756211180123.17243788819876
4497.795.19006211180122.50993788819876
45115.6110.1802795031065.4197204968944
46111.9112.565993788820-0.66599378881987
47107107.380279503106-0.380279503105589
48107.1102.7231366459634.37686335403726
49100.6104.512927018634-3.91292701863354
5099.2103.687927018634-4.48792701863354
51108.4113.087927018634-4.68792701863353
52103105.950427018634-2.95042701863354
5399.8105.187927018634-5.38792701863354
54115112.5004270186342.49957298136646
5590.896.8629270186335-6.06292701863354
5695.997.9254270186335-2.02542701863354
57114.4112.9156444099381.48435559006212
58108.2115.301358695652-7.10135869565217
59112.6110.1156444099382.48435559006211
60109.1105.4585015527953.64149844720496
61105107.248291925466-2.24829192546583
62105106.423291925466-1.42329192546584
63118.5115.8232919254662.67670807453416
64103.7108.685791925466-4.98579192546583
65112.5107.9232919254664.57670807453416
66116.6115.2357919254661.36420807453416
6796.699.5982919254658-2.99829192546584
68101.9100.6607919254661.23920807453416
69116.5115.6510093167700.848990683229813
70119.3118.0367236024841.26327639751553
71115.4112.8510093167702.54899068322982
72108.5108.1938664596270.306133540372671
73111.5109.9836568322981.51634316770187
74108.8109.158656832298-0.358656832298142
75121.8118.5586568322983.24134316770186
76109.6111.421156832298-1.82115683229814
77112.2110.6586568322981.54134316770186
78119.6117.9711568322981.62884316770186
79104.1102.3336568322981.76634316770186
80105.3103.3961568322981.90384316770186
81115118.386374223602-3.38637422360249
82124.1120.7720885093173.32791149068322
83116.8115.5863742236021.21362577639752
84107.5110.929231366460-3.42923136645963
85115.6112.7190217391302.88097826086957
86116.2111.8940217391304.30597826086957
87116.3121.294021739130-4.99402173913044
88119114.1565217391304.84347826086957
89111.9113.394021739130-1.49402173913043
90118.6120.706521739130-2.10652173913044
91106.9105.0690217391301.83097826086957
92103.2106.131521739130-2.93152173913044


Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
170.7564393378260520.4871213243478950.243560662173948
180.6162312500936950.767537499812610.383768749906305
190.6890320510130690.6219358979738620.310967948986931
200.5670057342355670.8659885315288650.432994265764433
210.6079738146578390.7840523706843220.392026185342161
220.6154573812776430.7690852374447140.384542618722357
230.5148176640041750.970364671991650.485182335995825
240.4218918714648740.8437837429297490.578108128535126
250.3384184156075940.6768368312151880.661581584392406
260.2621450625415370.5242901250830730.737854937458464
270.2326282118150310.4652564236300620.767371788184969
280.2174815097742810.4349630195485620.782518490225719
290.1714420953501760.3428841907003520.828557904649824
300.1286405307462590.2572810614925190.87135946925374
310.1527759258835550.3055518517671110.847224074116445
320.1201470382013690.2402940764027380.879852961798631
330.1353476771218960.2706953542437920.864652322878104
340.1033494655769020.2066989311538040.896650534423098
350.09602741118229570.1920548223645910.903972588817704
360.1404662260589460.2809324521178930.859533773941054
370.1371139118441080.2742278236882160.862886088155892
380.1061166461712210.2122332923424410.89388335382878
390.1241618996368580.2483237992737160.875838100363142
400.1025420047448630.2050840094897260.897457995255137
410.08879956282712780.1775991256542560.911200437172872
420.1032568506195450.2065137012390890.896743149380456
430.1147437699901270.2294875399802530.885256230009873
440.1172845607529920.2345691215059830.882715439247008
450.2396187278173760.4792374556347530.760381272182624
460.1963876558752290.3927753117504590.80361234412477
470.1568942055960830.3137884111921660.843105794403917
480.227918762718320.455837525436640.77208123728168
490.2181484216745900.4362968433491810.78185157832541
500.2188050608514510.4376101217029010.78119493914855
510.2201038108610980.4402076217221960.779896189138902
520.1805765305771810.3611530611543610.81942346942282
530.2134463303667570.4268926607335140.786553669633243
540.2275382609053380.4550765218106760.772461739094662
550.2886280860587860.5772561721175720.711371913941214
560.2363799200361740.4727598400723470.763620079963827
570.2146699021450140.4293398042900280.785330097854986
580.4239868673254420.8479737346508830.576013132674558
590.4165940827344700.8331881654689390.58340591726553
600.4720706146458450.944141229291690.527929385354155
610.4653524619437840.9307049238875690.534647538056215
620.4432614117005190.8865228234010390.556738588299481
630.4309278487812620.8618556975625250.569072151218738
640.5795547849688220.8408904300623560.420445215031178
650.6156867073688630.7686265852622740.384313292631137
660.5395145931372830.9209708137254350.460485406862717
670.6209141723032430.7581716553935140.379085827696757
680.531266295027130.937467409945740.46873370497287
690.4709708619143070.9419417238286150.529029138085693
700.4149604337914950.829920867582990.585039566208505
710.3255533039430930.6511066078861870.674446696056907
720.2494922944708300.4989845889416610.75050770552917
730.1813589220501930.3627178441003860.818641077949807
740.2059155159777730.4118310319555460.794084484022227
750.2670656849057860.5341313698115710.732934315094214


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 level00OK
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/12/t122904105098axlrm0oj6w79y/10ylbf1229040984.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/12/t122904105098axlrm0oj6w79y/10ylbf1229040984.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/12/t122904105098axlrm0oj6w79y/1zns01229040984.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/12/t122904105098axlrm0oj6w79y/1zns01229040984.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/12/t122904105098axlrm0oj6w79y/23ujf1229040984.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/12/t122904105098axlrm0oj6w79y/23ujf1229040984.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/12/t122904105098axlrm0oj6w79y/3q6mh1229040984.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/12/t122904105098axlrm0oj6w79y/3q6mh1229040984.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/12/t122904105098axlrm0oj6w79y/469bf1229040984.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/12/t122904105098axlrm0oj6w79y/469bf1229040984.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/12/t122904105098axlrm0oj6w79y/5ygtg1229040984.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/12/t122904105098axlrm0oj6w79y/5ygtg1229040984.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/12/t122904105098axlrm0oj6w79y/6raym1229040984.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/12/t122904105098axlrm0oj6w79y/6raym1229040984.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/12/t122904105098axlrm0oj6w79y/7oggz1229040984.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/12/t122904105098axlrm0oj6w79y/7oggz1229040984.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/12/t122904105098axlrm0oj6w79y/8k6hm1229040984.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/12/t122904105098axlrm0oj6w79y/8k6hm1229040984.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/12/t122904105098axlrm0oj6w79y/9xgpe1229040984.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/12/t122904105098axlrm0oj6w79y/9xgpe1229040984.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