Home » date » 2010 » Dec » 02 »

*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, 02 Dec 2010 14:13:24 +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/02/t1291299175ktyshbg1iv3pfm0.htm/, Retrieved Thu, 02 Dec 2010 15:13:04 +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/02/t1291299175ktyshbg1iv3pfm0.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 «
162556 807 213118 6282929 5627 37 29790 444 81767 4324047 13346 138 87550 412 153198 4108272 8533 45 54660 312 126942 1485329 4299 24 42634 166 157214 1779876 10127 37 42312 237 234817 2519076 7180 55 37704 228 60448 912684 1577 19 16275 129 47818 1443586 11409 76 18014 393 -1710 1457425 5261 70 24524 275 95350 929144 1467 30 20813 255 114337 774497 1144 28 37597 234 37884 990576 3188 21 12988 73 82340 876607 5686 52 22330 67 79801 711969 6095 23 26088 224 74996 588864 1456 15 3369 26 87161 688779 17456 145 11819 70 106113 608419 4805 35 6620 40 80570 696348 11281 75 4519 42 102129 597793 8118 88 5336 80 112477 697458 6141 93 2365 83 191778 700368 6334 212 3653 24 101792 336260 5677 37 1265 19 210568 636765 16799 345 7489 149 136996 481231 873 38 3160 90 108094 563925 3370 115 4150 136 134759 511939 2080 75 7285 97 188873 521016 2791 44 1134 63 146216 543856 2123 303 4658 114 156608 329304 818 28 9327 85 87419 406339 2043 22 5565 43 94355 493408 6243 53 3122 25 94670 416002 6353 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 time4 seconds
R Server'Herman Ole Andreas Wold' @ www.wessa.org


Multiple Linear Regression - Estimated Regression Equation
Wealth[t] = -51843.9526262499 + 19.7292480567881Costs[t] + 3247.59353619237Orders[t] + 2.14055513624031Dividends[t] + 6.25156768943924`Profit/Trades`[t] -5.77246339770221`Profit/Cost`[t] + e[t]


Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STAT
H0: parameter = 0
2-tail p-value1-tail p-value
(Intercept)-51843.952626249998846.605805-0.52450.6014070.300704
Costs19.72924805678813.973594.96514e-062e-06
Orders3247.59353619237685.4826964.73779e-065e-06
Dividends2.140555136240311.0061732.12740.0365040.018252
`Profit/Trades`6.251567689439243.015482.07320.0414170.020709
`Profit/Cost`-5.7724633977022130.374536-0.190.8497630.424882


