Home » date » 2009 » Nov » 19 »

*The author of this computation has been verified*
R Software Module: /rwasp_multipleregression.wasp (opens new window with default values)
Title produced by software: Multiple Regression
Date of computation: Thu, 19 Nov 2009 09:08:19 -0700
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2009/Nov/19/t1258647099rpqmf1n3gb11ipz.htm/, Retrieved Thu, 19 Nov 2009 17:11:51 +0100
 
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/2009/Nov/19/t1258647099rpqmf1n3gb11ipz.htm/},
    year = {2009},
}
@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 = {2009},
    note = {{ISBN} 3-900051-07-0},
    url = {http://www.R-project.org},
}
 
Original text written by user:
 
IsPrivate?
No (this computation is public)
 
User-defined keywords:
ws7l1
 
Dataseries X:
» Textbox « » Textfile « » CSV «
98,8 6,3 100,5 6,1 110,4 6,1 96,4 6,3 101,9 6,3 106,2 6 81 6,2 94,7 6,4 101 6,8 109,4 7,5 102,3 7,5 90,7 7,6 96,2 7,6 96,1 7,4 106 7,3 103,1 7,1 102 6,9 104,7 6,8 86 7,5 92,1 7,6 106,9 7,8 112,6 8 101,7 8,1 92 8,2 97,4 8,3 97 8,2 105,4 8 102,7 7,9 98,1 7,6 104,5 7,6 87,4 8,3 89,9 8,4 109,8 8,4 111,7 8,4 98,6 8,4 96,9 8,6 95,1 8,9 97 8,8 112,7 8,3 102,9 7,5 97,4 7,2 111,4 7,4 87,4 8,8 96,8 9,3 114,1 9,3 110,3 8,7 103,9 8,2 101,6 8,3 94,6 8,5 95,9 8,6 104,7 8,5 102,8 8,2 98,1 8,1 113,9 7,9 80,9 8,6 95,7 8,7 113,2 8,7 105,9 8,5 108,8 8,4 102,3 8,5 99 8,7 100,7 8,7 115,5 8,6 100,7 8,5 109,9 8,3 114,6 8 85,4 8,2 100,5 8,1 114,8 8,1 116,5 8 112,9 7,9 102 7,9 106 8 105,3 8 118,8 7,9 106,1 8 109,3 7,7 117,2 7,2 92,5 7,5 104,2 7,3 112,5 7 122,4 7 113,3 7 100 7,2 110,7 7,3 112,8 7,1 109,8 6,8 117,3 6,4 109,1 6,1 115,9 6,5 96 7,7 99,8 7,9 116,8 7,5 115,7 6,9 99,4 6,6 94,3 6,9 91 7,7
 
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 time4 seconds
R Server'Gwilym Jenkins' @ 72.249.127.135


