Home » date » 2010 » Dec » 19 »

paperMR4

*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: Sun, 19 Dec 2010 15:27:49 +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/19/t12927724910mthvhny74w8y6e.htm/, Retrieved Sun, 19 Dec 2010 16:28:14 +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/19/t12927724910mthvhny74w8y6e.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 «
15 0 13,6 13,7 13 14,4 15 14,4 0 15,2 13,6 13,7 13 14,4 13 0 12,9 15,2 13,6 13,7 13 13,7 0 14 12,9 15,2 13,6 13,7 13,6 0 14,1 14 12,9 15,2 13,6 15,2 0 13,2 14,1 14 12,9 15,2 12,9 0 11,3 13,2 14,1 14 12,9 14 0 13,3 11,3 13,2 14,1 14 14,1 0 14,4 13,3 11,3 13,2 14,1 13,2 0 13,3 14,4 13,3 11,3 13,2 11,3 0 11,6 13,3 14,4 13,3 11,3 13,3 0 13,2 11,6 13,3 14,4 13,3 14,4 0 13,1 13,2 11,6 13,3 14,4 13,3 0 14,6 13,1 13,2 11,6 13,3 11,6 0 14 14,6 13,1 13,2 11,6 13,2 0 14,3 14 14,6 13,1 13,2 13,1 0 13,8 14,3 14 14,6 13,1 14,6 0 13,7 13,8 14,3 14 14,6 14 0 11 13,7 13,8 14,3 14 14,3 0 14,4 11 13,7 13,8 14,3 13,8 0 15,6 14,4 11 13,7 13,8 13,7 0 13,7 15,6 14,4 11 13,7 11 0 12,6 13,7 15,6 14,4 11 14,4 0 13,2 12,6 13,7 15,6 14,4 15,6 0 13,3 13,2 12,6 13,7 15,6 13,7 0 14,3 13,3 13,2 12,6 13,7 12,6 0 14 14,3 13,3 13,2 12,6 13,2 0 13,4 14 14,3 13,3 13,2 13,3 0 13,9 13,4 14 14,3 13,3 14,3 0 13,7 13,9 13,4 14 14,3 14 0 10,5 13,7 13,9 13,4 14 13,4 0 14,5 10,5 13,7 13,9 13,4 13,9 0 15 14,5 10,5 13,7 13, 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 time7 seconds
R Server'RServer@AstonUniversity' @ vre.aston.ac.uk


Multiple Linear Regression - Estimated Regression Equation
uitvoercijfer[t] = + 2.67868885112499e-16 + 1.25611255456158e-16X[t] + 2.21995911620994e-17Y1[t] + 5.45430166641358e-17Y2[t] -2.94857131153639e-17Y3[t] + 4.46932466310697e-17Y4[t] + 1Y5[t] -7.60702659134785e-17M1[t] -3.57828127270844e-18M2[t] + 4.1212859638548e-17M3[t] + 1.0850439386405e-16M4[t] -4.33776525511453e-17M5[t] + 5.98989216374346e-17M6[t] + 4.21435215809026e-16M7[t] -6.42465345341248e-17M8[t] -2.41337263452827e-17M9[t] + 1.78461801535162e-16M10[t] + 2.47939467126275e-17M11[t] -2.26079895601757e-18t + e[t]


Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STAT
H0: parameter = 0
2-tail p-value1-tail p-value
(Intercept)2.67868885112499e-1600.49080.6246460.312323
X1.25611255456158e-1600.59870.5507730.275387
Y12.21995911620994e-1700.51560.6073190.30366
Y25.45430166641358e-1701.25460.2126160.106308
Y3-2.94857131153639e-170-0.66770.5058990.252949
Y44.46932466310697e-1700.96840.3352420.167621
Y5102272589140773384800
M1-7.60702659134785e-170-0.44360.6583380.329169
M2-3.57828127270844e-180-0.01660.9868180.493409
M34.1212859638548e-1700.1880.8512880.425644
M41.0850439386405e-1600.55720.5786450.289323
M5-4.33776525511453e-170-0.25050.8027050.401353
M65.98989216374346e-1700.32190.7482150.374107
M74.21435215809026e-1602.10150.0381630.019081
M8-6.42465345341248e-170-0.35580.7227380.361369
M9-2.41337263452827e-170-0.09780.9222620.461131
M101.78461801535162e-1600.69770.4870220.243511
M112.47939467126275e-1700.0990.9213030.460651
t-2.26079895601757e-180-0.67460.5015340.250767


