Home » date » 2010 » Dec » 18 »

*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, 18 Dec 2010 14:21:20 +0000
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2010/Dec/18/t12926819876o1s6mqxn9ut78d.htm/, Retrieved Sat, 18 Dec 2010 15:19:50 +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/18/t12926819876o1s6mqxn9ut78d.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 «
13.193 651 3.063 5.951 15.234 736 3.547 6.789 14.718 878 3.240 6.302 16.961 916 3.708 6.961 13.945 724 3.337 6.162 15.876 841 4.104 7.534 16.226 1.028 4.846 7.462 18.316 994 4.590 8.894 16.748 855 3.917 7.734 17.904 889 4.376 8.968 17.209 1.117 4.312 8.383 18.950 1.132 4.941 9.790 17.225 899 4.659 9.656 18.710 944 5.227 10.440 17.236 1.167 4.933 9.820 18.687 1.089 5.381 10.947 17.580 970 5.472 10.439 19.568 1.151 6.405 12.289 17.381 1.246 5.622 11.303 19.580 1.583 6.229 12.240 17.260 1.120 5.671 11.392 18.661 1.063 5.606 11.120 15.658 1.015 4.516 9.597 18.674 1.175 5.483 10.692 15.908 882 4.985 9.217 17.475 911 5.332 9.371 17.725 1.076 5.377 9.526 19.562 1.147 5.948 10.837 16.368 946 5.308 9.749 19.555 1.032 6.721 9.939 17.743 1.090 5.840 9.309 19.867 1.131 6.152 10.316 15.703 870 5.184 8.546 19.324 1.113 6.610 9.885 18.162 1.172 6.417 9.266 19.074 1.147 6.529 9.978 15.323 891 5.412 8.685 19.704 1.036 6.807 10.066 18.375 1.204 6.817 9.668 18.352 1.055 6.582 9.562 13.927 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 time6 seconds
R Server'RServer@AstonUniversity' @ vre.aston.ac.uk


Multiple Linear Regression - Estimated Regression Equation
huis[t] = + 7.5369819904055 -7.66779956071819e-05villa[t] + 0.574876723257612app[t] + 0.751657733709431grond[t] + e[t]


Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STAT
H0: parameter = 0
2-tail p-value1-tail p-value
(Intercept)7.53698199040550.9858847.644900
villa-7.66779956071819e-050.000371-0.20690.8365370.418268
app0.5748767232576120.0800527.181300
grond0.7516577337094310.06302311.926700


