Home » date » 2010 » Dec » 03 »

*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: Fri, 03 Dec 2010 20:58:22 +0000
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2010/Dec/03/t12914097994ajmfucgi7m87op.htm/, Retrieved Fri, 03 Dec 2010 21:56:49 +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/2010/Dec/03/t12914097994ajmfucgi7m87op.htm/},
    year = {2010},
}
@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 = {2010},
    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:
 
Dataseries X:
» Textbox « » Textfile « » CSV «
1 162556 162556 1081 1081 213118 213118 6282929 1 29790 29790 309 309 81767 81767 4324047 1 87550 87550 458 458 153198 153198 4108272 0 84738 0 588 0 -26007 0 -1212617 1 54660 54660 299 299 126942 126942 1485329 1 42634 42634 156 156 157214 157214 1779876 0 40949 0 481 0 129352 0 1367203 1 42312 42312 323 323 234817 234817 2519076 1 37704 37704 452 452 60448 60448 912684 1 16275 16275 109 109 47818 47818 1443586 0 25830 0 115 0 245546 0 1220017 0 12679 0 110 0 48020 0 984885 1 18014 18014 239 239 -1710 -1710 1457425 0 43556 0 247 0 32648 0 -572920 1 24524 24524 497 497 95350 95350 929144 0 6532 0 103 0 151352 0 1151176 0 7123 0 109 0 288170 0 790090 1 20813 20813 502 502 114337 114337 774497 1 37597 37597 248 248 37884 37884 990576 0 17821 0 373 0 122844 0 454195 1 12988 12988 119 119 82340 82340 876607 1 22330 22330 84 84 79801 79801 711969 0 13326 0 102 0 165548 0 702380 0 16189 0 295 0 116384 0 264449 0 7146 0 105 0 134028 0 450033 0 15824 0 64 0 63838 0 541063 1 26088 26088 267 2 etc...
 
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'Gwilym Jenkins' @ 72.249.127.135


Multiple Linear Regression - Estimated Regression Equation
Wealth[t] = + 169088.919201667 + 44386.189096122Group[t] -7.97639691845783Costs[t] + 44.9817209607593GrCosts[t] + 20.8889825495510Trades[t] -124.124022764451GrTrades[t] + 3.24416126930998Dividends[t] -1.98194712090063GrDiv[t] + e[t]


Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STAT
H0: parameter = 0
2-tail p-value1-tail p-value
(Intercept)169088.919201667131306.0334971.28770.2010640.100532
Group44386.189096122208024.5024830.21340.831510.415755
Costs-7.976396918457835.115122-1.55940.1223410.06117
GrCosts44.98172096075936.9165416.503500
Trades20.8889825495510371.1155350.05630.9552350.477618
GrTrades-124.124022764451767.620535-0.16170.8718970.435948
Dividends3.244161269309981.0525723.08210.0027120.001356
GrDiv-1.981947120900631.759834-1.12620.2630050.131502