Multiple Linear Regression - Regression Statistics
Multiple R1
R-squared1
Adjusted R-squared1
F-TEST (value)3.19975962880079e+32
F-TEST (DF numerator)18
F-TEST (DF denominator)98
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation3.26900285120209e-16
Sum Squared Residuals1.04726520483441e-29


Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolation
Forecast
Residuals
Prediction Error
11515-2.89296795448131e-16
214.414.4-2.57901354069519e-16
31313-6.74979900756436e-16
413.713.7-5.99532317973799e-17
513.613.61.19375966974017e-16
615.215.21.76246915351944e-16
712.912.92.86085812889703e-15
81414-6.18645742387088e-17
914.114.1-7.4461608657557e-17
1013.213.2-1.10493330503759e-16
1111.311.36.08080803806897e-18
1213.313.3-1.1815875102057e-16
1314.414.43.69914892012958e-18
1413.313.32.66069956729712e-17
1511.611.6-1.32121368677276e-16
1613.213.2-6.76248333803364e-17
1713.113.1-6.31738092303693e-17
1814.614.6-1.24684451230098e-16
191414-4.51966447946513e-16
2014.314.33.76756307634271e-17
2113.813.8-7.06613987846437e-17
2213.713.7-2.32681453430692e-17
231111-1.71997573888969e-17
2414.414.4-1.24266653161158e-16
2515.615.6-6.86351439679292e-17
2613.713.72.46877428755157e-17
2712.612.68.92254042244412e-17
2813.213.2-6.11380785941764e-17
2913.313.32.95146079605198e-17
3014.314.3-7.76536297158759e-17
311414-3.62775832681693e-16
3213.413.4-1.39314095149291e-17
3313.913.9-6.77557766024397e-17
3413.713.79.63564371041354e-18
3510.510.5-7.25107076860199e-17
3614.514.5-5.98920229497522e-17
3715151.739712445657e-17
3813.513.52.64018155009445e-18
3913.513.51.23390119246382e-16
4013.213.25.30304495003798e-17
4113.813.8-1.16322040956552e-16
4216.216.2-8.83220749074289e-17
4314.714.7-2.81157382641636e-16
4413.913.9-2.91859322944952e-17
4516162.37501759892062e-17
4614.414.4-1.30911500757679e-17
4712.312.32.58468368412539e-17
4815.915.9-1.06845734128434e-17
4915.915.94.83336180301154e-17
5015.515.5-1.23932134928787e-17
5115.115.11.05807742029812e-16
5214.514.56.04747476917268e-17
5315.115.11.01605082441038e-17
5417.417.4-2.7030544884209e-17
5516.216.2-2.82677379293975e-16
5615.615.6-5.63846947730492e-17
5717.217.21.45383358439572e-17
5814.914.98.39707768018205e-17
5913.813.8-1.71215932246123e-16
6017.517.56.17088890378218e-17
6116.216.26.99292671256961e-17
6217.517.54.399592581324e-19
6316.616.61.37195859457235e-16
6416.216.22.88417670813949e-17
6516.616.6-1.24676138789622e-16
6619.619.61.11401944620687e-16
6715.915.9-3.29726925643704e-16
6818181.24086179939321e-17
6918.318.31.09831892180842e-16
7016.316.3-4.53693916462838e-18
7114.914.9-8.63377341698488e-17
7218.218.2-1.25917464527822e-17
7318.418.41.50250330807415e-17
7418.518.59.10776006556092e-18
7516161.80952817728626e-16
7617.417.41.54663357875496e-17
7717.217.21.02360655488643e-16
7819.619.6-1.77785889214598e-17
7917.217.2-2.91943580338292e-16
8018.318.36.70206189704102e-17
8119.319.36.12348762080334e-17
8218.118.12.77652331965105e-17
8316.216.22.94629547582709e-16
8418.418.4-4.18321427506925e-17
8520.520.51.20604404388515e-17
8619191.62458117465963e-16
8716.516.5-6.6699792415586e-17
8818.718.72.48556162729576e-17
8919191.3161757279558e-16
9019.219.24.53570097117462e-19
9120.520.5-3.39057005183814e-16
9219.319.38.49741910060189e-17
9320.620.6-2.7239555401431e-18
9420.120.1-1.74652269959715e-17
9516.116.1-2.87837186831201e-17
9620.420.42.84299234820946e-16
9719.719.72.90363891613402e-17
9815.615.69.01680099153656e-18
9914.414.46.10915174221326e-17
10013.713.7-1.3540638913855e-17
10114.114.13.48896599531176e-17
1021515-1.48632837906236e-17
10314.214.2-2.86291300456655e-16
10413.613.62.32717049038207e-17
10515.415.44.74745275543349e-17
10614.814.84.74831383744517e-17
10712.512.54.9490657711978e-17
10816.216.22.14177658890305e-17
10916.116.11.62450918202615e-16
11016163.53370096826234e-17
11115.815.81.76137601740669e-16
11215.215.21.9587866351739e-17
11315.715.7-1.23746982439437e-16
11418.918.96.22301433799458e-17
11517.417.4-2.35262274710747e-16
1161717-6.39841528164268e-17
11719.819.8-4.1227068191591e-17


Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
220.812773766730760.3744524665384780.187226233269239
230.004580353652448240.009160707304896470.995419646347552
240.2501455515008650.500291103001730.749854448499135
250.005148721687474040.01029744337494810.994851278312526
261.48026337390134e-072.96052674780269e-070.999999851973663
274.18991909481381e-068.37983818962763e-060.999995810080905
280.001261989552302740.002523979104605480.998738010447697
290.1800704160609790.3601408321219570.819929583939021
300.001068054243313870.002136108486627730.998931945756686
312.44811334985993e-104.89622669971986e-100.999999999755189
320.9758536839372950.04829263212540910.0241463160627045
330.3430614811606880.6861229623213770.656938518839312
347.26122304504278e-081.45224460900856e-070.99999992738777
350.9999999997927484.14503633384166e-102.07251816692083e-10
362.91457208265004e-155.82914416530008e-150.999999999999997
370.9999993515913141.29681737251484e-066.48408686257421e-07
380.6603429857135570.6793140285728850.339657014286443
394.44929285073193e-088.89858570146385e-080.999999955507072
400.7659578849398890.4680842301202220.234042115060111
412.79616392277038e-105.59232784554075e-100.999999999720384
420.05858847050188240.1171769410037650.941411529498118
431.65912474188311e-083.31824948376622e-080.999999983408753
440.7698331242100530.4603337515798940.230166875789947
450.0007868096382084840.001573619276416970.999213190361792
460.3669565535547970.7339131071095940.633043446445203
473.47880202971822e-076.95760405943644e-070.999999652119797
481.36800381641299e-092.73600763282597e-090.999999998631996
490.997341911182180.005316177635638780.00265808881781939
500.009812582441124080.01962516488224820.990187417558876
510.9999995962704638.07459074687847e-074.03729537343924e-07
520.9999993744447061.25111058751734e-066.25555293758668e-07
530.08492830948625960.1698566189725190.91507169051374
542.19921422398892e-114.39842844797783e-110.999999999978008
552.13694899955465e-184.2738979991093e-181
560.2739213642433670.5478427284867340.726078635756633
570.0260042772420140.05200855448402810.973995722757986
580.999997188409455.62318110184393e-062.81159055092197e-06
590.0005675924182014860.001135184836402970.999432407581799
6019.6122802739859e-174.80614013699295e-17
610.9555300804032780.08893983919344410.0444699195967221
623.42277750858199e-106.84555501716398e-100.999999999657722
630.9999998164081293.67183742671529e-071.83591871335765e-07
641.17916167748806e-172.35832335497612e-171
650.999999999999991.9206155399927e-149.6030776999635e-15
660.03175462526150250.0635092505230050.968245374738497
676.07443792874851e-141.2148875857497e-130.99999999999994
680.9999708925067765.82149864490032e-052.91074932245016e-05
690.9892413416967060.02151731660658890.0107586583032944
704.63389607470153e-189.26779214940306e-181
710.9999999999973375.32609489661068e-122.66304744830534e-12
720.8517591808311660.2964816383376690.148240819168834
731.55138417772829e-063.10276835545658e-060.999998448615822
748.25515699881246e-231.65103139976249e-221
750.999999532328749.35342518458306e-074.67671259229153e-07
760.5198221532909420.9603556934181150.480177846709058
770.09122738685298860.1824547737059770.908772613147011
780.9999995376325369.24734928059614e-074.62367464029807e-07
790.9999997122444895.75511022645216e-072.87755511322608e-07
800.009747423209079660.01949484641815930.99025257679092
810.9999999567724538.64550946735569e-084.32275473367784e-08
820.9970383549030.005923290194000290.00296164509700015
830.9999998432390893.13521822631798e-071.56760911315899e-07
840.647677614820530.704644770358940.35232238517947
850.6199599094535480.7600801810929040.380040090546452
860.6407414085972670.7185171828054650.359258591402733
870.2422135471010140.4844270942020290.757786452898985
880.9897664703323160.02046705933536890.0102335296676844
898.17553436501637e-081.63510687300327e-070.999999918244656
900.8504548436336810.2990903127326380.149545156366319
912.18650069460637e-154.37300138921275e-150.999999999999998
921.54004132081724e-253.08008264163447e-251
939.55374942309373e-050.0001910749884618750.99990446250577
946.86923087307166e-091.37384617461433e-080.99999999313077
954.34987564184505e-068.6997512836901e-060.999995650124358


Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level460.621621621621622NOK
5% type I error level520.702702702702703NOK
10% type I error level550.743243243243243NOK
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Dec/19/t12927724910mthvhny74w8y6e/1017or1292772458.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/19/t12927724910mthvhny74w8y6e/1017or1292772458.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/19/t12927724910mthvhny74w8y6e/1uorf1292772458.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/19/t12927724910mthvhny74w8y6e/1uorf1292772458.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/19/t12927724910mthvhny74w8y6e/2uorf1292772458.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/19/t12927724910mthvhny74w8y6e/2uorf1292772458.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/19/t12927724910mthvhny74w8y6e/35f901292772458.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/19/t12927724910mthvhny74w8y6e/35f901292772458.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/19/t12927724910mthvhny74w8y6e/45f901292772458.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/19/t12927724910mthvhny74w8y6e/45f901292772458.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/19/t12927724910mthvhny74w8y6e/55f901292772458.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/19/t12927724910mthvhny74w8y6e/55f901292772458.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/19/t12927724910mthvhny74w8y6e/6y6ql1292772458.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/19/t12927724910mthvhny74w8y6e/6y6ql1292772458.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/19/t12927724910mthvhny74w8y6e/7qfp61292772458.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/19/t12927724910mthvhny74w8y6e/7qfp61292772458.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/19/t12927724910mthvhny74w8y6e/8qfp61292772458.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/19/t12927724910mthvhny74w8y6e/8qfp61292772458.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/19/t12927724910mthvhny74w8y6e/9qfp61292772458.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/19/t12927724910mthvhny74w8y6e/9qfp61292772458.ps (open in new window)


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