Multiple Linear Regression - Regression Statistics
Multiple R0.923991244554472
R-squared0.853759820013322
Adjusted R-squared0.844504112419228
F-TEST (value)92.2414425190076
F-TEST (DF numerator)5
F-TEST (DF denominator)79
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation362485.57554555
Sum Squared Residuals10380267605808.5


Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolation
Forecast
Residuals
Prediction Error
162829296267226.4979682515702.5020317534
243240472235485.471314212088561.52868579
341082723394473.88365963713798.116340369
414853292338269.22992978-852940.229929776
517798761728014.6160689151861.3839310949
625190762099827.16518419248.834820002
79126841571620.26467589-658936.26467589
81443586861431.619722117582154.380277883
914574251608688.05748566-151263.057485659
109291441538184.15731031-609040.15731031
117744971438652.05598262-664155.055982624
129905761550755.04087773-560179.040877733
13876607652973.404980854223633.595019146
14711969815087.902242814-103118.902242814
155888641359862.39138866-770998.391388663
16688779393924.600642096294854.399357904
17608419665645.051391097-57226.0513910974
18696348451222.938633999245125.061366001
19597793442566.453095411155226.546904589
20697458591856.056043921105601.943956079
21700368713251.032954509-12883.0329545092
22336260351337.192449218-15077.1924492184
23636765588578.82302377448186.1769762262
24481231878285.579391843-397054.579391843
25563925554569.0062099479355.99379005269
26511939772734.543375396-260795.543375396
27521016828387.399756952-307371.399756952
28543856499633.83904595544222.1609540448
29329304750460.760119346-421156.760119346
30406339607986.34262553-201647.34262553
31493408438290.51127109255117.4887289076
32416002332904.86251628783097.1374837126
33337430519390.022123477-181960.022123477
34408247370494.66832209937752.3316779009
35418799539860.047624924-121061.047624924
36247405230880.23424145216524.7657585484
37283662225282.01630931158379.9836906893
38420383261967.121270628158415.878729372
39431809459404.8879643-27595.8879643005
40357257432290.204029609-75033.2040296091
41373177339765.8303803733411.1696196303
42369419456857.497180685-87438.4971806855
43376641260165.368757228116475.631242772
44364885202265.161271942162619.838728058
45329118234247.58933532294870.410664678
46317365258336.22961046759028.7703895333
47153661290348.227959363-136687.227959363
48513294347050.41947074166243.58052926
49264512218399.20275993846112.7972400621
50129302216648.662318246-87346.6623182457
51268673226606.20019904542066.7998009548
52353179223958.382230196129220.617769804
53211742197765.36131554213976.6386844581
54485538352911.279961908132626.720038092
55279268203489.87035642675778.1296435741
56219060255309.333730768-36249.3337307681
57325806855783.040699587-529977.040699587
58349729239684.205841234110044.794158766
59305442220070.62025720885371.3797427918
60329537228308.74138653101228.25861347
61327055181276.406672442145778.593327558
62356245193040.487166975163204.512833025
63404480497618.38912923-93138.3891292297
64318314226048.65166246492265.3483375364
65311807122588.084774973189218.915225027
66337724233020.967691249104703.032308751
67326431418636.660181122-92205.6601811217
68327556284118.01436066743437.985639333
69356850188718.506292663168131.493707337
70321024194864.426163936126159.573836064
71355822156032.257272854199789.742727146
72324047261659.12509624262387.8749037582
73328576209291.4544658119284.5455342
74332013219368.287137922112644.712862078
75319634324993.19938525-5359.19938525022
76279230265096.61908161514133.3809183849
775326821028447.69601692-495765.696016921
78171493166986.5296550074506.47034499305
79302211220081.63708863182129.3629113688
80286146282977.5829736313168.41702636893
81306844181291.451859568125552.548140432
82307705298631.4401454389073.55985456208
83299446204888.78550700194557.214492999
84-78375340572.859397513-418947.859397513
85235098438512.302578535-203414.302578535


Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
90.9999520704939829.5859012036465e-054.79295060182325e-05
100.9999457408002990.000108518399402215.42591997011051e-05
110.999874281717790.0002514365644187480.000125718282209374
120.9998863429879030.0002273140241948750.000113657012097438
130.9999719713104015.60573791979386e-052.80286895989693e-05
140.9999941755953941.16488092113403e-055.82440460567014e-06
150.999993843225571.23135488589638e-056.15677442948188e-06
1611.71201097727476e-198.5600548863738e-20
1715.65087461543498e-202.82543730771749e-20
1811.70912462204404e-228.54562311022019e-23
1914.0463030590122e-232.0231515295061e-23
2012.0964684362509e-251.04823421812545e-25
2115.5237360166608e-252.7618680083304e-25
2211.76252791852425e-248.81263959262126e-25
2313.50272226630326e-251.75136113315163e-25
2412.2211104661777e-241.11055523308885e-24
2511.54972275234054e-257.7486137617027e-26
2618.828740328167e-254.4143701640835e-25
2714.0952804144437e-242.04764020722185e-24
2814.76215559591186e-252.38107779795593e-25
2911.37462386351657e-266.87311931758283e-27
3012.19296181165224e-261.09648090582612e-26
3116.43972121349973e-273.21986060674986e-27
3212.5877901644983e-261.29389508224915e-26
3318.59855689561831e-264.29927844780916e-26
3413.8835645151734e-251.9417822575867e-25
3512.21129173327592e-241.10564586663796e-24
3612.9863965376057e-241.49319826880285e-24
3711.06547903053862e-235.32739515269312e-24
3812.53735404758405e-231.26867702379202e-23
3914.21186914661241e-232.1059345733062e-23
4013.09224241867536e-231.54612120933768e-23
4111.47840942510266e-227.39204712551329e-23
4218.25043819783678e-224.12521909891839e-22
4315.6571611601275e-222.82858058006375e-22
4411.4729799630954e-217.36489981547702e-22
4518.49761739107581e-214.2488086955379e-21
4615.29181360953162e-202.64590680476581e-20
4714.23565611120482e-202.11782805560241e-20
4813.87406416362939e-211.9370320818147e-21
4911.64774265202473e-208.23871326012367e-21
5011.03913295180695e-205.19566475903474e-21
5116.45328444745121e-203.22664222372561e-20
5211.21076067896913e-196.05380339484564e-20
5313.80963520432642e-201.90481760216321e-20
5412.82310574775931e-201.41155287387965e-20
5512.6080679281463e-191.30403396407315e-19
5612.86253116341317e-191.43126558170658e-19
5717.78986687239409e-203.89493343619704e-20
5818.90231388877267e-194.45115694438634e-19
5914.81044685234348e-182.40522342617174e-18
6015.03468250475543e-172.51734125237772e-17
6115.54673918689674e-162.77336959344837e-16
620.9999999999999984.03265527231981e-152.01632763615991e-15
630.9999999999999784.45823664676965e-142.22911832338483e-14
640.9999999999998842.32895594878605e-131.16447797439303e-13
650.9999999999987762.44865518298563e-121.22432759149281e-12
660.9999999999938391.23221530799729e-116.16107653998644e-12
670.999999999933441.33118376594874e-106.65591882974368e-11
680.9999999993161811.36763742612205e-096.83818713061026e-10
690.9999999992731751.45364913061697e-097.26824565308485e-10
700.9999999914800311.70399378603937e-088.51996893019683e-09
710.9999999646836177.06327664868426e-083.53163832434213e-08
720.9999995739052658.52189470219706e-074.26094735109853e-07
730.9999953103594189.37928116399244e-064.68964058199622e-06
740.9999534479091689.31041816634891e-054.65520908317445e-05
750.9997067120438230.00058657591235360.0002932879561768
760.9990490451968580.001901909606284460.000950954803142228


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


