Home » date » 2010 » Dec » 19 »

paperMR3

*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:18:15 +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/t12927718545gn3obv5qtx0q65.htm/, Retrieved Sun, 19 Dec 2010 16:17:45 +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/t12927718545gn3obv5qtx0q65.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 14.4 0 13 0 13.7 0 13.6 0 15.2 0 12.9 0 14 0 14.1 0 13.2 0 11.3 0 13.3 0 14.4 0 13.3 0 11.6 0 13.2 0 13.1 0 14.6 0 14 0 14.3 0 13.8 0 13.7 0 11 0 14.4 0 15.6 0 13.7 0 12.6 0 13.2 0 13.3 0 14.3 0 14 0 13.4 0 13.9 0 13.7 0 10.5 0 14.5 0 15 0 13.5 0 13.5 0 13.2 0 13.8 0 16.2 0 14.7 0 13.9 0 16 0 14.4 0 12.3 0 15.9 0 15.9 0 15.5 0 15.1 0 14.5 0 15.1 0 17.4 0 16.2 0 15.6 0 17.2 0 14.9 0 13.8 0 17.5 0 16.2 0 17.5 0 16.6 0 16.2 0 16.6 0 19.6 0 15.9 0 18 0 18.3 0 16.3 0 14.9 0 18.2 0 18.4 0 18.5 0 16 0 17.4 0 17.2 0 19.6 0 17.2 0 18.3 0 19.3 0 18.1 0 16.2 0 18.4 0 20.5 0 19 0 16.5 0 18.7 0 19 0 19.2 0 20.5 0 19.3 0 20.6 0 20.1 0 16.1 0 20.4 0 19.7 1 15.6 1 14.4 1 13.7 1 14.1 1 15 1 14.2 1 13.6 1 15.4 1 14.8 1 12.5 1 16.2 1 16.1 1 16 1 15.8 1 15.2 1 15.7 1 18.9 1 17.4 1 17 1 19.8 1 17.7 1 16 1 19.6 1 19.7 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 time18 seconds
R Server'Gwilym Jenkins' @ 72.249.127.135


Multiple Linear Regression - Estimated Regression Equation
uitvoercijfer[t] = + 12.7757731042654 -3.94653929699842X[t] + 0.769258521231271M1[t] -0.404615946191776M2[t] -1.6681543515726M3[t] -1.35169275695342M4[t] -1.17523116233424M5[t] + 0.601230432284937M6[t] -0.772307973095888M7[t] -0.80584637847671M8[t] + 0.220615216142469M9[t] -1.00292318923835M10[t] -3.30646159461918M11[t] + 0.0735384053808224t + e[t]


Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STAT
H0: parameter = 0
2-tail p-value1-tail p-value
(Intercept)12.77577310426540.38713733.000600
X-3.946539296998420.326344-12.093200
M10.7692585212312710.4515941.70340.0913910.045695
M2-0.4046159461917760.462012-0.87580.3831170.191559
M3-1.66815435157260.461716-3.61290.0004630.000231
M4-1.351692756953420.461452-2.92920.0041540.002077
M5-1.175231162334240.461218-2.54810.0122510.006125
M60.6012304322849370.4610151.30410.1949830.097491
M7-0.7723079730958880.460844-1.67590.0966860.048343
M8-0.805846378476710.460703-1.74920.083130.041565
M90.2206152161424690.4605940.4790.632930.316465
M10-1.002923189238350.460516-2.17780.0316150.015807
M11-3.306461594619180.460469-7.180600
t0.07353840538082240.00379219.393400


