Home » date » 2008 » Nov » 26 »

Gilliam Schoorel

*Unverified author*
R Software Module: rwasp_multipleregression.wasp (opens new window with default values)
Title produced by software: Multiple Regression
Date of computation: Wed, 26 Nov 2008 03:32:39 -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/26/t1227695605z7pft920lqmyi43.htm/, Retrieved Wed, 26 Nov 2008 10:33:25 +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/26/t1227695605z7pft920lqmyi43.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 «
-3.3 0 -3.5 0 -3.5 0 -8.4 0 -15.7 0 -18.7 0 -22.8 0 -20.7 0 -14 0 -6.3 0 0.7 1 0.2 1 0.8 1 1.2 1 4.5 1 0.4 1 5.9 1 6.5 1 12.8 1 4.2 1 -3.3 0 -12.5 0 -16.3 0 -10.5 0 -11.8 0 -11.4 0 -17.7 0 -17.3 0 -18.6 0 -17.9 0 -21.4 0 -19.4 0 -15.5 0 -7.7 0 -0.7 0 -1.6 0 1.4 1 0.7 1 9.5 1 1.4 1 4.1 1 6.6 1 18.4 1 16.9 1 9.2 1 -4.3 0 -5.9 0 -7.7 0 -5.4 0 -2.3 0 -4.8 0 2.3 0 -5.2 0 -10 0 -17.1 0 -14.4 0 -3.9 0 3.7 1 6.5 1 0.9 1 -4.1 0 -7 0 -12.2 0 -2.5 0 4.4 1 13.7 1 12.3 1 13.4 1 2.2 1 1.7 1 -7.2 0 -4.8 0 -2.9 0 -2.4 0 -2.5 0 -5.3 0 -7.1 0 -8 0 -8.9 0 -7.7 0 -1.1 0 4 1 9.6 1 10.9 1 13 1 14.9 1 20.1 1 10.8 1 11 1 3.8 1 10.8 1 7.6 1 10.2 1 2.2 1 -0.1 0 -1.7 0 -4.8 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 time8 seconds
R Server'Herman Ole Andreas Wold' @ 193.190.124.10:1001


Multiple Linear Regression - Estimated Regression Equation
Registraties[t] = -12.8175140054531 + 15.2694308354279D[t] + 1.01483530723242M1[t] + 1.54471804484586M2[t] + 1.84649624036127M3[t] + 0.248274435876682M4[t] -2.08362622303640M5[t] -2.53184802752098M6[t] -1.61756983200557M7[t] -2.24079163649015M8[t] + 0.0571654134537557M9[t] -2.32473524545932M10[t] + 0.210721804484585M11[t] + 0.0982218044845852t + e[t]


Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STAT
H0: parameter = 0
2-tail p-value1-tail p-value
(Intercept)-12.81751400545312.26228-5.665700
D15.26943083542791.17235213.024600
M11.014835307232422.7032290.37540.7083090.354154
M21.544718044845862.7871070.55420.5809070.290453
M31.846496240361272.7856580.66290.5092580.254629
M40.2482744358766822.784360.08920.9291640.464582
M5-2.083626223036402.788447-0.74720.4570330.228517
M6-2.531848027520982.78726-0.90840.3663160.183158
M7-1.617569832005572.786224-0.58060.563110.281555
M8-2.240791636490152.78534-0.80450.423410.211705
M90.05716541345375572.7801580.02060.9836440.491822
M10-2.324735245459322.78403-0.8350.4061010.20305
M110.2107218044845852.7795470.07580.9397510.469876
t0.09822180448458520.0206184.76388e-064e-06