http://www.freestatistics.org/blog/date/2010/Dec/02/t1291299175ktyshbg1iv3pfm0/16dz41291299200.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/02/t1291299175ktyshbg1iv3pfm0/16dz41291299200.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/02/t1291299175ktyshbg1iv3pfm0/26dz41291299200.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/02/t1291299175ktyshbg1iv3pfm0/26dz41291299200.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/02/t1291299175ktyshbg1iv3pfm0/3h4g61291299200.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/02/t1291299175ktyshbg1iv3pfm0/3h4g61291299200.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/02/t1291299175ktyshbg1iv3pfm0/4h4g61291299200.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/02/t1291299175ktyshbg1iv3pfm0/4h4g61291299200.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/02/t1291299175ktyshbg1iv3pfm0/5h4g61291299200.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/02/t1291299175ktyshbg1iv3pfm0/5h4g61291299200.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/02/t1291299175ktyshbg1iv3pfm0/6rvfr1291299200.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/02/t1291299175ktyshbg1iv3pfm0/6rvfr1291299200.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/02/t1291299175ktyshbg1iv3pfm0/724ec1291299200.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/02/t1291299175ktyshbg1iv3pfm0/724ec1291299200.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/02/t1291299175ktyshbg1iv3pfm0/824ec1291299200.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/02/t1291299175ktyshbg1iv3pfm0/824ec1291299200.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/02/t1291299175ktyshbg1iv3pfm0/924ec1291299200.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/02/t1291299175ktyshbg1iv3pfm0/924ec1291299200.ps (open in new window)


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