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 04:35: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/Nov/25/t12276130396pnytyv935upchq.htm/, Retrieved Tue, 25 Nov 2008 11:37:31 +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/t12276130396pnytyv935upchq.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 1 139 1 140 1 132 1 117 0 114 0 113 0 110 0 107 0 103 0 98 0 98 0 137 1 148 1 147 1 139 1 130 0 128 0 127 0 123 0 118 0 114 0 108 0 111 0 151 1 159 1 158 1 148 1 138 0 137 0 136 0 133 0 126 0 120 0 114 0 116 0 153 1 162 1 161 1 149 1 139 0 135 0 130 0 127 0 122 0 117 0 112 0 113 0 149 1 157 1 157 1 147 1 137 0 132 0 125 0 123 0 117 0 114 0 111 0 112 0 144 1 150 1 149 1 134 1 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 0 105 0 105 0 101 0 95 0 93 0 84 0 87 0 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 time6 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] = + 113.646153846154 + 26.5725961538462X[t] + e[t]


Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STAT
H0: parameter = 0
2-tail p-value1-tail p-value
(Intercept)113.6461538461541.75450164.774100
X26.57259615384623.0546718.69900


Multiple Linear Regression - Regression Statistics
Multiple R0.665867135086476
R-squared0.443379041588271
Adjusted R-squared0.43751987360499
F-TEST (value)75.6726966786779
F-TEST (DF numerator)1
F-TEST (DF denominator)95
p-value9.93649607039515e-14
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation14.1452354963416
Sum Squared Residuals19008.3302884615


Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolation
Forecast
Residuals
Prediction Error
1124113.64615384615410.3538461538459
2113113.646153846154-0.646153846153948
3109113.646153846154-4.64615384615384
4109113.646153846154-4.64615384615384
5106113.646153846154-7.64615384615384
6101113.646153846154-12.6461538461538
798113.646153846154-15.6461538461538
893113.646153846154-20.6461538461538
991113.646153846154-22.6461538461538
10122140.21875-18.21875
11139140.21875-1.21875
12140140.21875-0.21875
13132140.21875-8.21875
14117113.6461538461543.35384615384616
15114113.6461538461540.353846153846158
16113113.646153846154-0.646153846153842
17110113.646153846154-3.64615384615384
18107113.646153846154-6.64615384615384
19103113.646153846154-10.6461538461538
2098113.646153846154-15.6461538461538
2198113.646153846154-15.6461538461538
22137140.21875-3.21875
23148140.218757.78125
24147140.218756.78125
25139140.21875-1.21875
26130113.64615384615416.3538461538462
27128113.64615384615414.3538461538462
28127113.64615384615413.3538461538462
29123113.6461538461549.35384615384616
30118113.6461538461544.35384615384616
31114113.6461538461540.353846153846158
32108113.646153846154-5.64615384615384
33111113.646153846154-2.64615384615384
34151140.2187510.78125
35159140.2187518.78125
36158140.2187517.78125
37148140.218757.78125
38138113.64615384615424.3538461538462
39137113.64615384615423.3538461538462
40136113.64615384615422.3538461538462
41133113.64615384615419.3538461538462
42126113.64615384615412.3538461538462
43120113.6461538461546.35384615384616
44114113.6461538461540.353846153846158
45116113.6461538461542.35384615384616
46153140.2187512.78125
47162140.2187521.78125
48161140.2187520.78125
49149140.218758.78125
50139113.64615384615425.3538461538462
51135113.64615384615421.3538461538462
52130113.64615384615416.3538461538462
53127113.64615384615413.3538461538462
54122113.6461538461548.35384615384616
55117113.6461538461543.35384615384616
56112113.646153846154-1.64615384615384
57113113.646153846154-0.646153846153842
58149140.218758.78125
59157140.2187516.78125
60157140.2187516.78125
61147140.218756.78125
62137113.64615384615423.3538461538462
63132113.64615384615418.3538461538462
64125113.64615384615411.3538461538462
65123113.6461538461549.35384615384616
66117113.6461538461543.35384615384616
67114113.6461538461540.353846153846158
68111113.646153846154-2.64615384615384
69112113.646153846154-1.64615384615384
70144140.218753.78125
71150140.218759.78125
72149140.218758.78125
73134140.21875-6.21875
74123113.6461538461549.35384615384616
75116113.6461538461542.35384615384616
76117113.6461538461543.35384615384616
77111113.646153846154-2.64615384615384
78105113.646153846154-8.64615384615384
79102113.646153846154-11.6461538461538
8095113.646153846154-18.6461538461538
8193113.646153846154-20.6461538461538
82124140.21875-16.21875
83130140.21875-10.21875
84124140.21875-16.21875
85115140.21875-25.21875
86106113.646153846154-7.64615384615384
87105113.646153846154-8.64615384615384
88105113.646153846154-8.64615384615384
89101113.646153846154-12.6461538461538
9095113.646153846154-18.6461538461538
9193113.646153846154-20.6461538461538
9284113.646153846154-29.6461538461538
9387113.646153846154-26.6461538461538
94116140.21875-24.21875
95120140.21875-20.21875
96117140.21875-23.21875
97109140.21875-31.21875


Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
50.1871421821124890.3742843642249790.81285781788751
60.1651153746677850.330230749335570.834884625332215
70.163152307993910.326304615987820.83684769200609
80.2104340856664610.4208681713329220.789565914333539
90.2548043041741910.5096086083483810.74519569582581
100.1762038685168530.3524077370337070.823796131483147
110.1687253939028830.3374507878057660.831274606097117
120.1294080005351930.2588160010703850.870591999464807
130.0841686853497610.1683373706995220.915831314650239
140.07880163051169440.1576032610233890.921198369488306
150.05865480824391450.1173096164878290.941345191756086
160.04039279428652130.08078558857304250.959607205713479
170.02492054534527600.04984109069055210.975079454654724
180.01477426557806240.02954853115612480.985225734421938
190.009487602764487140.01897520552897430.990512397235513
200.008276031519461750.01655206303892350.991723968480538
210.007039533176266830.01407906635253370.992960466823733
220.004147824042526300.008295648085052590.995852175957474
230.004696007568412650.00939201513682530.995303992431587
240.003976062925888180.007952125851776370.996023937074112
250.002227447982032510.004454895964065020.997772552017967
260.009509561317837250.01901912263567450.990490438682163
270.01846801224678970.03693602449357940.98153198775321
280.02636818207804770.05273636415609550.973631817921952
290.02580059268500240.05160118537000490.974199407314998
300.01944412119154510.03888824238309010.980555878808455
310.01305162338463580.02610324676927160.986948376615364
320.008713190108349180.01742638021669840.99128680989165
330.005530632792607460.01106126558521490.994469367207393
340.005249921538441760.01049984307688350.994750078461558
350.008762574039455270.01752514807891050.991237425960545
360.01144770642491790.02289541284983580.988552293575082
370.00822048390634980.01644096781269960.99177951609365
380.02611249827536620.05222499655073250.973887501724634
390.05504056505724940.1100811301144990.94495943494275
400.09102734242336430.1820546848467290.908972657576636
410.1164395891152410.2328791782304830.883560410884759
420.1093382942308710.2186765884617420.890661705769129
430.08814775180782750.1762955036156550.911852248192172
440.06652135915771790.1330427183154360.933478640842282
450.04962476007164550.0992495201432910.950375239928354
460.04518730410757750.0903746082151550.954812695892423
470.0646249267744620.1292498535489240.935375073225538
480.08681234738043360.1736246947608670.913187652619566
490.07513722101438260.1502744420287650.924862778985617
500.1387302789849310.2774605579698620.861269721015069
510.1907160994959370.3814321989918740.809283900504063
520.2106865456731370.4213730913462750.789313454326863
530.2130572110639150.426114422127830.786942788936085
540.1918337810455240.3836675620910480.808166218954476
550.1598524141910250.319704828382050.840147585808975
560.1289710179256450.257942035851290.871028982074355
570.1023794417910880.2047588835821760.897620558208912
580.09412561344941640.1882512268988330.905874386550584
590.1235091749131870.2470183498263740.876490825086813
600.1745676797848270.3491353595696550.825432320215173
610.1802693420787570.3605386841575150.819730657921243
620.324101390962230.648202781924460.67589860903777
630.4414807744140350.882961548828070.558519225585965
640.4835363889245040.9670727778490090.516463611075496
650.51574908605670.96850182788660.4842509139433
660.5001393367497220.9997213265005560.499860663250278
670.4701383217467710.9402766434935420.529861678253229
680.4302553989786160.8605107979572310.569744601021384
690.3967449850321620.7934899700643230.603255014967838
700.4258833260238140.8517666520476270.574116673976186
710.583174269164790.833651461670420.41682573083521
720.7890795606422170.4218408787155660.210920439357783
730.8197245279996620.3605509440006750.180275472000338
740.9161795646790440.1676408706419110.0838204353209555
750.9437616870310220.1124766259379550.0562383129689776
760.9767981949777730.04640361004445360.0232018050222268
770.9849308278306550.03013834433868990.0150691721693450
780.983632112816070.03273577436785870.0163678871839294
790.9791457707154980.04170845856900370.0208542292845019
800.9720879224051270.05582415518974540.0279120775948727
810.9654512073140520.06909758537189570.0345487926859479
820.9580747492585770.08385050148284680.0419252507414234
830.9715342440429420.05693151191411540.0284657559570577
840.9701395525320330.05972089493593460.0298604474679673
850.9576127163643740.08477456727125250.0423872836356262
860.9574678031957430.08506439360851490.0425321968042574
870.9611869542518350.07762609149633020.0388130457481651
880.9786740273118530.04265194537629450.0213259726881472
890.988023490658750.02395301868250070.0119765093412504
900.9840776793088240.03184464138235160.0159223206911758
910.9799480389917770.04010392201644690.0200519610082234
920.9442505263139640.1114989473720720.0557494736860362


Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level40.0454545454545455NOK
5% type I error level270.306818181818182NOK
10% type I error level410.465909090909091NOK
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/25/t12276130396pnytyv935upchq/10gc3w1227612930.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/25/t12276130396pnytyv935upchq/10gc3w1227612930.ps (open in new window)


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


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


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


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


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


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


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


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


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/25/t12276130396pnytyv935upchq/94vmc1227612930.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/25/t12276130396pnytyv935upchq/94vmc1227612930.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