Multiple Linear Regression - Regression Statistics
Multiple R0.853799987790563
R-squared0.728974419151166
Adjusted R-squared0.686524629379662
F-TEST (value)17.172627310407
F-TEST (DF numerator)13
F-TEST (DF denominator)83
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation5.55894021277874
Sum Squared Residuals2564.85075200763


Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolation
Forecast
Residuals
Prediction Error
1-3.3-11.70445689373608.40445689373604
2-3.5-11.07635235163817.57635235163808
3-3.5-10.67635235163817.17635235163805
4-8.4-12.17635235163813.77635235163805
5-15.7-14.4100312060665-1.28996879393346
6-18.7-14.7600312060665-3.93996879393346
7-22.8-13.7475312060665-9.05246879393346
8-20.7-14.2725312060665-6.42746879393345
9-14-11.8763523516381-2.12364764836195
10-6.3-14.16003120606657.86003120606655
110.73.74307848378988-3.04307848378988
120.23.63057848378988-3.43057848378988
130.84.74363559550689-3.94363559550689
141.25.37174013760491-4.17174013760491
154.55.77174013760491-1.27174013760491
160.44.27174013760490-3.87174013760490
175.92.038061283176423.86193871682359
186.51.688061283176414.81193871682359
1912.82.7005612831764210.0994387168236
204.22.175561283176422.02443871682358
21-3.3-10.69769069782307.39769069782303
22-12.5-12.98136955225150.481369552251523
23-16.3-10.3476906978230-5.95230930217697
24-10.5-10.4601906978230-0.0398093021769683
25-11.8-9.34713358610603-2.45286641389397
26-11.4-8.719029044008-2.68097095599199
27-17.7-8.319029044008-9.380970955992
28-17.3-9.819029044008-7.480970955992
29-18.6-12.0527078984365-6.5472921015635
30-17.9-12.4027078984365-5.4972921015635
31-21.4-11.3902078984365-10.0097921015635
32-19.4-11.9152078984365-7.4847921015635
33-15.5-9.519029044008-5.98097095599199
34-7.7-11.80270789843654.1027078984365
35-0.7-9.1690290440088.469029044008
36-1.6-9.2815290440087.68152904400801
371.47.10095890313694-5.70095890313694
380.77.72906344523496-7.02906344523496
399.58.129063445234951.37093655476505
401.46.62906344523495-5.22906344523495
414.14.39538459080646-0.29538459080646
426.64.045384590806462.55461540919354
4318.45.0578845908064613.3421154091935
4416.94.5328845908064612.3671154091935
459.26.929063445234952.27093655476505
46-4.3-10.62404624462156.32404624462148
47-5.9-7.990367390192992.09036739019299
48-7.7-8.102867390192990.402867390192989
49-5.4-6.989810278475981.58981027847598
50-2.3-6.361705736377964.06170573637796
51-4.8-5.961705736377971.16170573637797
522.3-7.461705736377969.76170573637796
53-5.2-9.695384590806464.49538459080646
54-10-10.04538459080650.0453845908064588
55-17.1-9.03288459080646-8.06711540919355
56-14.4-9.55788459080646-4.84211540919354
57-3.9-7.161705736377973.26170573637797
583.75.82404624462148-2.12404624462148
596.58.45772509904997-1.95772509904997
600.98.34522509904997-7.44522509904997
61-4.1-5.811148624660961.71114862466096
62-7-5.18304408256294-1.81695591743706
63-12.2-4.78304408256294-7.41695591743705
64-2.5-6.283044082562943.78304408256294
654.46.7527078984365-2.35270789843650
6613.76.40270789843657.2972921015635
6712.37.41520789843654.8847921015635
6813.46.89020789843656.5097921015635
692.29.286386752865-7.08638675286499
701.77.0027078984365-5.3027078984365
71-7.2-5.63304408256294-1.56695591743705
72-4.8-5.745544082562940.945544082562945
73-2.9-4.632486970845941.73248697084594
74-2.4-4.004382428747921.60438242874792
75-2.5-3.604382428747921.10438242874792
76-5.3-5.10438242874792-0.195617571252077
77-7.1-7.338061283176420.238061283176417
78-8-7.68806128317642-0.311938716823583
79-8.9-6.67556128317642-2.22443871682359
80-7.7-7.20056128317642-0.499438716823585
81-1.1-4.804382428747923.70438242874792
8248.18136955225152-4.18136955225153
839.610.8150484066800-1.21504840668002
8410.910.70254840668000.197451593319985
851311.81560551839701.18439448160298
8614.912.44371006049502.45628993950496
8720.112.84371006049507.25628993950496
8810.811.3437100604950-0.543710060495038
89119.110031206066541.88996879393345
903.88.76003120606654-4.96003120606654
9110.89.772531206066541.02746879393346
927.69.24753120606655-1.64753120606655
9310.211.6437100604950-1.44371006049504
942.29.36003120606654-7.16003120606655
95-0.1-3.27572077493293.1757207749329
96-1.7-3.38822077493291.6882207749329
97-4.8-2.27516366321590-2.5248363367841


Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
170.6415744296768380.7168511406463250.358425570323162
180.8281002655074220.3437994689851560.171899734492578
190.981544347583910.0369113048321780.018455652416089
200.9761581826539840.04768363469203290.0238418173460165
210.9635626361983720.0728747276032560.036437363801628
220.9682591985054010.06348160298919750.0317408014945988
230.9527501980149570.09449960397008680.0472498019850434
240.9285114944279410.1429770111441180.071488505572059
250.9014288781858460.1971422436283080.098571121814154
260.8624456491137040.2751087017725910.137554350886296
270.8862708945408410.2274582109183180.113729105459159
280.867963816282680.2640723674346410.132036183717321
290.8430813802579060.3138372394841880.156918619742094
300.8087268141962830.3825463716074350.191273185803717
310.8376501069154050.3246997861691900.162349893084595
320.8447520581987890.3104958836024220.155247941801211
330.8401665897377040.3196668205245930.159833410262296
340.813185273495770.3736294530084590.186814726504230
350.938412929910040.1231741401799200.0615870700899602
360.9638734290120820.07225314197583580.0361265709879179
370.9604517189406910.0790965621186170.0395482810593085
380.9658207982648470.06835840347030520.0341792017351526
390.957155436167610.08568912766478120.0428445638323906
400.9655997454967230.06880050900655380.0344002545032769
410.9572765804076550.08544683918468920.0427234195923446
420.948274886714380.103450226571240.05172511328562
430.9910139057498060.01797218850038890.00898609425019446
440.9983488868142450.003302226371510720.00165111318575536
450.9972485214118650.005502957176270260.00275147858813513
460.9984674825210480.003065034957904490.00153251747895224
470.9976285958304840.00474280833903130.00237140416951565
480.9960509598740540.007898080251892430.00394904012594622
490.9939655953114480.01206880937710330.00603440468855164
500.992560185126080.01487962974783860.00743981487391928
510.9883829455593080.02323410888138410.0116170544406920
520.9953480384385120.009303923122975010.00465196156148751
530.994805005979520.01038998804096140.00519499402048069
540.9914299959121030.01714000817579370.00857000408789687
550.9951352667977060.009729466404588870.00486473320229443
560.995059205692250.009881588615500240.00494079430775012
570.9939542002736320.01209159945273660.00604579972636832
580.9933538381797870.01329232364042660.0066461618202133
590.9894845019413930.02103099611721390.0105154980586070
600.9945196670268860.01096066594622840.00548033297311421
610.9909327157618370.01813456847632550.00906728423816277
620.9869169204404170.0261661591191660.013083079559583
630.9972577779128560.005484444174288430.00274222208714422
640.9959460560051990.008107887989602820.00405394399480141
650.9950574630047330.00988507399053460.0049425369952673
660.9980136289499520.003972742100096190.00198637105004810
670.9979135005308890.004172998938222260.00208649946911113
680.9994658650306990.001068269938602460.000534134969301231
690.9998646398542020.0002707202915951810.000135360145797591
700.9996895665672020.0006208668655961860.000310433432798093
710.9994008796708520.001198240658296460.000599120329148228
720.998444585837520.003110828324961940.00155541416248097
730.9967264391362050.006547121727590.003273560863795
740.992296441059860.01540711788028090.00770355894014046
750.9953144164885880.00937116702282340.0046855835114117
760.9880034549072580.02399309018548370.0119965450927419
770.9786681934672820.04266361306543680.0213318065327184
780.957487402228440.08502519554312050.0425125977715603
790.9602879556956490.07942408860870240.0397120443043512
800.9220394253211730.1559211493576540.077960574678827


Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level200.3125NOK
5% type I error level370.578125NOK
10% type I error level480.75NOK
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/26/t1227695605z7pft920lqmyi43/101sey1227695546.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/26/t1227695605z7pft920lqmyi43/101sey1227695546.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/26/t1227695605z7pft920lqmyi43/1fkvr1227695545.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/26/t1227695605z7pft920lqmyi43/1fkvr1227695545.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/26/t1227695605z7pft920lqmyi43/2s8pc1227695545.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/26/t1227695605z7pft920lqmyi43/2s8pc1227695545.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/26/t1227695605z7pft920lqmyi43/3mlu61227695545.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/26/t1227695605z7pft920lqmyi43/3mlu61227695545.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/26/t1227695605z7pft920lqmyi43/4q4s31227695545.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/26/t1227695605z7pft920lqmyi43/4q4s31227695545.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/26/t1227695605z7pft920lqmyi43/5c3ea1227695545.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/26/t1227695605z7pft920lqmyi43/5c3ea1227695545.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/26/t1227695605z7pft920lqmyi43/6xtt51227695545.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/26/t1227695605z7pft920lqmyi43/6xtt51227695545.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/26/t1227695605z7pft920lqmyi43/7r3px1227695546.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/26/t1227695605z7pft920lqmyi43/7r3px1227695546.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/26/t1227695605z7pft920lqmyi43/8o01j1227695546.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Nov/26/t1227695605z7pft920lqmyi43/8o01j1227695546.ps (open in new window)


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