Multiple Linear Regression - Regression Statistics
Multiple R0.78754451930136
R-squared0.62022636988161
Adjusted R-squared0.60871807805984
F-TEST (value)53.8938688284192
F-TEST (DF numerator)3
F-TEST (DF denominator)99
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation0.994976243304446
Sum Squared Residuals98.0077947492827


Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolation
Forecast
Residuals
Prediction Error
113.19313.7210271919081-0.52802719190811
215.23414.62263907718670.611360922813311
314.71814.06920633145390.648793668546111
416.96114.83067732061992.1303226793801
513.94514.0315457022141-0.0865457022140636
615.87615.4947792341160.381220765884049
716.22615.93162577527220.294374224727824
818.31616.78469210613611.53130789386392
916.74815.53653534167021.21146465832984
1017.90416.72534234919221.1786576508078
1117.20916.31691155345740.892088446542613
1218.9517.73609029354571.21390970645434
1317.22517.4044062027101-0.17940620271012
1418.7118.31678533494630.393214665053685
1517.23617.754038328041-0.518038328041036
1618.68718.8587073468346-0.171707346834631
1717.5818.4548848465249-0.874884846524936
1819.56820.4561010360528-0.888101036052755
1917.38119.264830751895-1.88383075189496
2019.5820.3180583789136-0.738058378913554
2117.2619.3599069110622-2.09990691106217
2218.66119.1180933911272-0.457093391127211
2315.65817.3467067148807-1.68870671488074
2418.67418.7256654562034-0.0516654562033823
2515.90817.263141795319-1.35514179531899
2617.47517.576155647408-0.101155647408019
2717.72517.7883031971544-0.063303197154442
2819.56219.10197565088990.460024349110085
2916.36817.8438014995458-1.47580149954575
3019.55518.87137553106650.683624468933524
3117.74317.8913603183158-0.148360318315834
3219.86718.82763805001981.03936194998021
3315.70316.8741000598755-1.17110005987551
3419.32418.76696848624690.557031513753073
3518.16218.1907366174903-0.0287366174903309
3619.07418.79030503384620.283694966153814
3715.32317.1080421398561-1.7850421398561
3819.70419.01627515473570.687724845264253
3918.37518.7228512620487-0.347851262048706
4018.35218.5080909373313-0.156090937331313
4113.92716.2967556797246-2.36975567972456
4217.79516.85187870831620.943121291683846
4316.76116.3581922751990.402807724800996
4418.90217.50366169602511.39833830397487
4516.23917.0682678847899-0.829267884789924
4619.15818.5363560872950.621643912704998
4718.27917.70956091074170.569439089258335
4815.69816.4751340883821-0.777134088382074
4916.23917.0682678847899-0.829267884789924
5018.43118.06921467224490.361785327755084
5118.41417.69955308555480.714446914445182
5219.80118.94372777617430.85727222382573
5314.99516.4834349509333-1.48843495093329
5418.70617.5517441347251.15425586527503
5518.23217.21548171072821.01651828927179
5619.40917.91631310091851.49268689908154
5716.26316.5724024246338-0.309402424633834
5819.01717.77619572372011.24080427627991
5920.29818.61270999500221.6852900049978
6019.89118.63129277526211.25970722473791
6115.20316.0171494195329-0.814149419532942
6217.84517.12843524632670.716564753673265
6317.50217.1386620010350.363337998965024
6418.53217.56268945163160.96931054836836
6515.73716.6622291499918-0.925229149991802
6617.7717.16100704174490.608992958255065
6717.22416.81216528723680.411834712763178
6817.60116.42643235557161.1745676444284
6914.9415.6740323239188-0.734032323918753
7018.50717.12040196122741.38659803877263
7117.63516.5461410367821.088858963218
7219.39217.00114449451872.39085550548131
7315.69915.7550358183819-0.0560358183818946
7417.66116.61931673368851.04168326631147
7518.24316.90268043810461.34031956189538
7619.64318.11355180436311.52944819563692
7715.7716.5425886454639-0.772588645463865
7817.34417.26694468839670.0770553116032564
7917.22917.4039745187523-0.174974518752279
8017.32217.7005744783444-0.378574478344372
8116.15216.3705647427662-0.21856474276615
8217.91917.74288724219560.176112757804387
8316.91816.73329716676150.184702833238464
8418.11418.4507621683366-0.336762168336618
8516.30817.5281350613931-1.2201350613931
8617.75917.9450220636125-0.186022063612544
8716.02116.9018163201246-0.880816320124557
8817.95218.1330629882577-0.181062988257747
8915.95417.0857381312189-1.13173813121887
9017.76218.0998406993002-0.337840699300196
9116.6117.208643613665-0.598643613664969
9217.75118.0222099834571-0.271209983457059
9315.45816.7629955523422-1.30499555234222
9418.10618.386366457434-0.280366457433979
9515.9916.6072805661297-0.617280566129674
9615.34916.3516670990596-1.00266709905959
9713.18514.9032523680076-1.71825236800763
9815.40915.961811941391-0.552811941391041
9916.00716.1368844795053-0.129884479505346
10016.63317.2886202684069-0.655620268406852
10114.816.1132612724296-1.31326127242963
10215.97416.7565411971138-0.782541197113842
10315.69316.0916577998029-0.398657799802882


Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
70.4552027556212260.9104055112424520.544797244378774
80.3029211684760670.6058423369521330.697078831523933
90.2314291839417030.4628583678834060.768570816058297
100.1498386463040530.2996772926081060.850161353695947
110.1608801699304280.3217603398608560.839119830069572
120.1045788404253410.2091576808506830.895421159574659
130.3237643094440380.6475286188880760.676235690555962
140.310725062927710.6214501258554190.68927493707229
150.3334154391355910.6668308782711830.666584560864409
160.2700511659215190.5401023318430380.729948834078481
170.3947418371268810.7894836742537620.605258162873119
180.3688018158788710.7376036317577420.631198184121129
190.5469925304500970.9060149390998060.453007469549903
200.4963081935023360.9926163870046730.503691806497664
210.6865601495317210.6268797009365590.313439850468279
220.6380878533364720.7238242933270560.361912146663528
230.7043779604334060.5912440791331880.295622039566594
240.6669477972236350.666104405552730.333052202776365
250.7760857975336030.4478284049327950.223914202466397
260.7294144864266410.5411710271467170.270585513573359
270.6756894604050220.6486210791899570.324310539594978
280.6685323980351070.6629352039297850.331467601964893
290.7442561043506430.5114877912987140.255743895649357
300.7078357408486360.5843285183027280.292164259151364
310.6600735096026640.6798529807946710.339926490397336
320.6634548624872160.6730902750255690.336545137512784
330.7213277205639710.5573445588720570.278672279436029
340.672343435184160.655313129631680.32765656481584
350.6277861025380950.744427794923810.372213897461905
360.575303692665690.849392614668620.42469630733431
370.7354973612184480.5290052775631040.264502638781552
380.7007656001461560.5984687997076890.299234399853844
390.6942856616643460.6114286766713080.305714338335654
400.6724541283008790.6550917433982420.327545871699121
410.9154440963835580.1691118072328850.0845559036164423
420.9022211532323360.1955576935353280.097778846767664
430.9761594482895740.04768110342085170.0238405517104258
440.978529482681730.04294103463654120.0214705173182706
450.984088256133470.03182348773305950.0159117438665298
460.979556913297540.04088617340491870.0204430867024594
470.9715719990470360.05685600190592860.0284280009529643
480.97778193426660.04443613146680180.0222180657334009
490.9844101259056370.03117974818872680.0155898740943634
500.9802141190111650.03957176197767010.0197858809888351
510.9730504983859250.05389900322815050.0269495016140753
520.9691997764774140.06160044704517190.0308002235225859
530.99350131577240.01299736845519910.00649868422759956
540.9912459600408690.0175080799182620.008754039959131
550.988332753891770.02333449221646110.0116672461082305
560.9859130322869850.02817393542602940.0140869677130147
570.9875994473849460.02480110523010840.0124005526150542
580.982612422784330.03477515443133810.017387577215669
590.9784070763402950.04318584731941080.0215929236597054
600.9704634274036620.05907314519267580.0295365725963379
610.9823374231280050.03532515374399070.0176625768719953
620.9752364671099180.04952706578016410.0247635328900821
630.9666772946042180.06664541079156380.0333227053957819
640.9538310219815130.09233795603697420.0461689780184871
650.9853517087795390.02929658244092220.0146482912204611
660.9802484870336320.03950302593273590.019751512966368
670.972837954846420.05432409030716180.0271620451535809
680.964547565791290.07090486841742030.0354524342087102
690.9752349810528450.04953003789430920.0247650189471546
700.9698456429065970.0603087141868060.030154357093403
710.963030021374520.0739399572509590.0369699786254795
720.9947754448991520.01044911020169530.00522455510084767
730.992413777004810.01517244599037810.00758622299518907
740.992973589688840.01405282062232060.00702641031116029
750.9985283896315740.002943220736851580.00147161036842579
760.9999512740132299.7451973542612e-054.8725986771306e-05
770.999927000618230.0001459987635409587.29993817704789e-05
780.9999684399987456.3120002509985e-053.15600012549925e-05
790.9999789802616874.20394766256171e-052.10197383128085e-05
800.999998372184683.25563064119566e-061.62781532059783e-06
810.9999977754003524.44919929534841e-062.2245996476742e-06
820.999997079010365.84197928020656e-062.92098964010328e-06
830.9999992216301551.55673968981993e-067.78369844909965e-07
840.9999976458449464.70831010798502e-062.35415505399251e-06
850.9999964939104247.01217915218956e-063.50608957609478e-06
860.999996207561377.58487726019375e-063.79243863009688e-06
870.9999872660737932.54678524142613e-051.27339262071306e-05
880.9999575022637838.49954724338374e-054.24977362169187e-05
890.9998727576297990.0002544847404021110.000127242370201055
900.9996618755794160.0006762488411679070.000338124420583954
910.9990085522723210.001982895455357740.000991447727678872
920.9971437524611560.005712495077687990.002856247538844
930.9922552898777360.01548942024452780.0077447101222639
940.9934983298210390.01300334035792250.00650167017896125
950.9805203583139380.03895928337212430.0194796416860621
960.9364765915085960.1270468169828080.0635234084914042


Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level180.2NOK
5% type I error level430.477777777777778NOK
10% type I error level530.588888888888889NOK
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Dec/18/t12926819876o1s6mqxn9ut78d/10a9t31292682070.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/18/t12926819876o1s6mqxn9ut78d/10a9t31292682070.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/18/t12926819876o1s6mqxn9ut78d/1l8ws1292682070.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/18/t12926819876o1s6mqxn9ut78d/1l8ws1292682070.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/18/t12926819876o1s6mqxn9ut78d/2dzvv1292682070.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/18/t12926819876o1s6mqxn9ut78d/2dzvv1292682070.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/18/t12926819876o1s6mqxn9ut78d/3dzvv1292682070.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/18/t12926819876o1s6mqxn9ut78d/3dzvv1292682070.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/18/t12926819876o1s6mqxn9ut78d/4dzvv1292682070.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/18/t12926819876o1s6mqxn9ut78d/4dzvv1292682070.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/18/t12926819876o1s6mqxn9ut78d/5o9vy1292682070.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/18/t12926819876o1s6mqxn9ut78d/5o9vy1292682070.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/18/t12926819876o1s6mqxn9ut78d/6o9vy1292682070.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/18/t12926819876o1s6mqxn9ut78d/6o9vy1292682070.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/18/t12926819876o1s6mqxn9ut78d/7hic11292682070.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/18/t12926819876o1s6mqxn9ut78d/7hic11292682070.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/18/t12926819876o1s6mqxn9ut78d/8hic11292682070.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/18/t12926819876o1s6mqxn9ut78d/8hic11292682070.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/18/t12926819876o1s6mqxn9ut78d/9a9t31292682070.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/18/t12926819876o1s6mqxn9ut78d/9a9t31292682070.ps (open in new window)


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