Home » date » 2010 » Dec » 02 »

4 parameters

*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 19:17:20 +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/t1291317370xgtideskykzrfp5.htm/, Retrieved Thu, 02 Dec 2010 20:16:20 +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/t1291317370xgtideskykzrfp5.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 1081 213118 6282929 1 29790 309 81767 4324047 1 87550 458 153198 4108272 0 84738 588 -26007 -1212617 1 54660 299 126942 1485329 1 42634 156 157214 1779876 0 40949 481 129352 1367203 1 42312 323 234817 2519076 1 37704 452 60448 912684 1 16275 109 47818 1443586 0 25830 115 245546 1220017 0 12679 110 48020 984885 1 18014 239 -1710 1457425 0 43556 247 32648 -572920 1 24524 497 95350 929144 0 6532 103 151352 1151176 0 7123 109 288170 790090 1 20813 502 114337 774497 1 37597 248 37884 990576 0 17821 373 122844 454195 1 12988 119 82340 876607 1 22330 84 79801 711969 0 13326 102 165548 702380 0 16189 295 116384 264449 0 7146 105 134028 450033 0 15824 64 63838 541063 1 26088 267 74996 588864 0 11326 129 31080 -37216 0 8568 37 32168 783310 0 14416 361 49857 467359 1 3369 28 87161 688779 1 11819 85 106113 608419 1 6620 44 80570 696348 1 4519 49 102129 597793 0 2220 22 301670 821730 0 18562 155 102313 377934 0 10327 91 88577 651939 1 5336 81 112477 697458 1 2365 79 191778 70 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 time9 seconds
R Server'George Udny Yule' @ 72.249.76.132


Multiple Linear Regression - Estimated Regression Equation
Wealth[t] = -191286.673295896 + 285064.424055682Group[t] + 26.8409962495057Costs[t] -265.782661298832Trades[t] + 4.28215324408698Dividends[t] + e[t]


Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STAT
H0: parameter = 0
2-tail p-value1-tail p-value
(Intercept)-191286.673295896136841.296711-1.39790.1654070.082703
Group285064.424055682119021.4239512.39510.0185790.009289
Costs26.84099624950573.8338437.001100
Trades-265.782661298832433.703931-0.61280.5414590.27073
Dividends4.282153244086981.0993943.8950.0001839.1e-05


