Home » date » 2010 » Dec » 11 »

Paper Multiple Regression tijdsreeks

*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, 11 Dec 2010 10:24:16 +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/11/t12920629452ligowc844upbmj.htm/, Retrieved Sat, 11 Dec 2010 11:22:35 +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/11/t12920629452ligowc844upbmj.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 «
17.848 19.592 21.092 20.899 25.890 24.965 22.225 20.977 22.897 22.785 22.769 19.637 20.203 20.450 23.083 21.738 26.766 25.280 22.574 22.729 21.378 22.902 24.989 21.116 15.169 15.846 20.927 18.273 22.538 15.596 14.034 11.366 14.861 15.149 13.577 13.026 13.190 13.196 15.826 14.733 16.307 15.703 14.589 12.043 15.057 14.053 12.698 10.888 10.045 11.549 13.767 12.434 13.116 14.211 12.266 12.602 15.714 13.742 12.745 10.491 10.057 10.900 11.771 11.992 11.933 14.504 11.727 11.477 13.578 11.555 11.846 11.397 10.066 10.269 14.279 13.870 13.695 14.420 11.424 9.704 12.464 14.301 13.464 9.893 11.572 12.380 16.692 16.052 16.459 14.761 13.654 13.480 18.068 16.560 14.530 10.650 11.651 13.735 13.360 17.818 20.613 16.231 13.862 12.004 17.734 15.034 12.609 12.320 10.833 11.350 13.648 14.890 16.325 18.045 15.616 11.926 16.855 15.083 12.520 12.355
 
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 time8 seconds
R Server'Gwilym Jenkins' @ 72.249.127.135


Multiple Linear Regression - Estimated Regression Equation
Pas[t] = + 17.7650666666667 -0.878527777777776M1[t] + 0.0542838383838419M2[t] + 2.64159545454546M3[t] + 2.53650707070707M4[t] + 4.70031868686869M5[t] + 3.77723030303032M6[t] + 1.67224191919192M7[t] + 0.375453535353537M8[t] + 3.47476515151516M9[t] + 2.80007676767677M10[t] + 1.92788838383839M11[t] -0.0695116161616161t + e[t]


Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STAT
H0: parameter = 0
2-tail p-value1-tail p-value
(Intercept)17.76506666666671.14300515.542400
M1-0.8785277777777761.417703-0.61970.5367830.268392
M20.05428383838384191.4171830.03830.9695170.484758
M32.641595454545461.4167121.86460.0649790.032489
M42.536507070707071.4162911.7910.0761290.038064
M54.700318686868691.4159193.31960.0012330.000617
M63.777230303030321.4155972.66830.008810.004405
M71.672241919191921.4153241.18150.2400130.120007
M80.3754535353535371.4151010.26530.7912740.395637
M93.474765151515161.4149272.45580.0156670.007834
M102.800076767676771.4148031.97910.0503710.025185
M111.927888383838391.4147291.36270.175830.087915
t-0.06951161616161610.008378-8.296700


