Home » date » 2008 » Nov » 25 »

Toon Wouters

*Unverified author*
R Software Module: rwasp_multipleregression.wasp (opens new window with default values)
Title produced by software: Multiple Regression
Date of computation: Tue, 25 Nov 2008 01:47:13 -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/Nov/25/t12276029442wpi0rhxd0oln4k.htm/, Retrieved Tue, 25 Nov 2008 08:49:14 +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/Nov/25/t12276029442wpi0rhxd0oln4k.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 «
124 0 113 0 109 0 109 0 106 0 101 0 98 0 93 0 91 0 122 0 139 0 140 0 132 0 117 0 114 0 113 0 110 0 107 0 103 0 98 0 98 0 137 0 148 0 147 0 139 0 130 0 128 0 127 0 123 0 118 0 114 0 108 0 111 0 151 0 159 0 158 0 148 0 138 0 137 0 136 0 133 0 126 0 120 0 114 0 116 0 153 0 162 0 161 0 149 0 139 0 135 0 130 0 127 0 122 0 117 0 112 0 113 0 149 0 157 0 157 0 147 0 137 0 132 0 125 0 123 0 117 0 114 0 111 0 112 0 144 0 150 0 149 0 134 0 123 0 116 0 117 0 111 0 105 0 102 0 95 0 93 0 124 1 130 1 124 1 115 1 106 1 105 1 105 1 101 1 95 1 93 1 84 1 87 1 116 1 120 1 117 1 109 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 time5 seconds
R Server'Gwilym Jenkins' @ 72.249.127.135
R Framework
error message
Warning: there are blank lines in the 'Data X' field.
Please, use NA for missing data - blank lines are simply
 deleted and are NOT treated as missing values.


Multiple Linear Regression - Estimated Regression Equation
Y[t] = + 125.222222222222 -17.0347222222222X[t] + e[t]


Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STAT
H0: parameter = 0
2-tail p-value1-tail p-value
(Intercept)125.2222222222221.98344163.133800
X-17.03472222222224.883658-3.48810.0007390.000369