Multiple Linear Regression - Regression Statistics
Multiple R0.761489545827322
R-squared0.579866328404301
Adjusted R-squared0.562176489600272
F-TEST (value)32.7796276058897
F-TEST (DF numerator)4
F-TEST (DF denominator)95
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation579091.205622821
Sum Squared Residuals31857929320820.8


Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolation
Forecast
Residuals
Prediction Error
162829295082235.615303731200693.38469627
243240471161383.011000493162663.98899951
341082722977995.826216781130276.17378322
4-12126171815519.50263203-3028136.50263203
514853292025022.68714031-539693.687140308
617798761869869.12981448-89993.1298144844
713672031333888.9084695133314.0915304871
825190762149148.56278612369927.437213880
99126841244504.50974265-331820.509742647
101443586706408.65846467737177.34153533
1112200171522916.85425205-302899.854252051
12984885325423.224189772659461.775810228
131457425506446.919100573950978.080899427
14-5729201051955.18111971-1624875.18111971
159291441028235.67194084-99091.6719408383
161151176604775.557891148546400.442108852
177900901204919.53325630-414829.533256305
187744971008605.06519791-234108.065197908
199905761199229.68024933-208653.680249333
20454195713946.621318701-259751.621318701
21876607763352.971471928113254.028528072
227119691012531.56449353-300562.564493532
23702380848188.516524647-145808.516524647
24264449663210.453064015-398761.453064015
25450033546540.341465184-96507.3414651838
26541063489799.25982918151263.7401708187
275888641044186.05504365-455322.05504365
28-37216211517.809744680-248733.809744680
29783310166601.329657602616708.670342398
30467359313200.902198544154158.097801456
31688779549999.911515869138779.088484131
32608419842812.086412095-234393.086412095
33696348604783.79571045491564.2042895462
34597793639380.89107302-41587.8910730192
358217301154250.28897315-332520.288973151
36377934703859.531448381-325925.531448381
37651939441014.360696048210924.639303952
38697458697116.661617115341.338382885078
39700368957482.661491773-257114.661491773
40225986221123.8120461294862.1879538707
41348695348153.324464841541.675535159316
42373683573710.487001295-200027.487001295
43501709271815.031260625229893.968739375
44413743468415.599750683-54672.599750683
45379825212604.3685541167220.6314459
46336260621338.069210161-285078.069210161
476367651022505.70612255-385740.706122549
48481231795845.820561051-314614.820561051
49469107440015.42929291429091.5707070861
50211928188416.68862309123511.3113769090
51563925612765.844254289-48840.8442542888
52511939742359.175020328-230420.175020328
535210161067532.53205851-546516.53205851
54543856707277.968113737-163421.968113737
55329304847428.906054742-518124.906054742
56423262109622.880835187313639.119164813
57509665122527.752535341387137.247464659
58455881310965.144485786144915.855514214
59367772240792.406226713126979.593773287
60406339691621.228432584-285282.228432584
61493408634698.679153068-141290.679153068
6223294297951.8044467842134990.195553216
63416002573930.178184297-157928.178184297
64337430620804.057912187-283374.057912187
65361517112235.999435205249281.000564795
66360962301684.56675598659277.433244014
67235561158624.92921058776936.0707894134
68408247564822.51024213-156575.510242130
69450296383410.13995301866885.8600469817
70418799614730.927592323-195931.927592323
71247405277124.438145097-29719.4381450967
72378519100260.016597592278258.983402408
73326638295784.13134722330853.8686527769
74328233160170.149309479168062.850690521
75386225361488.56096172324736.4390382773
76283662456170.547960335-172508.547960335
77370225314838.79334493355386.206655067
78269236135969.451591452133266.548408548
79365732109433.00563201256298.99436799
80420383570938.139907145-150555.139907145
8134581199977.8214655644245833.178534436
82431809584013.681245498-152204.681245498
83418876411639.9808860517236.01911394867
84297476-4541.86795523082302017.867955231
85416776258407.050855702158368.949144298
86357257502501.592045361-145244.592045361
87458343270126.642290883188216.357709117
88388386264659.158675936123726.841324064
89358934304567.12701404854366.8729859519
90407560263547.689313455144012.310686545
91392558257765.486437581134792.513562419
92373177517038.10998087-143861.109980870
93428370115188.579036879313181.420963121
94369419792644.347867473-423225.347867473
953586498152.11365182494350496.886348175
96376641422335.226362685-45694.2263626851
97467427297749.722209187169677.277790813
98364885379644.59580242-14759.5958024197
99436230428965.8457247427264.15427525829
100329118441518.781983859-112400.781983859


Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
80.9999999999984183.1645702196305e-121.58228510981525e-12
912.36435079898823e-191.18217539949411e-19
1011.05113266549439e-205.25566332747197e-21
1111.04818315386112e-205.24091576930562e-21
1213.32324264361246e-241.66162132180623e-24
1311.31715937173074e-276.58579685865371e-28
1419.08570979688364e-364.54285489844182e-36
1512.11898839197200e-371.05949419598600e-37
1615.21421389494501e-412.60710694747250e-41
1711.41045377311976e-407.05226886559882e-41
1818.7186085688568e-414.3593042844284e-41
1917.89986124836895e-413.94993062418448e-41
2015.79159243840955e-402.89579621920477e-40
2116.97662388197713e-413.48831194098856e-41
2211.61949913869317e-408.09749569346587e-41
2318.91735065134776e-404.45867532567388e-40
2411.34505148480314e-396.7252574240157e-40
2511.01293590469622e-385.06467952348111e-39
2613.39284412051721e-381.69642206025860e-38
2711.04364273708496e-375.21821368542481e-38
2811.58269665158338e-397.91348325791692e-40
2911.11211486706492e-425.56057433532462e-43
3014.24902649237626e-422.12451324618813e-42
3111.07868208352872e-425.39341041764361e-43
3213.42402082412782e-421.71201041206391e-42
3313.59803350497438e-431.79901675248719e-43
3415.61612281627169e-432.80806140813584e-43
3512.79448873341134e-421.39724436670567e-42
3611.25018769993058e-416.25093849965291e-42
3712.38035206535222e-421.19017603267611e-42
3811.07853972957077e-435.39269864785383e-44
3916.48048062700721e-443.24024031350360e-44
4011.04125383161291e-435.20626915806456e-44
4117.91340835382049e-433.95670417691024e-43
4216.64003025379098e-423.32001512689549e-42
4311.8860886243338e-419.430443121669e-42
4412.10387129360014e-401.05193564680007e-40
4512.08755675271351e-391.04377837635676e-39
4611.01186543311014e-385.05932716555072e-39
4712.68308654922045e-381.34154327461023e-38
4812.18542102607907e-371.09271051303953e-37
4912.14528088423108e-361.07264044211554e-36
5011.73432395562127e-368.67161977810637e-37
5119.74703370610281e-374.87351685305140e-37
5214.35336278505796e-362.17668139252898e-36
5313.50711547270463e-351.75355773635231e-35
5412.19231275847791e-351.09615637923896e-35
5514.31422468234738e-352.15711234117369e-35
5612.23282309408219e-341.11641154704110e-34
5714.95950960621056e-352.47975480310528e-35
5813.6504039905664e-341.8252019952832e-34
5915.05414092112506e-332.52707046056253e-33
6016.56416632167164e-323.28208316083582e-32
6111.80763792116053e-319.03818960580265e-32
6212.77939645489286e-311.38969822744643e-31
6313.06657190517476e-301.53328595258738e-30
6412.68778857857251e-291.34389428928625e-29
6513.49727890136217e-281.74863945068109e-28
6611.55361707575962e-277.76808537879808e-28
6713.41308770417749e-281.70654385208875e-28
6813.55956774590701e-271.77978387295351e-27
6915.4767360026223e-262.73836800131115e-26
7016.11732437960281e-253.05866218980141e-25
7113.87907224319380e-241.93953612159690e-24
7215.62334656819256e-232.81167328409628e-23
7312.80573683584832e-221.40286841792416e-22
7413.3915842844131e-211.69579214220655e-21
7514.43824921330119e-202.21912460665059e-20
7612.82492196198215e-191.41246098099107e-19
7712.95943265775402e-181.47971632887701e-18
7811.43630831613879e-187.18154158069395e-19
7912.01252677927244e-171.00626338963622e-17
8013.50172108077631e-161.75086054038816e-16
810.9999999999999984.67594783510287e-152.33797391755143e-15
820.9999999999999862.84176358588887e-141.42088179294443e-14
830.9999999999997884.23528052907799e-132.11764026453900e-13
840.999999999999451.09910415396630e-125.49552076983148e-13
850.9999999999896642.06729176226892e-111.03364588113446e-11
860.9999999998116673.76665188122917e-101.88332594061458e-10
870.9999999986970942.60581208301199e-091.30290604150599e-09
880.9999999813616233.72767532024662e-081.86383766012331e-08
890.9999999284688221.43062356055788e-077.15311780278942e-08
900.999998768835452.46232910008815e-061.23116455004408e-06
910.9999845694581533.08610836936538e-051.54305418468269e-05
920.9997111949782230.0005776100435544350.000288805021777217


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


http://www.freestatistics.org/blog/date/2010/Dec/02/t1291317370xgtideskykzrfp5/1ghef1291317430.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/02/t1291317370xgtideskykzrfp5/1ghef1291317430.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/02/t1291317370xgtideskykzrfp5/29qvi1291317430.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/02/t1291317370xgtideskykzrfp5/29qvi1291317430.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/02/t1291317370xgtideskykzrfp5/39qvi1291317430.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/02/t1291317370xgtideskykzrfp5/39qvi1291317430.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/02/t1291317370xgtideskykzrfp5/49qvi1291317430.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/02/t1291317370xgtideskykzrfp5/49qvi1291317430.ps (open in new window)


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


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


http://www.freestatistics.org/blog/date/2010/Dec/02/t1291317370xgtideskykzrfp5/7cquo1291317430.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/02/t1291317370xgtideskykzrfp5/7cquo1291317430.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/02/t1291317370xgtideskykzrfp5/8cquo1291317430.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/02/t1291317370xgtideskykzrfp5/8cquo1291317430.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/02/t1291317370xgtideskykzrfp5/9nibq1291317430.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/02/t1291317370xgtideskykzrfp5/9nibq1291317430.ps (open in new window)


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