Multiple Linear Regression - Estimated Regression Equation
Y[t] = + 113.617161955274 -1.35094011427636X[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.6171619552748.87460912.802500
X-1.350940114276361.142461-1.18250.2399650.119983


Multiple Linear Regression - Regression Statistics
Multiple R0.120437052145418
R-squared0.0145050835294782
Adjusted R-squared0.00413145282978844
F-TEST (value)1.39826488424270
F-TEST (DF numerator)1
F-TEST (DF denominator)95
p-value0.239965421501360
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation8.87412361611837
Sum Squared Residuals7481.25664564423


Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolation
Forecast
Residuals
Prediction Error
198.8105.106239235332-6.30623923533175
2100.5105.376427258188-4.87642725818804
3110.4105.3764272581885.02357274181197
496.4105.106239235333-8.70623923533275
5101.9105.106239235333-3.20623923533275
6106.2105.5115212696160.688478730384335
781105.241333246760-24.2413332467604
894.7104.971145223905-10.2711452239051
9101104.430769178195-3.43076917819458
10109.4103.4851110982015.91488890179888
11102.3103.485111098201-1.18511109820112
1290.7103.350017086773-12.6500170867735
1396.2103.350017086773-7.15001708677348
1496.1103.620205109629-7.52020510962876
15106103.7552991210562.24470087894361
16103.1104.025487143912-0.925487143911673
17102104.295675166767-2.29567516676694
18104.7104.4307691781950.269230821805427
1986103.485111098201-17.4851110982011
2092.1103.350017086773-11.2500170867735
21106.9103.0798290639183.82017093608179
22112.6102.8096410410639.79035895893706
23101.7102.674547029635-0.9745470296353
2492102.539453018208-10.5394530182077
2597.4102.40435900678-5.00435900678002
2697102.539453018208-5.53945301820767
27105.4102.8096410410632.59035895893707
28102.7102.944735052491-0.244735052490571
2998.1103.350017086773-5.25001708677349
30104.5103.3500170867731.14998291322652
3187.4102.40435900678-15.0043590067800
3289.9102.269264995352-12.3692649953524
33109.8102.2692649953527.5307350046476
34111.7102.2692649953529.43073500464761
3598.6102.269264995352-3.6692649953524
3696.9101.999076972497-5.09907697249711
3795.1101.593794938214-6.49379493821422
3897101.728888949642-4.72888894964185
39112.7102.4043590067810.2956409932200
40102.9103.485111098201-0.585111098201115
4197.4103.890393132484-6.49039313248402
42111.4103.6202051096297.77979489037125
4387.4101.728888949642-14.3288889496418
4496.8101.053418892504-4.25341889250367
45114.1101.05341889250413.0465811074963
46110.3101.8639829610698.43601703893051
47103.9102.5394530182081.36054698179234
48101.6102.40435900678-0.804359006780033
4994.6102.134170983925-7.53417098392476
5095.9101.999076972497-6.09907697249711
51104.7102.1341709839252.56582901607525
52102.8102.5394530182080.260546981792331
5398.1102.674547029635-4.57454702963531
54113.9102.94473505249110.9552649475094
5580.9101.999076972497-21.0990769724971
5695.7101.863982961069-6.16398296106948
57113.2101.86398296106911.3360170389305
58105.9102.1341709839253.76582901607525
59108.8102.2692649953526.5307350046476
60102.3102.1341709839250.165829016075242
6199101.863982961069-2.86398296106948
62100.7101.863982961069-1.16398296106948
63115.5101.99907697249713.5009230275029
64100.7102.134170983925-1.43417098392475
65109.9102.404359006787.49564099321998
66114.6102.80964104106311.7903589589371
6785.4102.539453018208-17.1394530182077
68100.5102.674547029635-2.1745470296353
69114.8102.67454702963512.1254529703647
70116.5102.80964104106313.6903589589371
71112.9102.9447350524919.95526494750943
72102102.944735052491-0.944735052490574
73106102.8096410410633.19035895893706
74105.3102.8096410410632.49035895893706
75118.8102.94473505249115.8552649475094
76106.1102.8096410410633.29035895893706
77109.3103.2149230753466.08507692465415
78117.2103.89039313248413.3096068675160
7992.5103.485111098201-10.9851110982011
80104.2103.7552991210560.444700878943609
81112.5104.1605811553398.3394188446607
82122.4104.16058115533918.2394188446607
83113.3104.1605811553399.1394188446607
84100103.890393132484-3.89039313248403
85110.7103.7552991210566.94470087894361
86112.8104.0254871439128.77451285608833
87109.8104.4307691781955.36923082180542
88117.3104.97114522390512.3288547760949
89109.1105.3764272581883.72357274181196
90115.9104.83605121247711.0639487875225
9196103.214923075346-7.21492307534585
9299.8102.944735052491-3.14473505249058
93116.8103.48511109820113.3148889017989
94115.7104.29567516676711.4043248332331
9599.4104.700957201050-5.30095720104984
9694.3104.295675166767-9.99567516676694
9791103.214923075346-12.2149230753458


Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
50.1490749675624600.2981499351249210.85092503243754
60.06466328698369630.1293265739673930.935336713016304
70.6730329026097370.6539341947805250.326967097390263
80.5704883416447190.8590233167105620.429511658355281
90.5816752894519480.8366494210961050.418324710548052
100.5564973141843820.8870053716312370.443502685815618
110.459683324823140.919366649646280.54031667517686
120.537620154112450.92475969177510.46237984588755
130.4638398593218820.9276797186437630.536160140678118
140.3937729155404820.7875458310809640.606227084459518
150.3605906497467590.7211812994935180.639409350253241
160.2961061950935880.5922123901871760.703893804906412
170.2353027028750440.4706054057500870.764697297124956
180.1946921734155740.3893843468311480.805307826584426
190.3363136865938080.6726273731876160.663686313406192
200.3283506962731290.6567013925462580.671649303726871
210.3287457707544770.6574915415089540.671254229245523
220.4104108428105940.8208216856211880.589589157189406
230.3424540349893330.6849080699786660.657545965010667
240.3556134001611630.7112268003223250.644386599838837
250.3012633990621910.6025267981243830.698736600937809
260.2539965478741790.5079930957483580.746003452125821
270.2232012535527610.4464025071055230.776798746447239
280.1806966936446510.3613933872893010.81930330635535
290.1495866924625040.2991733849250080.850413307537496
300.1229042642859050.2458085285718090.877095735714095
310.1880284207814550.3760568415629100.811971579218545
320.2119934446231340.4239868892462670.788006555376866
330.2412894798777030.4825789597554060.758710520122297
340.2878430284390130.5756860568780260.712156971560987
350.2418445320980430.4836890641960850.758155467901957
360.2053716735808510.4107433471617030.794628326419148
370.1785106796855760.3570213593711520.821489320314424
380.1464864654710450.292972930942090.853513534528955
390.1910260474745470.3820520949490940.808973952525453
400.1582866382675570.3165732765351150.841713361732443
410.1467492457484610.2934984914969210.85325075425154
420.1584917746850740.3169835493701480.841508225314926
430.2213133061351680.4426266122703350.778686693864832
440.1838752886758820.3677505773517630.816124711324118
450.2774575550189970.5549151100379940.722542444981003
460.2912402897072670.5824805794145340.708759710292733
470.2467174560172960.4934349120345920.753282543982704
480.2034957132525980.4069914265051960.796504286747402
490.1917122816857470.3834245633714950.808287718314253
500.1705228187351050.341045637470210.829477181264895
510.1409388028677730.2818776057355460.859061197132227
520.1120887898227360.2241775796454720.887911210177264
530.09478186120123250.1895637224024650.905218138798767
540.1174860792294210.2349721584588420.882513920770579
550.3502423485006430.7004846970012860.649757651499357
560.3329324562578880.6658649125157760.667067543742112
570.3749946055034460.7499892110068930.625005394496554
580.330356367515750.66071273503150.66964363248425
590.3064035894657610.6128071789315220.693596410534239
600.2571728379977140.5143456759954270.742827162002286
610.2192748412240030.4385496824480060.780725158775997
620.1806037914971740.3612075829943480.819396208502826
630.2377763585222540.4755527170445080.762223641477746
640.1959024980021440.3918049960042890.804097501997856
650.1818598301221200.3637196602442410.81814016987788
660.2124223712289640.4248447424579280.787577628771036
670.4064033347219750.812806669443950.593596665278025
680.3640403101245070.7280806202490150.635959689875493
690.396655689465520.793311378931040.60334431053448
700.4694416075045380.9388832150090760.530558392495462
710.4772257180449410.9544514360898820.522774281955059
720.4147652760892590.8295305521785180.585234723910741
730.3552950946721820.7105901893443640.644704905327818
740.2963457970044830.5926915940089670.703654202995517
750.4502494589406940.9004989178813870.549750541059306
760.4016712476301670.8033424952603340.598328752369833
770.3763723732375330.7527447464750670.623627626762467
780.442000848831670.884001697663340.55799915116833
790.484548173928260.969096347856520.51545182607174
800.4088963832807710.8177927665615410.59110361671923
810.3646399619903750.7292799239807510.635360038009624
820.5440427935705970.9119144128588070.455957206429403
830.5127501005865460.9744997988269080.487249899413454
840.4513984379521590.9027968759043190.548601562047841
850.4058278292194580.8116556584389160.594172170780542
860.3778835026580510.7557670053161010.622116497341950
870.2940765788046410.5881531576092820.705923421195359
880.2725091497966500.5450182995933010.72749085020335
890.190883463595090.381766927190180.80911653640491
900.1742834731350030.3485669462700050.825716526864997
910.1177622506223660.2355245012447320.882237749377634
920.06178033223748730.1235606644749750.938219667762513


Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level00OK
5% type I error level00OK
10% type I error level00OK
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2009/Nov/19/t1258647099rpqmf1n3gb11ipz/104lhv1258646894.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/19/t1258647099rpqmf1n3gb11ipz/104lhv1258646894.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Nov/19/t1258647099rpqmf1n3gb11ipz/1694v1258646894.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/19/t1258647099rpqmf1n3gb11ipz/1694v1258646894.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Nov/19/t1258647099rpqmf1n3gb11ipz/22mr91258646894.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/19/t1258647099rpqmf1n3gb11ipz/22mr91258646894.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Nov/19/t1258647099rpqmf1n3gb11ipz/33gpu1258646894.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/19/t1258647099rpqmf1n3gb11ipz/33gpu1258646894.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Nov/19/t1258647099rpqmf1n3gb11ipz/4ww511258646894.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/19/t1258647099rpqmf1n3gb11ipz/4ww511258646894.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Nov/19/t1258647099rpqmf1n3gb11ipz/5j59q1258646894.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/19/t1258647099rpqmf1n3gb11ipz/5j59q1258646894.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Nov/19/t1258647099rpqmf1n3gb11ipz/67awd1258646894.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/19/t1258647099rpqmf1n3gb11ipz/67awd1258646894.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Nov/19/t1258647099rpqmf1n3gb11ipz/7kv1x1258646894.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/19/t1258647099rpqmf1n3gb11ipz/7kv1x1258646894.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Nov/19/t1258647099rpqmf1n3gb11ipz/8kawt1258646894.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/19/t1258647099rpqmf1n3gb11ipz/8kawt1258646894.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Nov/19/t1258647099rpqmf1n3gb11ipz/9ybu61258646894.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/19/t1258647099rpqmf1n3gb11ipz/9ybu61258646894.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