Home » date » 2010 » Dec » 19 »

paperMR

*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:04:21 +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/t1292771111436g5atlwlppz3v.htm/, Retrieved Sun, 19 Dec 2010 16:05:11 +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/t1292771111436g5atlwlppz3v.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 time11 seconds
R Server'Sir Ronald Aylmer Fisher' @ 193.190.124.24


Multiple Linear Regression - Estimated Regression Equation
uitvoercijfer[t] = + 15.6010416666667 + 0.562958333333333X[t] + e[t]


Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STAT
H0: parameter = 0
2-tail p-value1-tail p-value
(Intercept)15.60104166666670.23761865.655900
X0.5629583333333330.522761.07690.2837050.141853


Multiple Linear Regression - Regression Statistics
Multiple R0.0982413066289308
R-squared0.0096513543281596
Adjusted R-squared0.00132909680150550
F-TEST (value)1.15970387809422
F-TEST (DF numerator)1
F-TEST (DF denominator)119
p-value0.283705270908207
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation2.32817506314492
Sum Squared Residuals645.027495833333


Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolation
Forecast
Residuals
Prediction Error
11515.6010416666666-0.601041666666647
214.415.6010416666667-1.20104166666667
31315.6010416666667-2.60104166666667
413.715.6010416666667-1.90104166666667
513.615.6010416666667-2.00104166666667
615.215.6010416666667-0.401041666666668
712.915.6010416666667-2.70104166666667
81415.6010416666667-1.60104166666667
914.115.6010416666667-1.50104166666667
1013.215.6010416666667-2.40104166666667
1111.315.6010416666667-4.30104166666667
1213.315.6010416666667-2.30104166666667
1314.415.6010416666667-1.20104166666667
1413.315.6010416666667-2.30104166666667
1511.615.6010416666667-4.00104166666667
1613.215.6010416666667-2.40104166666667
1713.115.6010416666667-2.50104166666667
1814.615.6010416666667-1.00104166666667
191415.6010416666667-1.60104166666667
2014.315.6010416666667-1.30104166666667
2113.815.6010416666667-1.80104166666667
2213.715.6010416666667-1.90104166666667
231115.6010416666667-4.60104166666667
2414.415.6010416666667-1.20104166666667
2515.615.6010416666667-0.00104166666666724
2613.715.6010416666667-1.90104166666667
2712.615.6010416666667-3.00104166666667
2813.215.6010416666667-2.40104166666667
2913.315.6010416666667-2.30104166666667
3014.315.6010416666667-1.30104166666667
311415.6010416666667-1.60104166666667
3213.415.6010416666667-2.20104166666667
3313.915.6010416666667-1.70104166666667
3413.715.6010416666667-1.90104166666667
3510.515.6010416666667-5.10104166666667
3614.515.6010416666667-1.10104166666667
371515.6010416666667-0.601041666666667
3813.515.6010416666667-2.10104166666667
3913.515.6010416666667-2.10104166666667
4013.215.6010416666667-2.40104166666667
4113.815.6010416666667-1.80104166666667
4216.215.60104166666670.598958333333332
4314.715.6010416666667-0.901041666666668
4413.915.6010416666667-1.70104166666667
451615.60104166666670.398958333333333
4614.415.6010416666667-1.20104166666667
4712.315.6010416666667-3.30104166666667
4815.915.60104166666670.298958333333333
4915.915.60104166666670.298958333333333
5015.515.6010416666667-0.101041666666667
5115.115.6010416666667-0.501041666666667
5214.515.6010416666667-1.10104166666667
5315.115.6010416666667-0.501041666666667
5417.415.60104166666671.79895833333333
5516.215.60104166666670.598958333333332
5615.615.6010416666667-0.00104166666666724
5717.215.60104166666671.59895833333333
5814.915.6010416666667-0.701041666666667
5913.815.6010416666667-1.80104166666667
6017.515.60104166666671.89895833333333
6116.215.60104166666670.598958333333332
6217.515.60104166666671.89895833333333
6316.615.60104166666670.998958333333335
6416.215.60104166666670.598958333333332
6516.615.60104166666670.998958333333335
6619.615.60104166666673.99895833333333
6715.915.60104166666670.298958333333333
681815.60104166666672.39895833333333
6918.315.60104166666672.69895833333333
7016.315.60104166666670.698958333333334
7114.915.6010416666667-0.701041666666667
7218.215.60104166666672.59895833333333
7318.415.60104166666672.79895833333333
7418.515.60104166666672.89895833333333
751615.60104166666670.398958333333333
7617.415.60104166666671.79895833333333
7717.215.60104166666671.59895833333333
7819.615.60104166666673.99895833333333
7917.215.60104166666671.59895833333333
8018.315.60104166666672.69895833333333
8119.315.60104166666673.69895833333333
8218.115.60104166666672.49895833333333
8316.215.60104166666670.598958333333332
8418.415.60104166666672.79895833333333
8520.515.60104166666674.89895833333333
861915.60104166666673.39895833333333
8716.515.60104166666670.898958333333333
8818.715.60104166666673.09895833333333
891915.60104166666673.39895833333333
9019.215.60104166666673.59895833333333
9120.515.60104166666674.89895833333333
9219.315.60104166666673.69895833333333
9320.615.60104166666674.99895833333333
9420.115.60104166666674.49895833333333
9516.115.60104166666670.498958333333335
9620.415.60104166666674.79895833333333
9719.716.1643.536
9815.616.164-0.564
9914.416.164-1.764
10013.716.164-2.464
10114.116.164-2.064
1021516.164-1.164
10314.216.164-1.964
10413.616.164-2.564
10515.416.164-0.764
10614.816.164-1.364
10712.516.164-3.664
10816.216.1640.0359999999999995
10916.116.164-0.0639999999999984
1101616.164-0.164000000000000
11115.816.164-0.363999999999999
11215.216.164-0.964
11315.716.164-0.464000000000000
11418.916.1642.736
11517.416.1641.236
1161716.1640.836
11719.816.1643.636
11817.716.1641.536
1191616.164-0.164000000000000
12019.616.1643.436
12119.716.1643.536


Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
50.06712721420319190.1342544284063840.932872785796808
60.04532804739498210.09065609478996420.954671952605018
70.03135840194095920.06271680388191840.96864159805904
80.01160523097635180.02321046195270360.988394769023648
90.004044557128704250.008089114257408490.995955442871296
100.001967522582414890.003935045164829770.998032477417585
110.01255943650422290.02511887300844570.987440563495777
120.006080588345766760.01216117669153350.993919411654233
130.003212814756607560.006425629513215110.996787185243392
140.001510889014293370.003021778028586740.998489110985707
150.003109813417249740.006219626834499470.99689018658275
160.001580129844004270.003160259688008530.998419870155996
170.0008130238859427270.001626047771885450.999186976114057
180.0005523679790707920.001104735958141580.99944763202093
190.0002716406795012320.0005432813590024640.999728359320499
200.0001463775399987450.0002927550799974890.999853622460001
216.71672079802195e-050.0001343344159604390.99993283279202
223.02537542887998e-056.05075085775995e-050.999969746245711
230.0002285975456551660.0004571950913103330.999771402454345
240.0001434586107355240.0002869172214710480.999856541389264
250.0002286310628695750.0004572621257391510.99977136893713
260.0001244621741453830.0002489243482907650.999875537825855
270.0001052745499505310.0002105490999010620.99989472545005
286.48423979875567e-050.0001296847959751130.999935157602012
293.89565490279251e-057.79130980558501e-050.999961043450972
302.40269864221251e-054.80539728442503e-050.999975973013578
311.36987443044038e-052.73974886088076e-050.999986301255696
328.2478660111832e-061.64957320223664e-050.999991752133989
334.71862937478437e-069.43725874956874e-060.999995281370625
342.73571082921501e-065.47142165843001e-060.99999726428917
358.03760486924259e-050.0001607520973848520.999919623951308
366.28571159069279e-050.0001257142318138560.999937142884093
376.22009551265533e-050.0001244019102531070.999937799044873
384.76473465026274e-059.52946930052547e-050.999952352653497
393.77961621806751e-057.55923243613501e-050.99996220383782
403.53028680648163e-057.06057361296327e-050.999964697131935
412.86283862292233e-055.72567724584466e-050.99997137161377
428.84809090444215e-050.0001769618180888430.999911519090956
438.0036642757992e-050.0001600732855159840.999919963357242
447.0626707831229e-050.0001412534156624580.999929373292169
450.0001391326629729250.0002782653259458490.999860867337027
460.0001250929600937970.0002501859201875940.999874907039906
470.0003578220674717290.0007156441349434580.999642177932528
480.0005837501900880420.001167500380176080.999416249809912
490.0008754088149095490.001750817629819100.99912459118509
500.001041569832915850.002083139665831700.998958430167084
510.001114374277776630.002228748555553250.998885625722223
520.001206600076482760.002413200152965510.998793399923517
530.001350959593583490.002701919187166970.998649040406417
540.004512806114252290.009025612228504590.995487193885748
550.006003318556048350.01200663711209670.993996681443952
560.006736572150658820.01347314430131760.993263427849341
570.01260482842836590.02520965685673180.987395171571634
580.01403719443158640.02807438886317280.985962805568414
590.0225357735466670.0450715470933340.977464226453333
600.04014175315366650.0802835063073330.959858246846334
610.04620132266872120.09240264533744240.953798677331279
620.06862565293624930.1372513058724990.93137434706375
630.07824618752997140.1564923750599430.921753812470029
640.08551783706336640.1710356741267330.914482162936634
650.09546236534221180.1909247306844240.904537634657788
660.2262902751799620.4525805503599240.773709724820038
670.2372189003999850.474437800799970.762781099600015
680.2790086031016340.5580172062032680.720991396898366
690.3292790106849210.6585580213698420.670720989315079
700.3350604488616120.6701208977232240.664939551138388
710.3968990321108290.7937980642216580.603100967889171
720.4346434115561050.869286823112210.565356588443895
730.4733060086571170.9466120173142350.526693991342883
740.5081259374443180.9837481251113640.491874062555682
750.5291761895784840.9416476208430330.470823810421516
760.531406567297610.937186865404780.46859343270239
770.5334763128389790.9330473743220430.466523687161021
780.60394518993990.7921096201202010.396054810060101
790.6009482608032670.7981034783934650.399051739196732
800.6029718309521070.7940563380957850.397028169047892
810.632414528546330.735170942907340.36758547145367
820.6230366686982470.7539266626035050.376963331301753
830.6504984796726240.6990030406547510.349501520327376
840.6441052989022830.7117894021954330.355894701097717
850.7091927656476660.5816144687046680.290807234352334
860.7029150223002680.5941699553994650.297084977699732
870.7221598730069380.5556802539861230.277840126993062
880.7089035540342560.5821928919314890.291096445965744
890.696154961284040.6076900774319210.303845038715960
900.6830450723925650.633909855214870.316954927607435
910.705715322535240.5885693549295190.294284677464760
920.6859492044510010.6281015910979980.314050795548999
930.7090928269930510.5818143460138970.290907173006949
940.7164818723771530.5670362552456930.283518127622847
950.7447381299132460.5105237401735090.255261870086754
960.731267670532270.537464658935460.26873232946773
970.7936939172266160.4126121655467680.206306082773384
980.7552120461815470.4895759076369070.244787953818453
990.7358897613926840.5282204772146310.264110238607316
1000.7472697056934870.5054605886130260.252730294306513
1010.7398152133182760.5203695733634490.260184786681724
1020.6961754767678660.6076490464642690.303824523232134
1030.6901045823558770.6197908352882450.309895417644123
1040.7361565289857280.5276869420285430.263843471014272
1050.6881453266661780.6237093466676430.311854673333822
1060.6694482210375380.6611035579249240.330551778962462
1070.8855382379086940.2289235241826110.114461762091306
1080.8480503047534370.3038993904931250.151949695246563
1090.8071448423785540.3857103152428930.192855157621446
1100.767206321990410.4655873560191790.232793678009589
1110.742458469953160.515083060093680.25754153004684
1120.7949735251471450.4100529497057110.205026474852855
1130.8363654666336410.3272690667327170.163634533366359
1140.755172841462980.489654317074040.24482715853702
1150.6436346167591450.712730766481710.356365383240855
1160.5464534155641030.9070931688717930.453546584435897


Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level440.392857142857143NOK
5% type I error level520.464285714285714NOK
10% type I error level560.5NOK
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Dec/19/t1292771111436g5atlwlppz3v/10qggp1292771045.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/19/t1292771111436g5atlwlppz3v/10qggp1292771045.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/19/t1292771111436g5atlwlppz3v/11xiv1292771045.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/19/t1292771111436g5atlwlppz3v/11xiv1292771045.ps (open in new window)


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


http://www.freestatistics.org/blog/date/2010/Dec/19/t1292771111436g5atlwlppz3v/3c6ig1292771045.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/19/t1292771111436g5atlwlppz3v/3c6ig1292771045.ps (open in new window)


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


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


http://www.freestatistics.org/blog/date/2010/Dec/19/t1292771111436g5atlwlppz3v/65yhj1292771045.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/19/t1292771111436g5atlwlppz3v/65yhj1292771045.ps (open in new window)


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


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


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