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


Multiple Linear Regression - Estimated Regression Equation
Wealth[t] = -88821.7832784671 + 28.4192263508631Costs[t] -324.547038190327Trades[t] + 4.432023324069Dividends[t] + e[t]


Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STAT
H0: parameter = 0
2-tail p-value1-tail p-value
(Intercept)-88821.7832784671133149.674196-0.66710.506320.25316
Costs28.41922635086313.8688367.345700
Trades-324.547038190327443.562453-0.73170.4661450.233072
Dividends4.4320233240691.1243633.94180.0001547.7e-05


Multiple Linear Regression - Regression Statistics
Multiple R0.744645919140252
R-squared0.55449754489223
Adjusted R-squared0.540575593170113
F-TEST (value)39.8290093199577
F-TEST (DF numerator)3
F-TEST (DF denominator)96
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation593204.53405958
Sum Squared Residuals33781595445968.9


Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolation
Forecast
Residuals
Prediction Error
162829295124602.573907631158326.42609237
243240471019895.186052083304151.81394792
341082722929616.049449151178655.95055085
4-12126172013269.33019600-3225886.33019600
514853291930143.46944477-444814.469444769
617798761768950.2898767210925.7101232770
713672031492101.07220845-124898.072208452
825190762049538.24963169469537.750368313
99126841103908.41168577-191224.411685770
101443586550255.989729416893330.010270584
1112200171696189.52310429-476172.523104285
12984885448631.173444984536253.826555016
131457425337976.6581943351119448.34180567
14-5729201213539.61871092-1786459.61871092
15929144869424.86971948659719.1302805138
161151176734179.852456258416996.147543742
177900901355408.90015295-565318.900152948
18774497846489.21239458-71992.2123945796
199905761067070.97597276-76494.9759727618
20454195841028.677497204-386833.677497204
21876607606598.831525736270008.168474264
22711969872197.483212349-160228.483212349
23702380990501.626430696-288121.626430696
24264449791332.298397956-526883.298397956
25450033674199.791293136-224166.791293136
26541063623044.549015327-81981.5490153266
27588864898308.955777911-309444.955777911
28-37216328935.091356921-366151.091356921
29783310285235.233971338498074.766028662
30467359424675.68987697642683.3101230244
31688779384134.85817744304644.141822560
32608419689773.84570314-81354.84570314
33696348442121.544704112254226.455295888
34597793476340.0057936121452.994206400
358217301304137.34055216-482407.340552156
36377934841844.707682225-463910.707682225
37651939567705.11674763684233.8832523637
38697458535035.585857631162422.414142369
39700368802715.040067593-102347.040067593
40225986333449.9175596-107463.9175596
41348695434062.069061489-85367.0690614887
42373683708695.58003287-335012.58003287
43501709382200.125382412119508.874617588
44413743593163.824560216-179420.824560216
45379825329094.78097481550730.2190251847
46336260458349.0398683-122089.039868300
47636765871932.602364987-235167.602364987
48481231626675.123870018-145444.123870018
49469107563551.177529618-94444.177529618
50211928303997.555475467-92069.5554754674
51563925445007.021057619118917.978942381
52511939577690.98147728-65751.98147728
53521016917978.912582567-396962.912582567
54543856538861.7215686514994.2784313485
55329304686366.849765579-357062.849765579
56423262219344.356522514203917.643477486
57509665237924.928107729271740.071892271
58455881431174.8629187924706.1370812102
59367772353907.95798432813864.0420156722
60406339530908.137005598-124569.137005598
61493408472261.06131167121146.9386883287
62232942209636.24618220623305.7538177940
63416002408448.0901800697553.90981993126
64337430457169.267209198-119739.267209198
65361517223125.151709636138391.848290364
66360962383028.424885145-22066.424885145
67235561270238.251459067-34677.2514590669
68408247397398.97366874910848.0263312513
69450296502248.943613902-51952.9436139022
70418799449826.297548700-31027.2975487004
71247405100018.230191678147386.769808322
72378519213775.190088605164743.809911395
73326638414528.343324262-87890.343324262
74328233274745.41994862853487.5800513718
75386225482830.407216473-96605.407216473
76283662286234.988643715-2572.98864371539
77370225433339.215850412-63114.215850412
78269236248278.47375451520957.5262454848
79365732217453.323188823148278.676811177
80420383397006.03512535123376.9648746492
81345811212232.172441151133578.827558849
82431809417904.77218007913904.2278199207
83418876532847.897120853-113971.897120853
84297476104088.544499944193387.455500056
85416776376197.0894580140578.9105419902
86357257334281.81267581122975.1873241892
87458343386813.28308412471529.7169158756
88388386382734.0851865485651.91481345217
89358934422561.600990134-63627.6009901338
90407560381749.35106829025810.6489317105
91392558374652.9033018317905.0966981699
92373177349108.11629971724068.8837002828
93428370224922.236156705203447.763843295
94369419634968.074665044-265549.074665044
95358649116578.057862086242070.942137914
96376641251059.539786421125581.460213579
97467427417108.34548662250318.6545133783
98364885198159.814196427166725.185803573
99436230553688.593639298-117458.593639298
100329118271429.16915633957688.8308436605


Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
711.62336210351231e-198.11681051756157e-20
811.89514848719594e-249.47574243597968e-25
911.22906304159547e-236.14531520797737e-24
1013.87458480111444e-261.93729240055722e-26
1113.03956811830951e-281.51978405915476e-28
1211.52051214142206e-287.6025607071103e-29
1313.18822294155307e-331.59411147077654e-33
1411.15052452018687e-435.75262260093435e-44
1516.93226009983493e-443.46613004991747e-44
1611.22030625960227e-466.10153129801135e-47
1714.16413802377642e-472.08206901188821e-47
1811.17164926325578e-465.85824631627888e-47
1911.75291684756292e-468.76458423781458e-47
2018.64966041910391e-464.32483020955196e-46
2119.49556547518535e-474.74778273759268e-47
2215.16843423697256e-462.58421711848628e-46
2313.09576850189213e-451.54788425094607e-45
2412.35397046646772e-451.17698523323386e-45
2511.95792843072467e-449.78964215362336e-45
2611.80936275411794e-439.04681377058969e-44
2711.59097017108618e-427.95485085543091e-43
2812.33787774387899e-441.16893887193950e-44
2911.26286989836058e-466.31434949180291e-47
3011.03956246300896e-455.1978123150448e-46
3111.81490818968447e-469.07454094842233e-47
3219.85627692114693e-464.92813846057347e-46
3317.1754911198025e-473.58774555990125e-47
3411.23341449683296e-466.16707248416482e-47
3515.83041277125122e-462.91520638562561e-46
3611.94974552108695e-459.74872760543477e-46
3718.24999474910211e-464.12499737455105e-46
3813.15037121230465e-471.57518560615233e-47
3913.14153417880109e-471.57076708940054e-47
4015.25834929356343e-472.62917464678172e-47
4114.10080919761868e-462.05040459880934e-46
4213.29434509030749e-451.64717254515374e-45
4311.25504088278451e-446.27520441392255e-45
4411.50337567661167e-437.51687838305834e-44
4511.97157584528449e-429.85787922642246e-43
4611.42056335876742e-417.1028167938371e-42
4715.95487995103109e-412.97743997551554e-41
4817.0307907860611e-403.51539539303055e-40
4917.93873310049888e-393.96936655024944e-39
5016.56489171198985e-393.28244585599492e-39
5114.16577051693753e-392.08288525846877e-39
5212.51136097195419e-381.25568048597709e-38
5312.919764795537e-371.4598823977685e-37
5413.64741624289181e-371.82370812144590e-37
5516.60318225613464e-373.30159112806732e-37
5613.64941212412581e-361.82470606206291e-36
5716.53808564892334e-373.26904282446167e-37
5815.01346295623121e-362.50673147811561e-36
5917.6587489547504e-353.8293744773752e-35
6011.13360194106297e-335.66800970531486e-34
6113.28216837410445e-331.64108418705223e-33
6215.69045826616496e-332.84522913308248e-33
6317.24907458887198e-323.62453729443599e-32
6416.77857306806719e-313.38928653403359e-31
6519.5102005851084e-304.7551002925542e-30
6617.01928250520036e-293.50964125260018e-29
6712.73792346926102e-291.36896173463051e-29
6814.17292758378546e-282.08646379189273e-28
6915.8877356400622e-272.9438678200311e-27
7018.48689483459219e-264.24344741729609e-26
7113.243623326978e-251.621811663489e-25
7213.87965814409832e-241.93982907204916e-24
7312.42324694025938e-231.21162347012969e-23
7413.1365261729328e-221.5682630864664e-22
7514.55753168957208e-212.27876584478604e-21
7611.36179465888522e-206.80897329442612e-21
7711.56399259676986e-197.81996298384931e-20
7819.91949224546848e-204.95974612273424e-20
7911.72917012462424e-188.64585062312118e-19
8013.01979388567285e-171.50989694283643e-17
8114.70374789211651e-162.35187394605826e-16
820.9999999999999984.2358029258758e-152.1179014629379e-15
830.9999999999999696.20958427082655e-143.10479213541327e-14
840.9999999999998153.69857779263073e-131.84928889631536e-13
850.9999999999968756.24912155604845e-123.12456077802423e-12
860.9999999999488731.02254561690886e-105.11272808454428e-11
870.9999999998614632.77073557761392e-101.38536778880696e-10
880.999999998002623.9947581520865e-091.99737907604325e-09
890.9999999836106953.27786098694872e-081.63893049347436e-08
900.999999733468225.33063558668573e-072.66531779334286e-07
910.9999956735869978.65282600662877e-064.32641300331439e-06
920.9999339403668120.0001321192663761436.60596331880713e-05
930.9995872446092720.0008255107814560290.000412755390728014


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


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


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


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


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


http://www.freestatistics.org/blog/date/2010/Dec/03/t1291405173z5iul2ffkof1lfd/54bxe1291404848.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/03/t1291405173z5iul2ffkof1lfd/54bxe1291404848.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/03/t1291405173z5iul2ffkof1lfd/64bxe1291404848.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/03/t1291405173z5iul2ffkof1lfd/64bxe1291404848.ps (open in new window)


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


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


http://www.freestatistics.org/blog/date/2010/Dec/03/t1291405173z5iul2ffkof1lfd/9pcv21291404848.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/03/t1291405173z5iul2ffkof1lfd/9pcv21291404848.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