Multiple Linear Regression - Regression Statistics
Multiple R0.696874486476466
R-squared0.485634049901839
Adjusted R-squared0.42794814895625
F-TEST (value)8.41859175190675
F-TEST (DF numerator)12
F-TEST (DF denominator)107
p-value5.10929076824596e-11
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation3.16337457068026
Sum Squared Residuals1070.74243816364


Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolation
Forecast
Residuals
Prediction Error
117.84816.81702727272731.03097272727271
219.59217.68032727272731.91167272727273
321.09220.19812727272730.893872727272736
420.89920.02352727272730.875472727272718
525.8922.11782727272733.77217272727274
624.96521.12522727272733.83977272727273
722.22518.95072727272733.27427272727271
820.97717.58442727272733.39257272727273
922.89720.61422727272732.28277272727274
1022.78519.87002727272732.91497272727271
1122.76918.92832727272733.84067272727272
1219.63716.93092727272732.70607272727273
1320.20315.98288787878794.22011212121213
1420.4516.84618787878793.60381212121212
1523.08319.36398787878793.71901212121212
1621.73819.18938787878792.54861212121212
1726.76621.28368787878795.48231212121212
1825.2820.29108787878794.98891212121212
1922.57418.11658787878794.45741212121212
2022.72916.75028787878795.97871212121212
2121.37819.78008787878791.59791212121212
2222.90219.03588787878793.86611212121212
2324.98918.09418787878796.89481212121212
2421.11616.09678787878795.01921212121213
2515.16915.14874848484850.0202515151515173
2615.84616.0120484848485-0.166048484848486
2720.92718.52984848484852.39715151515152
2818.27318.3552484848485-0.082248484848484
2922.53820.44954848484852.08845151515152
3015.59619.4569484848485-3.86094848484849
3114.03417.2824484848485-3.24844848484848
3211.36615.9161484848485-4.55014848484848
3314.86118.9459484848485-4.08494848484849
3415.14918.2017484848485-3.05274848484848
3513.57717.2600484848485-3.68304848484848
3613.02615.2626484848485-2.23664848484848
3713.1914.3146090909091-1.12460909090909
3813.19615.1779090909091-1.98190909090909
3915.82617.6957090909091-1.86970909090909
4014.73317.5211090909091-2.78810909090909
4116.30719.6154090909091-3.30840909090909
4215.70318.6228090909091-2.91980909090909
4314.58916.4483090909091-1.85930909090909
4412.04315.0820090909091-3.03900909090909
4515.05718.1118090909091-3.05480909090909
4614.05317.3676090909091-3.31460909090909
4712.69816.4259090909091-3.72790909090909
4810.88814.4285090909091-3.54050909090909
4910.04513.4804696969697-3.43546969696969
5011.54914.3437696969697-2.7947696969697
5113.76716.8615696969697-3.0945696969697
5212.43416.6869696969697-4.2529696969697
5313.11618.7812696969697-5.6652696969697
5414.21117.7886696969697-3.5776696969697
5512.26615.6141696969697-3.34816969696970
5612.60214.2478696969697-1.64586969696970
5715.71417.2776696969697-1.56366969696970
5813.74216.5334696969697-2.79146969696970
5912.74515.5917696969697-2.84676969696970
6010.49113.5943696969697-3.10336969696969
6110.05712.6463303030303-2.5893303030303
6210.913.5096303030303-2.60963030303030
6311.77116.0274303030303-4.25643030303030
6411.99215.8528303030303-3.8608303030303
6511.93317.9471303030303-6.0141303030303
6614.50416.9545303030303-2.45053030303031
6711.72714.7800303030303-3.0530303030303
6811.47713.4137303030303-1.93673030303030
6913.57816.4435303030303-2.86553030303030
7011.55515.6993303030303-4.1443303030303
7111.84614.7576303030303-2.9116303030303
7211.39712.7602303030303-1.3632303030303
7310.06611.8121909090909-1.74619090909091
7410.26912.6754909090909-2.40649090909091
7514.27915.1932909090909-0.91429090909091
7613.8715.0186909090909-1.14869090909091
7713.69517.1129909090909-3.41799090909091
7814.4216.1203909090909-1.70039090909091
7911.42413.9458909090909-2.52189090909091
809.70412.5795909090909-2.87559090909091
8112.46415.6093909090909-3.14539090909091
8214.30114.8651909090909-0.564190909090909
8313.46413.9234909090909-0.459490909090908
849.89311.9260909090909-2.03309090909090
8511.57210.97805151515150.593948484848486
8612.3811.84135151515150.538648484848484
8716.69214.35915151515152.33284848484848
8816.05214.18455151515151.86744848484848
8916.45916.27885151515150.180148484848486
9014.76115.2862515151515-0.52525151515152
9113.65413.11175151515150.542248484848486
9213.4811.74545151515151.73454848484848
9318.06814.77525151515153.29274848484848
9416.5614.03105151515152.52894848484848
9514.5313.08935151515151.44064848484849
9610.6511.0919515151515-0.441951515151513
9711.65110.14391212121211.50708787878788
9813.73511.00721212121212.72778787878788
9913.3613.5250121212121-0.165012121212123
10017.81813.35041212121214.46758787878788
10120.61315.44471212121215.16828787878788
10216.23114.45211212121211.77888787878788
10313.86212.27761212121211.58438787878788
10412.00410.91131212121211.09268787878788
10517.73413.94111212121213.79288787878788
10615.03413.19691212121211.83708787878788
10712.60912.25521212121210.353787878787879
10812.3210.25781212121212.06218787878788
10910.8339.309772727272731.52322727272727
11011.3510.17307272727271.17692727272727
11113.64812.69087272727270.95712727272727
11214.8912.51627272727272.37372727272727
11316.32514.61057272727271.71442727272727
11418.04513.61797272727274.42702727272727
11515.61611.44347272727274.17252727272727
11611.92610.07717272727271.84882727272727
11716.85513.10697272727273.74802727272727
11815.08312.36277272727272.72022727272727
11912.5211.42107272727271.09892727272727
12012.3559.423672727272732.93132727272727


Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
160.008184384545522430.01636876909104490.991815615454477
170.001918711341441540.003837422682883080.998081288658558
180.0008436644125731470.001687328825146290.999156335587427
190.0003041989900978780.0006083979801957570.999695801009902
200.0001182822516846640.0002365645033693280.999881717748315
210.0008768266113424320.001753653222684860.999123173388658
220.000445569174432130.000891138348864260.999554430825568
230.0008004582911997740.001600916582399550.9991995417088
240.0008605387184112780.001721077436822560.999139461281589
250.0802174725886550.160434945177310.919782527411345
260.2490160517614700.4980321035229410.75098394823853
270.298282228599880.596564457199760.70171777140012
280.3643403813013630.7286807626027260.635659618698637
290.6516880232629520.6966239534740960.348311976737048
300.9844014267486680.03119714650266360.0155985732513318
310.9974140815629380.005171836874124470.00258591843706223
320.9998326638739470.0003346722521062680.000167336126053134
330.9998620999301160.0002758001397676890.000137900069883844
340.999904516315220.0001909673695596449.5483684779822e-05
350.999977781961264.44360774804321e-052.22180387402161e-05
360.99998400388223.19922355998212e-051.59961177999106e-05
370.9999880323340652.39353318695694e-051.19676659347847e-05
380.9999857992642552.84014714892668e-051.42007357446334e-05
390.9999869638407852.60723184297817e-051.30361592148909e-05
400.9999785660334364.28679331270897e-052.14339665635448e-05
410.9999826252314773.47495370451112e-051.73747685225556e-05
420.9999739625725185.20748549638262e-052.60374274819131e-05
430.9999781218361164.37563277688306e-052.18781638844153e-05
440.9999684171349566.31657300871102e-053.15828650435551e-05
450.9999492722639520.0001014554720960705.07277360480349e-05
460.9999203156313970.0001593687372063357.96843686031677e-05
470.9998969142304150.0002061715391702350.000103085769585118
480.9998543585193460.000291282961307980.00014564148065399
490.9997659908365910.000468018326817550.000234009163408775
500.9996987109242310.0006025781515369840.000301289075768492
510.9995809205006270.000838158998746180.00041907949937309
520.9993502704725050.001299459054990290.000649729527495143
530.9992324016641420.001535196671715260.00076759833585763
540.9988078758217340.002384248356531760.00119212417826588
550.9982256406700930.003548718659813470.00177435932990673
560.9987795197548620.002440960490275290.00122048024513765
570.9991860461440650.001627907711870680.00081395385593534
580.9989287419509170.002142516098166250.00107125804908312
590.9986689915526640.002662016894672940.00133100844733647
600.9981550970692810.003689805861437710.00184490293071886
610.9978067674231860.004386465153627940.00219323257681397
620.9973019618159470.005396076368105150.00269803818405257
630.996071139824750.007857720350501280.00392886017525064
640.9959401897328120.008119620534376920.00405981026718846
650.9974150240886870.005169951822626050.00258497591131303
660.9968221660679570.006355667864085830.00317783393204291
670.9956265227735850.00874695445283030.00437347722641515
680.9951250466553140.009749906689371540.00487495334468577
690.9944979270684640.01100414586307290.00550207293153646
700.9945417771687530.01091644566249370.00545822283124684
710.9920586634133260.01588267317334730.00794133658667363
720.99199151653290.01601696693419850.00800848346709924
730.9909208618918850.01815827621622950.00907913810811477
740.9893643814020270.02127123719594580.0106356185979729
750.989110878710450.02177824257910110.0108891212895506
760.9902291066687960.01954178666240780.0097708933312039
770.9932006726679420.01359865466411650.00679932733205827
780.9920278490609260.01594430187814820.00797215093907411
790.992467990778020.01506401844396080.00753200922198038
800.9925456281503440.01490874369931190.00745437184965594
810.9991514936224380.001697012755124170.000848506377562085
820.999161001506040.001677996987921720.00083899849396086
830.9987725340268970.002454931946205560.00122746597310278
840.9988912213523520.002217557295296620.00110877864764831
850.998629472671470.002741054657060780.00137052732853039
860.998257671315960.003484657368080130.00174232868404007
870.9993243430432450.001351313913508960.000675656956754481
880.9991967211082080.001606557783584340.000803278891792172
890.9993450737599490.001309852480102280.000654926240051142
900.9996587670154840.0006824659690320880.000341232984516044
910.9996432207204530.0007135585590948670.000356779279547434
920.9993976180022570.001204763995486920.000602381997743459
930.999099252716420.001801494567160820.00090074728358041
940.9985062258812760.002987548237447580.00149377411872379
950.997690854657540.004618290684918720.00230914534245936
960.9977823788251440.004435242349712430.00221762117485622
970.9951798440318340.009640311936331920.00482015596816596
980.9932743879278070.01345122414438560.00672561207219278
990.985398522615490.02920295476901910.0146014773845096
1000.9858839798807370.02823204023852530.0141160201192626
1010.9993727053804940.001254589239012740.000627294619506369
1020.999168438845050.001663122309897650.000831561154948823
1030.9998803026603460.0002393946793081960.000119697339654098
1040.9986169468901750.002766106219649770.00138305310982488


Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level670.752808988764045NOK
5% type I error level840.943820224719101NOK
10% type I error level840.943820224719101NOK
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Dec/11/t12920629452ligowc844upbmj/1045b71292063046.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/11/t12920629452ligowc844upbmj/1045b71292063046.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/11/t12920629452ligowc844upbmj/18vvg1292063046.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/11/t12920629452ligowc844upbmj/18vvg1292063046.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/11/t12920629452ligowc844upbmj/28vvg1292063046.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/11/t12920629452ligowc844upbmj/28vvg1292063046.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/11/t12920629452ligowc844upbmj/38vvg1292063046.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/11/t12920629452ligowc844upbmj/38vvg1292063046.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/11/t12920629452ligowc844upbmj/404c11292063046.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/11/t12920629452ligowc844upbmj/404c11292063046.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/11/t12920629452ligowc844upbmj/504c11292063046.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/11/t12920629452ligowc844upbmj/504c11292063046.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/11/t12920629452ligowc844upbmj/6tvc41292063046.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/11/t12920629452ligowc844upbmj/6tvc41292063046.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/11/t12920629452ligowc844upbmj/7tvc41292063046.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/11/t12920629452ligowc844upbmj/7tvc41292063046.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/11/t12920629452ligowc844upbmj/845b71292063046.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/11/t12920629452ligowc844upbmj/845b71292063046.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/11/t12920629452ligowc844upbmj/945b71292063046.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/11/t12920629452ligowc844upbmj/945b71292063046.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