Multiple Linear Regression - Regression Statistics
Multiple R0.908760355834885
R-squared0.825845384337147
Adjusted R-squared0.804686412340725
F-TEST (value)39.0305060414476
F-TEST (DF numerator)13
F-TEST (DF denominator)107
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation1.02960504914899
Sum Squared Residuals113.429261623941


Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolation
Forecast
Residuals
Prediction Error
11513.61857003087751.38142996912254
214.412.51823396883531.88176603116472
31311.32823396883531.67176603116473
413.711.71823396883531.98176603116473
513.611.96823396883531.63176603116474
615.213.81823396883531.38176603116473
712.912.51823396883530.381766031164725
81412.55823396883531.44176603116472
914.113.65823396883530.441766031164725
1013.212.50823396883530.691766031164726
1111.310.27823396883531.02176603116473
1213.313.6582339688353-0.358233968835272
1314.414.5010308954474-0.101030895447369
1413.313.4006948334051-0.100694833405141
1511.612.2106948334051-0.610694833405144
1613.212.60069483340510.599305166594858
1713.112.85069483340510.249305166594855
1814.614.7006948334051-0.100694833405142
191413.40069483340510.599305166594859
2014.313.44069483340510.859305166594859
2113.814.5406948334051-0.740694833405141
2213.713.39069483340510.309305166594857
231111.1606948334051-0.160694833405144
2414.414.5406948334051-0.140694833405141
2515.615.38349176001720.216508239982763
2613.714.283155697975-0.583155697975011
2712.613.0931556979750-0.493155697975014
2813.213.483155697975-0.283155697975011
2913.313.7331556979750-0.433155697975013
3014.315.583155697975-1.28315569797501
311414.283155697975-0.28315569797501
3213.414.323155697975-0.923155697975011
3313.915.423155697975-1.52315569797501
3413.714.273155697975-0.573155697975012
3510.512.0431556979750-1.54315569797501
3614.515.423155697975-0.92315569797501
371516.2659526245871-1.26595262458711
3813.515.1656165625449-1.66561656254488
3913.513.9756165625449-0.475616562544882
4013.214.3656165625449-1.16561656254488
4113.814.6156165625449-0.815616562544882
4216.216.4656165625449-0.265616562544881
4314.715.1656165625449-0.465616562544880
4413.915.2056165625449-1.30561656254488
451616.3056165625449-0.305616562544881
4614.415.1556165625449-0.75561656254488
4712.312.9256165625449-0.62561656254488
4815.916.3056165625449-0.405616562544879
4915.917.1484134891570-1.24841348915698
5015.516.0480774271147-0.548077427114749
5115.114.85807742711480.241922572885248
5214.515.2480774271147-0.748077427114749
5315.115.4980774271148-0.398077427114752
5417.417.34807742711470.0519225728852497
5516.216.04807742711470.151922572885251
5615.616.0880774271148-0.48807742711475
5717.217.18807742711470.0119225728852496
5814.916.0380774271148-1.13807742711475
5913.813.8080774271147-0.0080774271147488
6017.517.18807742711470.311922572885252
6116.218.0308743537268-1.83087435372685
6217.516.93053829168460.569461708315383
6316.615.74053829168460.859461708315381
6416.216.13053829168460.0694617083153818
6516.616.38053829168460.219461708315381
6619.618.23053829168461.36946170831538
6715.916.9305382916846-1.03053829168462
681816.97053829168461.02946170831538
6918.318.07053829168460.229461708315383
7016.316.9205382916846-0.620538291684617
7114.914.69053829168460.209461708315382
7218.218.07053829168460.129461708315382
7318.418.9133352182967-0.513335218296715
7418.517.81299915625450.687000843745514
751616.6229991562545-0.622999156254489
7617.417.01299915625450.387000843745511
7717.217.2629991562545-0.06299915625449
7819.619.11299915625450.487000843745513
7917.217.8129991562545-0.612999156254487
8018.317.85299915625450.447000843745514
8119.318.95299915625450.347000843745514
8218.117.80299915625450.297000843745514
8316.215.57299915625450.627000843745511
8418.418.9529991562545-0.552999156254488
8520.519.79579608286660.704203917133417
861918.69546002082440.304539979175645
8716.517.5054600208244-1.00546002082436
8818.717.89546002082440.804539979175643
891918.14546002082440.854539979175641
9019.219.9954600208244-0.795460020824357
9120.518.69546002082441.80453997917564
9219.318.73546002082440.564539979175646
9320.619.83546002082440.764539979175643
9420.118.68546002082441.41453997917564
9516.116.4554600208244-0.355460020824355
9620.419.83546002082440.564539979175643
9719.716.73171765043802.96828234956197
9815.615.6313815883958-0.0313815883958056
9914.414.4413815883958-0.0413815883958076
10013.714.8313815883958-1.13138158839581
10114.115.0813815883958-0.981381588395809
1021516.9313815883958-1.93138158839581
10314.215.6313815883958-1.43138158839581
10413.615.6713815883958-2.07138158839581
10515.416.7713815883958-1.37138158839581
10614.815.6213815883958-0.821381588395806
10712.513.3913815883958-0.891381588395806
10816.216.7713815883958-0.571381588395806
10916.117.6141785150079-1.5141785150079
1101616.5138424529657-0.513842452965674
11115.815.32384245296570.476157547034324
11215.215.7138424529657-0.513842452965675
11315.715.9638424529657-0.263842452965678
11418.917.81384245296571.08615754703432
11517.416.51384245296570.886157547034325
1161716.55384245296570.446157547034325
11719.817.65384245296572.14615754703433
11817.716.50384245296571.19615754703432
1191614.27384245296571.72615754703432
12019.617.65384245296571.94615754703433
12119.718.49663937957781.20336062042223


Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
170.05811788469703160.1162357693940630.941882115302968
180.01888923107728020.03777846215456030.98111076892272
190.1832522281395170.3665044562790340.816747771860483
200.1523134498435930.3046268996871860.847686550156407
210.08648961366770970.1729792273354190.91351038633229
220.07678447795433150.1535689559086630.923215522045668
230.04362217921838920.08724435843677840.95637782078161
240.06812791342869640.1362558268573930.931872086571304
250.0858493971270.1716987942540.914150602873
260.05374782754476920.1074956550895380.94625217245523
270.03492034967498540.06984069934997080.965079650325015
280.02229504545711580.04459009091423160.977704954542884
290.01311199475380310.02622398950760620.986888005246197
300.009017078579848240.01803415715969650.990982921420152
310.007111842767699860.01422368553539970.9928881572323
320.005665311349454720.01133062269890940.994334688650545
330.003187392260399230.006374784520798460.9968126077396
340.001907029515390580.003814059030781160.99809297048461
350.001349945524775350.002699891049550690.998650054475225
360.001132256735588760.002264513471177520.998867743264411
370.00059118400504040.00118236801008080.99940881599496
380.0003443524321619980.0006887048643239970.999655647567838
390.0006617246053890770.001323449210778150.99933827539461
400.0003531863118845230.0007063726237690460.999646813688115
410.0002193983378136690.0004387966756273380.999780601662186
420.0006993286253767250.001398657250753450.999300671374623
430.0007233433537577840.001446686707515570.999276656646242
440.0004149430276818080.0008298860553636170.999585056972318
450.002152780115553040.004305560231106080.997847219884447
460.001501058126565140.003002116253130280.998498941873435
470.001557243896633430.003114487793266870.998442756103367
480.002589244842370560.005178489684741120.99741075515763
490.001779796905371420.003559593810742830.998220203094629
500.002080944376649230.004161888753298470.99791905562335
510.005040608305270530.01008121661054110.99495939169473
520.003355892966736650.00671178593347330.996644107033263
530.002757308532114990.005514617064229970.997242691467885
540.004020590997208720.008041181994417440.995979409002791
550.005298575960433780.01059715192086760.994701424039566
560.003958772760033330.007917545520066660.996041227239967
570.006348075833590350.01269615166718070.99365192416641
580.004422206405752880.008844412811505760.995577793594247
590.0051649936721720.0103299873443440.994835006327828
600.008501897170180810.01700379434036160.99149810282982
610.01015721380844470.02031442761688950.989842786191555
620.01754670494652850.03509340989305710.982453295053471
630.03179651393727810.06359302787455630.968203486062722
640.02792159445385760.05584318890771510.972078405546142
650.0265337424135650.053067484827130.973466257586435
660.07741067054469890.1548213410893980.922589329455301
670.06097956476301540.1219591295260310.939020435236985
680.1079781319253280.2159562638506560.892021868074672
690.1057414723260380.2114829446520770.894258527673962
700.08251206825057660.1650241365011530.917487931749423
710.07767844515660540.1553568903132110.922321554843395
720.070752157829860.141504315659720.92924784217014
730.05992424274807520.1198484854961500.940075757251925
740.0633399364473630.1266798728947260.936660063552637
750.0470388165079480.0940776330158960.952961183492052
760.04271480026049550.0854296005209910.957285199739504
770.03199082311802470.06398164623604930.968009176881975
780.03378954983099440.06757909966198880.966210450169006
790.02473445036119820.04946890072239650.975265549638802
800.02461067209429580.04922134418859160.975389327905704
810.02044303552730950.04088607105461890.97955696447269
820.01630336769993870.03260673539987750.983696632300061
830.01665533683168460.03331067366336920.983344663168315
840.01137442239611480.02274884479222960.988625577603885
850.01032303066165780.02064606132331560.989676969338342
860.006887208266114520.01377441653222900.993112791733886
870.008694918280538470.01738983656107690.991305081719462
880.007216049714229160.01443209942845830.99278395028577
890.005965067328168760.01193013465633750.994034932671831
900.004687246043443770.009374492086887540.995312753956556
910.008149843346612820.01629968669322560.991850156653387
920.006369924099538750.01273984819907750.99363007590046
930.004406204745324200.008812409490648390.995593795254676
940.00532132762462660.01064265524925320.994678672375373
950.00312709768745070.00625419537490140.99687290231255
960.001852036085585840.003704072171171680.998147963914414
970.4206778023241110.8413556046482230.579322197675889
980.7209489491758360.5581021016483290.279051050824164
990.8048741015980920.3902517968038150.195125898401908
1000.9113272880478990.1773454239042030.0886727119521014
1010.9918668882030360.01626622359392740.00813311179696372
1020.9831491460998180.03370170780036450.0168508539001822
1030.9585937267670320.08281254646593670.0414062732329684
1040.8937833570321300.2124332859357410.106216642967870


Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level270.306818181818182NOK
5% type I error level560.636363636363636NOK
10% type I error level660.75NOK
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Dec/19/t12927718545gn3obv5qtx0q65/1017or1292771876.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/19/t12927718545gn3obv5qtx0q65/1017or1292771876.ps (open in new window)


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


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


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


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


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


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


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


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


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