Multiple Linear Regression - Regression Statistics
Multiple R0.336945361646795
R-squared0.113532176735289
Adjusted R-squared0.104200936490398
F-TEST (value)12.1668903335161
F-TEST (DF numerator)1
F-TEST (DF denominator)95
p-value0.000738802148248396
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation17.8509729942686
Sum Squared Residuals30272.4375


Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolation
Forecast
Residuals
Prediction Error
1124125.222222222223-1.22222222222251
2113125.222222222222-12.2222222222222
3109125.222222222222-16.2222222222222
4109125.222222222222-16.2222222222222
5106125.222222222222-19.2222222222222
6101125.222222222222-24.2222222222222
798125.222222222222-27.2222222222222
893125.222222222222-32.2222222222222
991125.222222222222-34.2222222222222
10122125.222222222222-3.22222222222222
11139125.22222222222213.7777777777778
12140125.22222222222214.7777777777778
13132125.2222222222226.77777777777778
14117125.222222222222-8.22222222222222
15114125.222222222222-11.2222222222222
16113125.222222222222-12.2222222222222
17110125.222222222222-15.2222222222222
18107125.222222222222-18.2222222222222
19103125.222222222222-22.2222222222222
2098125.222222222222-27.2222222222222
2198125.222222222222-27.2222222222222
22137125.22222222222211.7777777777778
23148125.22222222222222.7777777777778
24147125.22222222222221.7777777777778
25139125.22222222222213.7777777777778
26130125.2222222222224.77777777777778
27128125.2222222222222.77777777777778
28127125.2222222222221.77777777777778
29123125.222222222222-2.22222222222222
30118125.222222222222-7.22222222222222
31114125.222222222222-11.2222222222222
32108125.222222222222-17.2222222222222
33111125.222222222222-14.2222222222222
34151125.22222222222225.7777777777778
35159125.22222222222233.7777777777778
36158125.22222222222232.7777777777778
37148125.22222222222222.7777777777778
38138125.22222222222212.7777777777778
39137125.22222222222211.7777777777778
40136125.22222222222210.7777777777778
41133125.2222222222227.77777777777778
42126125.2222222222220.77777777777778
43120125.222222222222-5.22222222222222
44114125.222222222222-11.2222222222222
45116125.222222222222-9.22222222222222
46153125.22222222222227.7777777777778
47162125.22222222222236.7777777777778
48161125.22222222222235.7777777777778
49149125.22222222222223.7777777777778
50139125.22222222222213.7777777777778
51135125.2222222222229.77777777777778
52130125.2222222222224.77777777777778
53127125.2222222222221.77777777777778
54122125.222222222222-3.22222222222222
55117125.222222222222-8.22222222222222
56112125.222222222222-13.2222222222222
57113125.222222222222-12.2222222222222
58149125.22222222222223.7777777777778
59157125.22222222222231.7777777777778
60157125.22222222222231.7777777777778
61147125.22222222222221.7777777777778
62137125.22222222222211.7777777777778
63132125.2222222222226.77777777777778
64125125.222222222222-0.22222222222222
65123125.222222222222-2.22222222222222
66117125.222222222222-8.22222222222222
67114125.222222222222-11.2222222222222
68111125.222222222222-14.2222222222222
69112125.222222222222-13.2222222222222
70144125.22222222222218.7777777777778
71150125.22222222222224.7777777777778
72149125.22222222222223.7777777777778
73134125.2222222222228.77777777777778
74123125.222222222222-2.22222222222222
75116125.222222222222-9.22222222222222
76117125.222222222222-8.22222222222222
77111125.222222222222-14.2222222222222
78105125.222222222222-20.2222222222222
79102125.222222222222-23.2222222222222
8095125.222222222222-30.2222222222222
8193125.222222222222-32.2222222222222
82124108.187515.8125
83130108.187521.8125
84124108.187515.8125
85115108.18756.8125
86106108.1875-2.1875
87105108.1875-3.1875
88105108.1875-3.1875
89101108.1875-7.1875
9095108.1875-13.1875
9193108.1875-15.1875
9284108.1875-24.1875
9387108.1875-21.1875
94116108.18757.8125
95120108.187511.8125
96117108.18758.8125
97109108.18750.8125


Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
50.1069336966148100.2138673932296210.89306630338519
60.08296797426063180.1659359485212640.917032025739368
70.07455190498064270.1491038099612850.925448095019357
80.0934396872553750.186879374510750.906560312744625
90.1127852158858780.2255704317717560.887214784114122
100.1294208555799570.2588417111599150.870579144420043
110.3601209548276940.7202419096553880.639879045172306
120.5299605812596320.9400788374807360.470039418740368
130.5353801878935410.9292396242129180.464619812106459
140.4504907317106920.9009814634213830.549509268289308
150.3701521910135730.7403043820271470.629847808986427
160.2984177207090790.5968354414181570.701582279290921
170.2414234122430860.4828468244861720.758576587756914
180.2013792391814940.4027584783629880.798620760818506
190.1831927603777510.3663855207555030.816807239622249
200.1963289664418560.3926579328837120.803671033558144
210.210343952448850.42068790489770.78965604755115
220.2767522295349970.5535044590699940.723247770465003
230.4684117515999840.9368235031999680.531588248400016
240.6061039681067380.7877920637865250.393896031893262
250.631529975472950.73694004905410.36847002452705
260.594476168060570.8110476638788590.405523831939429
270.5474544665107660.9050910669784690.452545533489234
280.4959967824589270.9919935649178540.504003217541073
290.4373194698084820.8746389396169650.562680530191518
300.3816385455932180.7632770911864350.618361454406782
310.3374462983429590.6748925966859190.66255370165704
320.3205008392080210.6410016784160420.679499160791979
330.2920158622727630.5840317245455260.707984137727237
340.4147753998812140.8295507997624270.585224600118786
350.6249389281910310.7501221436179390.375061071808969
360.7725940065682610.4548119868634780.227405993431739
370.8074150052660640.3851699894678720.192584994733936
380.7902590252675350.419481949464930.209740974732465
390.7676901192295840.4646197615408320.232309880770416
400.7396277901875330.5207444196249330.260372209812467
410.7003625000027460.5992749999945070.299637499997253
420.6479248680454640.7041502639090720.352075131954536
430.5971899177004640.8056201645990710.402810082299536
440.5631468494833560.8737063010332880.436853150516644
450.521970693320250.95605861335950.47802930667975
460.6022315914175820.7955368171648350.397768408582418
470.7627823397635820.4744353204728370.237217660236418
480.8725917445543570.2548165108912860.127408255445643
490.8936146403905020.2127707192189960.106385359609498
500.881970585200330.2360588295993400.118029414799670
510.8602700674302340.2794598651395320.139729932569766
520.8274698239404960.3450603521190090.172530176059504
530.7872883258274150.4254233483451690.212711674172585
540.7426514561723740.5146970876552520.257348543827626
550.70234768500370.5953046299925990.297652314996299
560.6775224354764460.6449551290471090.322477564523554
570.6483814094596770.7032371810806460.351618590540323
580.6886400401780140.6227199196439730.311359959821986
590.7994180948066520.4011638103866950.200581905193348
600.8924632951628480.2150734096743040.107536704837152
610.9185270355625980.1629459288748050.0814729644374025
620.9138244809608230.1723510380783550.0861755190391774
630.8986620784092970.2026758431814070.101337921590703
640.8707519695447880.2584960609104240.129248030455212
650.8362445440490730.3275109119018550.163755455950927
660.7969567538360440.4060864923279110.203043246163956
670.7572257899923940.4855484200152120.242774210007606
680.7225000206189070.5549999587621870.277499979381093
690.6821703862773790.6356592274452430.317829613722621
700.7288185258090860.5423629483818280.271181474190914
710.8495720521086920.3008558957826170.150427947891308
720.9496367130024420.1007265739951160.0503632869975581
730.9685589401110030.06288211977799460.0314410598889973
740.9686155967112540.06276880657749160.0313844032887458
750.9619258501875630.07614829962487480.0380741498124374
760.9594187391111250.08116252177775010.0405812608888751
770.951579112569030.09684177486194050.0484208874309703
780.9380643401839860.1238713196320280.0619356598160139
790.92136973400670.1572605319866000.0786302659932998
800.899967049516430.2000659009671400.100032950483570
810.873870802313390.2522583953732190.126129197686609
820.8697291353952860.2605417292094290.130270864604714
830.9157965808267440.1684068383465120.084203419173256
840.9334225978695020.1331548042609960.0665774021304978
850.9173725347387280.1652549305225440.0826274652612718
860.8721822503371940.2556354993256110.127817749662806
870.8068026745092930.3863946509814140.193197325490707
880.7189938157079560.5620123685840870.281006184292044
890.6087816821860470.7824366356279050.391218317813953
900.5093184671172190.9813630657655630.490681532882781
910.4246823173229510.8493646346459020.575317682677049
920.5391079104055460.9217841791889080.460892089594454


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 level50.0568181818181818OK
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/25/t12276029442wpi0rhxd0oln4k/10ef241227602826.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/25/t12276029442wpi0rhxd0oln4k/10ef241227602826.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/25/t12276029442wpi0rhxd0oln4k/1vwrk1227602826.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/25/t12276029442wpi0rhxd0oln4k/1vwrk1227602826.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/25/t12276029442wpi0rhxd0oln4k/2bmg81227602826.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/25/t12276029442wpi0rhxd0oln4k/2bmg81227602826.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/25/t12276029442wpi0rhxd0oln4k/3nmb81227602826.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/25/t12276029442wpi0rhxd0oln4k/3nmb81227602826.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/25/t12276029442wpi0rhxd0oln4k/4qqxj1227602826.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/25/t12276029442wpi0rhxd0oln4k/4qqxj1227602826.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/25/t12276029442wpi0rhxd0oln4k/5lah81227602826.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/25/t12276029442wpi0rhxd0oln4k/5lah81227602826.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/25/t12276029442wpi0rhxd0oln4k/615d01227602826.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/25/t12276029442wpi0rhxd0oln4k/615d01227602826.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/25/t12276029442wpi0rhxd0oln4k/778711227602826.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/25/t12276029442wpi0rhxd0oln4k/778711227602826.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/25/t12276029442wpi0rhxd0oln4k/8x7ha1227602826.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/25/t12276029442wpi0rhxd0oln4k/8x7ha1227602826.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/25/t12276029442wpi0rhxd0oln4k/9p0pw1227602826.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/25/t12276029442wpi0rhxd0oln4k/9p0pw1227602826.ps (open in new window)


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