Home » date » 2009 » Dec » 05 »

*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: Sat, 05 Dec 2009 11:01:32 -0700
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2009/Dec/05/t1260036146rbaawoyj5p85gzx.htm/, Retrieved Sat, 05 Dec 2009 19:02:38 +0100
 
BibTeX entries for LaTeX users:
@Manual{KEY,
    author = {{YOUR NAME}},
    publisher = {Office for Research Development and Education},
    title = {Statistical Computations at FreeStatistics.org, URL http://www.freestatistics.org/blog/date/2009/Dec/05/t1260036146rbaawoyj5p85gzx.htm/},
    year = {2009},
}
@Manual{R,
    title = {R: A Language and Environment for Statistical Computing},
    author = {{R Development Core Team}},
    organization = {R Foundation for Statistical Computing},
    address = {Vienna, Austria},
    year = {2009},
    note = {{ISBN} 3-900051-07-0},
    url = {http://www.R-project.org},
}
 
Original text written by user:
 
IsPrivate?
No (this computation is public)
 
User-defined keywords:
 
Dataseries X:
» Textbox « » Textfile « » CSV «
9051 0 8823 0 8776 0 8255 0 7969 0 8758 0 8693 0 8271 0 7790 0 7769 0 8170 0 8209 0 9395 0 9260 0 9018 0 8501 0 8500 0 9649 0 9319 0 8830 0 8436 0 8169 0 8269 0 7945 0 9144 0 8770 0 8834 0 7837 0 7792 0 8616 0 8518 0 7940 0 7545 0 7531 0 7665 0 7599 0 8444 0 8549 0 7986 0 7335 0 7287 0 7870 0 7839 0 7327 0 7259 0 6964 0 7271 0 6956 0 7608 0 7692 0 7255 0 6804 0 6655 0 7341 0 7602 0 7086 0 6625 0 6272 0 6576 0 6491 0 7649 0 7400 0 6913 0 6532 0 6486 0 7295 0 7556 0 7088 1 6952 1 6773 1 6917 1 7371 1 8221 1 7953 1 8027 1 7287 1 8076 1 8933 1 9433 1 9479 1 9199 1 9469 1 10015 1 10999 1 13009 1 13699 1 13895 1 13248 1 13973 1 15095 1 15201 1 14823 1 14538 1 14547 1 14407 1
 
Output produced by software:

Enter (or paste) a matrix (table) containing all data (time) series. Every column represents a different variable and must be delimited by a space or Tab. Every row represents a period in time (or category) and must be delimited by hard returns. The easiest way to enter data is to copy and paste a block of spreadsheet cells. Please, do not use commas or spaces to seperate groups of digits!


Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time4 seconds
R Server'Gwilym Jenkins' @ 72.249.127.135


Multiple Linear Regression - Estimated Regression Equation
Y[t] = + 8100.42455233596 + 3072.40963029376X[t] -6.22802678073278t + e[t]


Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STAT
H0: parameter = 0
2-tail p-value1-tail p-value
(Intercept)8100.42455233596436.35931918.563700
X3072.40963029376665.0872044.61961.2e-056e-06
t-6.2280267807327811.057641-0.56320.5746460.287323


Multiple Linear Regression - Regression Statistics
Multiple R0.57996515606376
R-squared0.336359582248061
Adjusted R-squared0.321932616644758
F-TEST (value)23.3146450540544
F-TEST (DF numerator)2
F-TEST (DF denominator)92
p-value6.44035913488494e-09
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation1813.08224263671
Sum Squared Residuals302428584.10794


Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolation
Forecast
Residuals
Prediction Error
190518094.1965255552956.80347444479
288238087.9684987745735.031501225507
387768081.74047199376694.259528006238
482558075.51244521303179.487554786972
579698069.2844184323-100.284418432296
687588063.05639165156694.943608348437
786938056.82836487083636.17163512917
882718050.6003380901220.399661909903
977908044.37231130936-254.372311309365
1077698038.14428452863-269.144284528632
1181708031.9162577479138.083742252101
1282098025.68823096717183.311769032834
1393958019.460204186431375.53979581357
1492608013.23217740571246.7678225943
1590188007.004150624971010.99584937503
1685018000.77612384424500.223876155765
1785007994.5480970635505.451902936498
1896497988.320070282771660.67992971723
1993197982.092043502041336.90795649796
2088307975.8640167213854.135983278696
2184367969.63598994057466.364010059429
2281697963.40796315984205.592036840162
2382697957.1799363791311.820063620894
2479457950.95190959837-5.95190959837275
2591447944.723882817641199.27611718236
2687707938.4958560369831.504143963093
2788347932.26782925617901.732170743825
2878377926.03980247544-89.0398024754416
2977927919.8117756947-127.811775694709
3086167913.58374891398702.416251086024
3185187907.35572213324610.644277866757
3279407901.1276953525138.8723046474895
3375457894.89966857178-349.899668571778
3475317888.67164179104-357.671641791045
3576657882.44361501031-217.443615010312
3675997876.21558822958-277.215588229579
3784447869.98756144885574.012438551153
3885497863.75953466811685.240465331886
3979867857.53150788738128.468492112619
4073357851.30348110665-516.303481106648
4172877845.07545432592-558.075454325916
4278707838.8474275451831.1525724548173
4378397832.619400764456.3805992355501
4473277826.39137398372-499.391373983717
4572597820.16334720298-561.163347202984
4669647813.93532042225-849.935320422252
4772717807.70729364152-536.707293641519
4869567801.47926686079-845.479266860786
4976087795.25124008005-187.251240080053
5076927789.02321329932-97.0232132993204
5172557782.79518651859-527.795186518588
5268047776.56715973786-972.567159737855
5366557770.33913295712-1115.33913295712
5473417764.11110617639-423.111106176389
5576027757.88307939566-155.883079395657
5670867751.65505261492-665.655052614924
5766257745.42702583419-1120.42702583419
5862727739.19899905346-1467.19899905346
5965767732.97097227273-1156.97097227273
6064917726.74294549199-1235.74294549199
6176497720.51491871126-71.5149187112598
6274007714.28689193053-314.286891930527
6369137708.0588651498-795.058865149794
6465327701.83083836906-1169.83083836906
6564867695.60281158833-1209.60281158833
6672957689.3747848076-394.374784807596
6775567683.14675802686-127.146758026863
68708810749.3283615399-3661.32836153989
69695210743.1003347592-3791.10033475916
70677310736.8723079784-3963.87230797843
71691710730.6442811977-3813.64428119769
72737110724.4162544170-3353.41625441696
73822110718.1882276362-2497.18822763623
74795310711.9602008555-2758.96020085550
75802710705.7321740748-2678.73217407476
76728710699.5041472940-3412.50414729403
77807610693.2761205133-2617.2761205133
78893310687.0480937326-1754.04809373256
79943310680.8200669518-1247.82006695183
80947910674.5920401711-1195.5920401711
81919910668.3640133904-1469.36401339037
82946910662.1359866096-1193.13598660963
831001510655.9079598289-640.9079598289
841099910649.6799330482349.320066951832
851300910643.45190626742365.54809373256
861369910637.22387948673061.7761205133
871389510630.99585270603264.00414729403
881324810624.76782592522623.23217407476
891397310618.53979914453354.46020085550
901509510612.31177236384482.68822763623
911520110606.08374558304594.91625441696
921482310599.85571880234223.14428119769
931453810593.62769202163944.37230797843
941454710587.39966524083959.60033475916
951440710581.17163846013825.82836153989


Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
60.01524008329626510.03048016659253010.984759916703735
70.004591339320602040.009182678641204090.995408660679398
80.0008610160754471550.001722032150894310.999138983924553
90.0002342348505175270.0004684697010350550.999765765149482
104.41000920688087e-058.82001841376173e-050.999955899907931
111.14187154927883e-052.28374309855766e-050.999988581284507
123.09248942198712e-066.18497884397423e-060.999996907510578
135.66760875860673e-050.0001133521751721350.999943323912414
145.2378818436127e-050.0001047576368722540.999947621181564
152.03736113583785e-054.0747222716757e-050.999979626388642
165.75733584987185e-061.15146716997437e-050.99999424266415
171.56855421723328e-063.13710843446656e-060.999998431445783
181.93542067172423e-063.87084134344845e-060.999998064579328
198.02807486677303e-071.60561497335461e-060.999999197192513
202.44863904515184e-074.89727809030368e-070.999999755136096
211.01608723441908e-072.03217446883816e-070.999999898391277
225.76438604762046e-081.15287720952409e-070.99999994235614
232.3849316806935e-084.769863361387e-080.999999976150683
241.46598065737051e-082.93196131474101e-080.999999985340193
257.71855427291519e-091.54371085458304e-080.999999992281446
262.68329386673462e-095.36658773346923e-090.999999997316706
279.96454786358733e-101.99290957271747e-090.999999999003545
289.31352448223389e-101.86270489644678e-090.999999999068648
297.2432908162088e-101.44865816324176e-090.999999999275671
303.01092403092351e-106.02184806184701e-100.999999999698908
311.27504891397803e-102.55009782795607e-100.999999999872495
327.60692079812584e-111.52138415962517e-100.999999999923931
338.0822823247571e-111.61645646495142e-100.999999999919177
346.92797311046796e-111.38559462209359e-100.99999999993072
354.25429197232622e-118.50858394465245e-110.999999999957457
362.65041834052225e-115.3008366810445e-110.999999999973496
372.17731838560015e-114.35463677120031e-110.999999999978227
382.52989059418776e-115.05978118837553e-110.9999999999747
391.93765499263936e-113.87530998527871e-110.999999999980623
402.42046559033218e-114.84093118066436e-110.999999999975795
412.91829157100462e-115.83658314200924e-110.999999999970817
423.08161338130817e-116.16322676261633e-110.999999999969184
433.936135483189e-117.872270966378e-110.999999999960639
445.7417751275504e-111.14835502551008e-100.999999999942582
459.0589802801297e-111.81179605602594e-100.99999999990941
461.79356867989256e-103.58713735978513e-100.999999999820643
472.97140150866394e-105.94280301732788e-100.99999999970286
485.51310641766996e-101.10262128353399e-090.99999999944869
491.59131876718285e-093.1826375343657e-090.999999998408681
507.41528441648192e-091.48305688329638e-080.999999992584716
512.33051164277520e-084.66102328555040e-080.999999976694883
526.31995357892066e-081.26399071578413e-070.999999936800464
531.51426139160157e-073.02852278320314e-070.99999984857386
546.03562723134238e-071.20712544626848e-060.999999396437277
555.52118504879695e-061.10423700975939e-050.999994478814951
561.87545504059333e-053.75091008118667e-050.999981245449594
573.65766268202646e-057.31532536405291e-050.99996342337318
585.51557518443365e-050.0001103115036886730.999944844248156
595.83800449889991e-050.0001167600899779980.999941619955011
604.83345956117284e-059.66691912234569e-050.999951665404388
610.0001861655047000860.0003723310094001710.9998138344953
620.0003432844082190950.0006865688164381910.99965671559178
630.0002649399824230.0005298799648460.999735060017577
640.0001609980184547010.0003219960369094030.999839001981545
650.0001008114524013300.0002016229048026600.999899188547599
666.73755909427882e-050.0001347511818855760.999932624409057
675.77299034565234e-050.0001154598069130470.999942270096543
680.0001023342959992450.000204668591998490.999897665704
690.0001153059135707400.0002306118271414810.99988469408643
708.16865735954318e-050.0001633731471908640.999918313426405
714.97001889223254e-059.94003778446507e-050.999950299811078
724.02249273909967e-058.04498547819934e-050.99995977507261
730.0001843415312827950.0003686830625655900.999815658468717
740.0002196741292205740.0004393482584411490.99978032587078
750.0002048662615669800.0004097325231339600.999795133738433
760.0001466149782040570.0002932299564081140.999853385021796
770.0001218345606740170.0002436691213480350.999878165439326
780.0002302597870394460.0004605195740788910.99976974021296
790.0006142675262919380.001228535052583880.999385732473708
800.001127796347536020.002255592695072050.998872203652464
810.002704675119577410.005409350239154820.997295324880423
820.01628858824793450.0325771764958690.983711411752066
830.1818624389636860.3637248779273720.818137561036314
840.8092651635408110.3814696729183780.190734836459189
850.9063846527594370.1872306944811260.0936153472405632
860.9189055296079470.1621889407841060.081094470392053
870.9021107319233690.1957785361532620.097889268076631
880.9581464911774330.08370701764513330.0418535088225666
890.9982398958172430.00352020836551350.00176010418275675


Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level760.904761904761905NOK
5% type I error level780.928571428571429NOK
10% type I error level790.94047619047619NOK
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2009/Dec/05/t1260036146rbaawoyj5p85gzx/10hlnd1260036087.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/05/t1260036146rbaawoyj5p85gzx/10hlnd1260036087.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/05/t1260036146rbaawoyj5p85gzx/10nmo1260036087.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/05/t1260036146rbaawoyj5p85gzx/10nmo1260036087.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/05/t1260036146rbaawoyj5p85gzx/21fye1260036087.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/05/t1260036146rbaawoyj5p85gzx/21fye1260036087.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/05/t1260036146rbaawoyj5p85gzx/36b6y1260036087.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/05/t1260036146rbaawoyj5p85gzx/36b6y1260036087.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/05/t1260036146rbaawoyj5p85gzx/4wc0k1260036087.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/05/t1260036146rbaawoyj5p85gzx/4wc0k1260036087.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/05/t1260036146rbaawoyj5p85gzx/5czx71260036087.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/05/t1260036146rbaawoyj5p85gzx/5czx71260036087.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/05/t1260036146rbaawoyj5p85gzx/684vx1260036087.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/05/t1260036146rbaawoyj5p85gzx/684vx1260036087.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/05/t1260036146rbaawoyj5p85gzx/7cxag1260036087.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/05/t1260036146rbaawoyj5p85gzx/7cxag1260036087.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/05/t1260036146rbaawoyj5p85gzx/8xdic1260036087.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/05/t1260036146rbaawoyj5p85gzx/8xdic1260036087.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/05/t1260036146rbaawoyj5p85gzx/9fi1c1260036087.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/05/t1260036146rbaawoyj5p85gzx/9fi1c1260036087.ps (open in new window)


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