Multiple Linear Regression - Regression Statistics
Multiple R0.879612234896614
R-squared0.773717683779815
Adjusted R-squared0.756500551023932
F-TEST (value)44.9388231333357
F-TEST (DF numerator)7
F-TEST (DF denominator)92
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation431863.421873433
Sum Squared Residuals17158553394005.2


Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolation
Forecast
Residuals
Prediction Error
162829296386316.03972655-103387.039726548
243240471387171.548364542936875.45163546
341082723599378.26289088508893.737109118
4-1212617-578903.183266423-633713.816733577
514853292365546.83185312-880217.831853115
617798761973493.16237177-193617.162371775
71367203272149.7909018571095053.20909814
825190762042288.80087328476787.199126724
99126841638359.92865464-725675.928654639
101443586864840.69385146578745.30614854
111220017762051.642825089457965.357174911
12984885226038.594905255758846.405094745
131457425853257.454790668604167.545209332
14-572920-67256.0691685112-505663.930831489
159291441190037.97917522-260893.979175218
161151176610148.956165508541027.043834492
177900901049419.89602645-259329.896026451
187744971076160.70648901-301663.706489011
199905761626979.70714124-636403.707141244
20454195433258.88717592820936.1128240724
21876607785746.00015365490860.999846346
227119691131858.20204154-419889.202041545
23702380601990.539898081100389.460101919
24264449423689.744508243-159240.744508243
25450033549091.376593148-99058.3765931484
26541063251308.076357372289754.923642628
275888641245967.25845008-657103.25845008
28-37216182271.458702259-219487.458702259
29783310205878.222469817577431.777530183
30467359223386.252329554243972.747670446
31688779445271.311259793243507.688740207
32608419776003.384665646-167584.384665646
33696348555604.605625711140743.394374289
34597793504552.31943731893240.680562682
358217301130507.00577152-308777.005771524
36377934356188.70384334521745.296156655
37651939375975.638388432275963.361611568
38697458544543.539900742152914.460099258
39700368534902.036434504165465.963565496
40225986398558.90854616-172572.908546160
41348695540842.734605645-192147.734605645
42373683373835.800312194-152.800312193984
43501709442054.64603708259654.3539629178
44413743497746.224305792-84003.224305792
45379825357832.22040532521992.779594675
46336260474661.218654044-138401.218654044
47636765523384.640967973113380.359032027
48481231630284.586576875-149053.586576875
49469107527279.41439274-58172.4143927402
50211928399423.818523135-187495.818523135
51563925455700.324086413108224.675913587
52511939521656.663466601-9717.66346660082
53521016709585.037173761-188569.037173761
54543856423270.973170767120585.026829233
55329304567207.604686967-237903.604686967
56423262351122.22580499872139.7741950017
57509665302724.90430399206940.09569601
58455881412204.19074477243676.8092552283
59367772483832.730816631-116060.730816631
60406339658538.525218427-252199.525218427
61493408533653.905676261-40245.905676261
62232942353402.03877954-120460.03877954
63416002444989.552020461-28987.5520204609
64337430579609.322119898-242179.322119898
65361517340862.95269707420654.0473029265
66360962377823.521245926-16861.5212459258
67235561425714.507730913-190153.507730913
68408247410730.912850956-2483.91285095649
69450296585055.543336288-134759.543336288
70418799482885.739045836-64086.7390458364
71247405354665.000350160-107260.000350160
72378519255930.115313601122588.884686399
73326638505137.097888236-178499.097888236
74328233422113.100354128-93880.100354128
75386225539735.785533787-153510.785533787
76283662357285.808174515-73623.8081745145
77370225534324.488256184-164099.488256184
78269236403642.860295325-134406.860295325
79365732386678.804676956-20946.8046769559
80420383369243.38169207651139.6183079244
81345811356460.047525544-10649.0475255444
82431809490224.10695931-58415.1069593097
83418876614178.381228799-195302.381228799
84297476291522.0240923425953.97590765828
85416776498558.852313691-81782.8523136906
86357257497759.864530765-140502.864530765
87458343434659.81861436223683.1813856377
88388386502337.116178859-113951.116178859
89358934499546.634035402-140612.634035402
90407560500063.927333786-92503.9273337863
91392558464197.229504247-71639.2295042473
92373177423012.511795306-49835.5117953057
93428370359492.05381601668877.9461839836
94369419607675.859824658-238256.859824658
95358649276705.14959082581943.850409175
96376641398131.882316998-21490.8823169976
97467427533660.453725924-66233.453725924
98364885333947.33632301530937.663676985
99436230571292.142706832-135062.142706832
100329118355938.468166609-26820.4681666091


Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
1111.19037910383521e-225.95189551917607e-23
1217.09622549790317e-243.54811274895158e-24
1311.75240555565901e-268.76202777829504e-27
1418.64771326849173e-304.32385663424586e-30
1513.48482187955609e-301.74241093977805e-30
1611.54903114429186e-337.74515572145929e-34
1715.02888781240301e-342.51444390620151e-34
1811.79261876268328e-338.9630938134164e-34
1915.7979916699563e-342.89899583497815e-34
2018.3294400783142e-344.1647200391571e-34
2112.12115621522508e-341.06057810761254e-34
2215.13289237992928e-342.56644618996464e-34
2312.20112279983348e-331.10056139991674e-33
2411.92306207037696e-339.61531035188479e-34
2511.11583399949318e-325.57916999746588e-33
2616.1191085554401e-323.05955427772005e-32
2711.28998389172075e-316.44991945860376e-32
2812.08403251733892e-331.04201625866946e-33
2919.7099972021833e-364.85499860109166e-36
3015.2429184785328e-352.6214592392664e-35
3111.71404595742551e-358.57022978712756e-36
3218.16951026725391e-354.08475513362696e-35
3317.53813570213431e-363.76906785106715e-36
3411.15399669668171e-355.76998348340855e-36
3511.42187301601965e-357.10936508009824e-36
3613.08203244106513e-351.54101622053256e-35
3711.41690410036761e-357.08452050183807e-36
3814.30924441872554e-372.15462220936277e-37
3919.50476240058416e-374.75238120029208e-37
4018.3100264884597e-374.15501324422985e-37
4116.09921396510381e-363.04960698255190e-36
4219.23647907619842e-364.61823953809921e-36
4312.29862236800554e-351.14931118400277e-35
4411.10584542388862e-345.52922711944309e-35
4519.33416216275592e-344.66708108137796e-34
4614.84714688174923e-332.42357344087461e-33
4713.13892531342864e-321.56946265671432e-32
4812.87224279829764e-311.43612139914882e-31
4912.59374745085057e-301.29687372542528e-30
5017.22299487690739e-313.61149743845370e-31
5114.0969232599299e-312.04846162996495e-31
5212.25622532240611e-301.12811266120306e-30
5312.07686513849199e-291.03843256924600e-29
5413.24451528472277e-291.62225764236138e-29
5512.63571497776064e-291.31785748888032e-29
5611.14631382803522e-285.73156914017611e-29
5711.20981261721505e-286.04906308607526e-29
5811.35705744747111e-276.78528723735554e-28
5911.42748543821370e-267.13742719106848e-27
6011.40564114929163e-257.02820574645815e-26
6111.98227506457302e-259.91137532286511e-26
6212.15815226642559e-251.07907613321279e-25
6311.75690317262030e-248.78451586310152e-25
6411.47244815175061e-237.36224075875307e-24
6511.65521730335069e-228.27608651675343e-23
6611.45516959849100e-217.27584799245499e-22
6715.47007106774782e-222.73503553387391e-22
6815.20918864829693e-212.60459432414846e-21
6915.41374926448516e-202.70687463224258e-20
7014.57565060986389e-192.28782530493195e-19
7111.86605530399817e-189.33027651999083e-19
7212.13298750365173e-171.06649375182586e-17
7317.3154061652939e-173.65770308264695e-17
7416.99764274483525e-163.49882137241762e-16
750.9999999999999975.49311158792649e-152.74655579396325e-15
760.9999999999999882.44969590945067e-141.22484795472534e-14
770.99999999999991.99749067643547e-139.98745338217737e-14
780.9999999999999161.67848509114937e-138.39242545574683e-14
790.9999999999990221.95548250133224e-129.77741250666118e-13
800.9999999999904031.91940409596353e-119.59702047981763e-12
810.9999999998931682.13663085139701e-101.06831542569851e-10
820.9999999995602468.79507877185377e-104.39753938592689e-10
830.9999999964550117.08997742598527e-093.54498871299263e-09
840.9999999784122694.31754620803546e-082.15877310401773e-08
850.99999972818175.43636601460318e-072.71818300730159e-07
860.999997354878245.29024351957893e-062.64512175978947e-06
870.9999849401925283.01196149437864e-051.50598074718932e-05
880.9998660662680650.0002678674638704750.000133933731935238
890.9996476529299960.000704694140008080.00035234707000404


Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level791NOK
5% type I error level791NOK
10% type I error level791NOK
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Dec/03/t12914097994ajmfucgi7m87op/10m6i21291409893.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/03/t12914097994ajmfucgi7m87op/10m6i21291409893.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/03/t12914097994ajmfucgi7m87op/1fnlq1291409893.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/03/t12914097994ajmfucgi7m87op/1fnlq1291409893.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/03/t12914097994ajmfucgi7m87op/2fnlq1291409893.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/03/t12914097994ajmfucgi7m87op/2fnlq1291409893.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/03/t12914097994ajmfucgi7m87op/3pwkb1291409893.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/03/t12914097994ajmfucgi7m87op/3pwkb1291409893.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/03/t12914097994ajmfucgi7m87op/4pwkb1291409893.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/03/t12914097994ajmfucgi7m87op/4pwkb1291409893.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/03/t12914097994ajmfucgi7m87op/5pwkb1291409893.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/03/t12914097994ajmfucgi7m87op/5pwkb1291409893.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/03/t12914097994ajmfucgi7m87op/6in2e1291409893.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/03/t12914097994ajmfucgi7m87op/6in2e1291409893.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/03/t12914097994ajmfucgi7m87op/7tfjz1291409893.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/03/t12914097994ajmfucgi7m87op/7tfjz1291409893.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/03/t12914097994ajmfucgi7m87op/8tfjz1291409893.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/03/t12914097994ajmfucgi7m87op/8tfjz1291409893.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/03/t12914097994ajmfucgi7m87op/9tfjz1291409893.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/03/t12914097994ajmfucgi7m87op/9tfjz1291409893.ps (open in new window)


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