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:18:32 -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/t1227611961exkn5vo19280oz1.htm/, Retrieved Tue, 25 Nov 2008 11:19: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/t1227611961exkn5vo19280oz1.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 1 111 1 105 1 102 1 95 1 93 1 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] = + 126.933333333333 -19.9333333333333X[t] + e[t]


Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STAT
H0: parameter = 0
2-tail p-value1-tail p-value
(Intercept)126.9333333333331.9606964.739100
X-19.93333333333334.117024-4.84175e-062e-06


Multiple Linear Regression - Regression Statistics
Multiple R0.444880967754571
R-squared0.197919075470244
Adjusted R-squared0.189476118369931
F-TEST (value)23.4419141443821
F-TEST (DF numerator)1
F-TEST (DF denominator)95
p-value4.98278536154029e-06
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation16.9800708778716
Sum Squared Residuals27390.6666666667


Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolation
Forecast
Residuals
Prediction Error
1124126.933333333334-2.93333333333362
2113126.933333333333-13.9333333333333
3109126.933333333333-17.9333333333333
4109126.933333333333-17.9333333333333
5106126.933333333333-20.9333333333333
6101126.933333333333-25.9333333333333
798126.933333333333-28.9333333333333
893126.933333333333-33.9333333333333
991126.933333333333-35.9333333333333
10122126.933333333333-4.93333333333333
11139126.93333333333312.0666666666667
12140126.93333333333313.0666666666667
13132126.9333333333335.06666666666667
14117126.933333333333-9.93333333333333
15114126.933333333333-12.9333333333333
16113126.933333333333-13.9333333333333
17110126.933333333333-16.9333333333333
18107126.933333333333-19.9333333333333
19103126.933333333333-23.9333333333333
2098126.933333333333-28.9333333333333
2198126.933333333333-28.9333333333333
22137126.93333333333310.0666666666667
23148126.93333333333321.0666666666667
24147126.93333333333320.0666666666667
25139126.93333333333312.0666666666667
26130126.9333333333333.06666666666667
27128126.9333333333331.06666666666667
28127126.9333333333330.0666666666666713
29123126.933333333333-3.93333333333333
30118126.933333333333-8.93333333333333
31114126.933333333333-12.9333333333333
32108126.933333333333-18.9333333333333
33111126.933333333333-15.9333333333333
34151126.93333333333324.0666666666667
35159126.93333333333332.0666666666667
36158126.93333333333331.0666666666667
37148126.93333333333321.0666666666667
38138126.93333333333311.0666666666667
39137126.93333333333310.0666666666667
40136126.9333333333339.06666666666667
41133126.9333333333336.06666666666667
42126126.933333333333-0.933333333333329
43120126.933333333333-6.93333333333333
44114126.933333333333-12.9333333333333
45116126.933333333333-10.9333333333333
46153126.93333333333326.0666666666667
47162126.93333333333335.0666666666667
48161126.93333333333334.0666666666667
49149126.93333333333322.0666666666667
50139126.93333333333312.0666666666667
51135126.9333333333338.06666666666667
52130126.9333333333333.06666666666667
53127126.9333333333330.0666666666666713
54122126.933333333333-4.93333333333333
55117126.933333333333-9.93333333333333
56112126.933333333333-14.9333333333333
57113126.933333333333-13.9333333333333
58149126.93333333333322.0666666666667
59157126.93333333333330.0666666666667
60157126.93333333333330.0666666666667
61147126.93333333333320.0666666666667
62137126.93333333333310.0666666666667
63132126.9333333333335.06666666666667
64125126.933333333333-1.93333333333333
65123126.933333333333-3.93333333333333
66117126.933333333333-9.93333333333333
67114126.933333333333-12.9333333333333
68111126.933333333333-15.9333333333333
69112126.933333333333-14.9333333333333
70144126.93333333333317.0666666666667
71150126.93333333333323.0666666666667
72149126.93333333333322.0666666666667
73134126.9333333333337.06666666666667
74123126.933333333333-3.93333333333333
75116126.933333333333-10.9333333333333
7611710710
771111074
78105107-2
79102107-5
8095107-12
8193107-14
8212410717
8313010723
8412410717
851151078
86106107-1
87105107-2
88105107-2
89101107-6
9095107-12
9193107-14
9284107-23
9387107-20
941161079
9512010713
9611710710
971091072


Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
50.1241086465253550.2482172930507110.875891353474645
60.1014630786116820.2029261572233640.898536921388318
70.09630109904376530.1926021980875310.903698900956235
80.1269551647200510.2539103294401030.873044835279949
90.1618350514052170.3236701028104330.838164948594783
100.1898508986220150.3797017972440310.810149101377985
110.4767563897995570.9535127795991140.523243610200443
120.6578590766386090.6842818467227820.342140923361391
130.667858918519490.664282162961020.33214108148051
140.5923114905239490.8153770189521020.407688509476051
150.516897077541560.966205844916880.48310292245844
160.4454145324872520.8908290649745040.554585467512748
170.3872024179328270.7744048358656530.612797582067173
180.3480624414355090.6961248828710190.651937558564491
190.3398595306818270.6797190613636530.660140469318173
200.3832530131208760.7665060262417520.616746986879124
210.4331257424419030.8662514848838060.566874257558097
220.5260401604597320.9479196790805360.473959839540268
230.7289939957602260.5420120084795480.271006004239774
240.8358981700992320.3282036598015360.164101829900768
250.8533729024163490.2932541951673020.146627097583651
260.8316603730080840.3366792539838320.168339626991916
270.802050720475820.3958985590483590.197949279524179
280.7669501658183550.466099668363290.233049834181645
290.7245845204542410.5508309590915180.275415479545759
300.6844817374945680.6310365250108640.315518262505432
310.6565446353290440.6869107293419120.343455364670956
320.6647203869773250.670559226045350.335279613022675
330.6584022536546630.6831954926906750.341597746345337
340.773436922740350.4531261545193000.226563077259650
350.9040300450330480.1919399099339040.095969954966952
360.9596457691330920.08070846173381580.0403542308669079
370.9686396647630950.06272067047380960.0313603352369048
380.9634244504988070.0731510990023870.0365755495011935
390.9561534394409230.08769312111815380.0438465605590769
400.946391196403940.1072176071921190.0536088035960593
410.931864049304660.1362719013906810.0681359506953407
420.9122630252748750.1754739494502500.0877369747251249
430.8947776742026940.2104446515946130.105222325797306
440.889971339553580.220057320892840.11002866044642
450.8810344222363360.2379311555273290.118965577763664
460.9143002431783630.1713995136432740.0856997568216372
470.9657677629633930.06846447407321470.0342322370366073
480.9874672306938130.02506553861237490.0125327693061875
490.9898525825852920.02029483482941530.0101474174147077
500.9872514583581110.02549708328377720.0127485416418886
510.9825434264117690.03491314717646230.0174565735882311
520.9751463441892210.04970731162155720.0248536558107786
530.9652688420916920.06946231581661510.0347311579083075
540.954673126536820.09065374692635930.0453268734631797
550.9478852581083480.1042294837833040.0521147418916518
560.9507839741659690.09843205166806280.0492160258340314
570.9535287882123520.09294242357529630.0464712117876481
580.9582845238484740.0834309523030520.041715476151526
590.9780758776447210.04384824471055730.0219241223552786
600.9905425483681340.0189149032637320.009457451631866
610.992289199634940.01542160073011910.00771080036505957
620.98993562746720.02012874506559780.0100643725327989
630.9853468072349380.02930638553012410.0146531927650620
640.9781759792390180.04364804152196370.0218240207609818
650.968716501380660.06256699723867790.0312834986193390
660.9613809736204710.0772380527590570.0386190263795285
670.959013436711730.08197312657654140.0409865632882707
680.9660968720175310.06780625596493720.0339031279824686
690.9757497751110730.04850044977785430.0242502248889272
700.9700699314312560.05986013713748790.0299300685687439
710.975030079785740.04993984042852260.0249699202142613
720.9839609815411670.03207803691766590.0160390184588329
730.9804530527306770.03909389453864590.0195469472693230
740.9708247529082830.05835049418343510.0291752470917176
750.9566200107203320.08675997855933630.0433799892796682
760.9445121033183970.1109757933632060.0554878966816028
770.9210204433623270.1579591132753450.0789795566376725
780.8880057069917740.2239885860164520.111994293008226
790.8485495769001080.3029008461997840.151450423099892
800.8259456567532860.3481086864934290.174054343246714
810.8156299527651280.3687400944697450.184370047234872
820.820614985647790.3587700287044210.179385014352211
830.8888792797614750.222241440477050.111120720238525
840.9143458071271030.1713083857457940.085654192872897
850.8951400255666140.2097199488667720.104859974433386
860.8398938029217040.3202123941565930.160106197078296
870.7637278237466090.4725443525067830.236272176253392
880.6665199138671270.6669601722657450.333480086132873
890.5499383276085130.9001233447829730.450061672391487
900.4502022014522690.9004044029045390.54979779854773
910.3702443095856070.7404886191712150.629755690414393
920.494099366408910.988198732817820.50590063359109


Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level00OK
5% type I error level150.170454545454545NOK
10% type I error level320.363636363636364NOK
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/25/t1227611961exkn5vo19280oz1/10mph91227611906.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/25/t1227611961exkn5vo19280oz1/10mph91227611906.ps (open in new window)


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


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


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


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


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


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


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


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


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