Home » date » 2010 » Dec » 28 »

Multiple Regression X1

*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: Tue, 28 Dec 2010 18:52:01 +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/28/t1293562202332oyb8raqrvdpz.htm/, Retrieved Tue, 28 Dec 2010 19:50:02 +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/28/t1293562202332oyb8raqrvdpz.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 «
621 0 587 0 655 0 517 0 646 0 657 0 382 0 345 0 625 0 654 0 606 0 510 0 614 0 647 0 580 0 614 0 636 0 388 0 356 0 639 0 753 0 611 0 639 0 630 0 586 0 695 0 552 0 619 0 681 0 421 0 307 0 754 0 690 0 644 0 643 0 608 0 651 0 691 0 627 0 634 0 731 0 475 0 337 0 803 0 722 0 590 0 724 0 627 0 696 0 825 0 677 0 656 0 785 0 412 0 352 0 839 0 729 0 696 0 641 0 695 0 638 0 762 0 635 0 721 0 854 0 418 0 367 0 824 0 687 0 601 0 676 0 740 0 691 0 683 0 594 0 729 0 731 0 386 0 331 0 706 0 715 0 657 0 653 0 642 0 643 0 718 0 654 0 632 0 731 0 392 0 344 0 792 0 852 0 649 0 629 0 685 0 617 0 715 0 715 0 629 0 916 0 531 1 357 1 917 1 828 1 708 1 858 1 775 1 785 1 1006 1 789 1 734 1 906 1 532 1 387 1 991 1 841 1 892 1 782 1 813 1 793 1 978 1 775 1 797 1 946 1 594 1 438 1 1022 1 868 1 795 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 time6 seconds
R Server'Sir Ronald Aylmer Fisher' @ 193.190.124.24


Multiple Linear Regression - Estimated Regression Equation
Y[t] = + 628.524752475248 + 145.199385455787X1[t] + e[t]


Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STAT
H0: parameter = 0
2-tail p-value1-tail p-value
(Intercept)628.52475247524814.21785944.206700
X1145.19938545578730.1027994.82354e-062e-06


Multiple Linear Regression - Regression Statistics
Multiple R0.392182037649388
R-squared0.153806750654826
Adjusted R-squared0.147195865894317
F-TEST (value)23.2656832219505
F-TEST (DF numerator)1
F-TEST (DF denominator)128
p-value3.93801559650520e-06
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation142.887712175676
Sum Squared Residuals2613362.98122226


Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolation
Forecast
Residuals
Prediction Error
1621628.524752475246-7.52475247524569
2587628.524752475247-41.5247524752474
3655628.52475247524826.4752475247525
4517628.524752475248-111.524752475248
5646628.52475247524817.4752475247525
6657628.52475247524828.4752475247525
7382628.524752475248-246.524752475248
8345628.524752475248-283.524752475248
9625628.524752475248-3.52475247524755
10654628.52475247524825.4752475247525
11606628.524752475248-22.5247524752475
12510628.524752475248-118.524752475248
13614628.524752475248-14.5247524752475
14647628.52475247524818.4752475247525
15580628.524752475248-48.5247524752476
16614628.524752475248-14.5247524752475
17636628.5247524752487.47524752475245
18388628.524752475248-240.524752475248
19356628.524752475248-272.524752475248
20639628.52475247524810.4752475247525
21753628.524752475248124.475247524752
22611628.524752475248-17.5247524752475
23639628.52475247524810.4752475247525
24630628.5247524752481.47524752475245
25586628.524752475248-42.5247524752476
26695628.52475247524866.4752475247525
27552628.524752475248-76.5247524752475
28619628.524752475248-9.52475247524755
29681628.52475247524852.4752475247524
30421628.524752475248-207.524752475248
31307628.524752475248-321.524752475248
32754628.524752475248125.475247524752
33690628.52475247524861.4752475247524
34644628.52475247524815.4752475247525
35643628.52475247524814.4752475247525
36608628.524752475248-20.5247524752475
37651628.52475247524822.4752475247525
38691628.52475247524862.4752475247525
39627628.524752475248-1.52475247524755
40634628.5247524752485.47524752475245
41731628.524752475248102.475247524752
42475628.524752475248-153.524752475248
43337628.524752475248-291.524752475248
44803628.524752475248174.475247524752
45722628.52475247524893.4752475247525
46590628.524752475248-38.5247524752476
47724628.52475247524895.4752475247525
48627628.524752475248-1.52475247524755
49696628.52475247524867.4752475247525
50825628.524752475248196.475247524752
51677628.52475247524848.4752475247524
52656628.52475247524827.4752475247525
53785628.524752475248156.475247524752
54412628.524752475248-216.524752475248
55352628.524752475248-276.524752475248
56839628.524752475248210.475247524752
57729628.524752475248100.475247524752
58696628.52475247524867.4752475247525
59641628.52475247524812.4752475247525
60695628.52475247524866.4752475247525
61638628.5247524752489.47524752475245
62762628.524752475248133.475247524752
63635628.5247524752486.47524752475245
64721628.52475247524892.4752475247525
65854628.524752475248225.475247524752
66418628.524752475248-210.524752475248
67367628.524752475248-261.524752475248
68824628.524752475248195.475247524752
69687628.52475247524858.4752475247524
70601628.524752475248-27.5247524752475
71676628.52475247524847.4752475247524
72740628.524752475248111.475247524752
73691628.52475247524862.4752475247525
74683628.52475247524854.4752475247524
75594628.524752475248-34.5247524752476
76729628.524752475248100.475247524752
77731628.524752475248102.475247524752
78386628.524752475248-242.524752475248
79331628.524752475248-297.524752475248
80706628.52475247524877.4752475247525
81715628.52475247524886.4752475247525
82657628.52475247524828.4752475247525
83653628.52475247524824.4752475247525
84642628.52475247524813.4752475247525
85643628.52475247524814.4752475247525
86718628.52475247524889.4752475247525
87654628.52475247524825.4752475247525
88632628.5247524752483.47524752475245
89731628.524752475248102.475247524752
90392628.524752475248-236.524752475248
91344628.524752475248-284.524752475248
92792628.524752475248163.475247524752
93852628.524752475248223.475247524752
94649628.52475247524820.4752475247525
95629628.5247524752480.47524752475245
96685628.52475247524856.4752475247524
97617628.524752475248-11.5247524752475
98715628.52475247524886.4752475247525
99715628.52475247524886.4752475247525
100629628.5247524752480.47524752475245
101916628.524752475248287.475247524752
102531773.724137931034-242.724137931034
103357773.724137931034-416.724137931034
104917773.724137931034143.275862068966
105828773.72413793103554.2758620689655
106708773.724137931034-65.7241379310345
107858773.72413793103584.2758620689655
108775773.7241379310351.27586206896552
109785773.72413793103511.2758620689655
1101006773.724137931034232.275862068966
111789773.72413793103515.2758620689655
112734773.724137931035-39.7241379310345
113906773.724137931034132.275862068966
114532773.724137931034-241.724137931034
115387773.724137931034-386.724137931034
116991773.724137931034217.275862068966
117841773.72413793103567.2758620689655
118892773.724137931035118.275862068966
119782773.7241379310358.27586206896552
120813773.72413793103539.2758620689655
121793773.72413793103519.2758620689655
122978773.724137931034204.275862068966
123775773.7241379310351.27586206896552
124797773.72413793103523.2758620689655
125946773.724137931034172.275862068966
126594773.724137931034-179.724137931034
127438773.724137931035-335.724137931035
1281022773.724137931034248.275862068966
129868773.72413793103594.2758620689655
130795773.72413793103521.2758620689655


Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
50.1019672597960590.2039345195921190.89803274020394
60.04819040918626350.0963808183725270.951809590813737
70.2850909226421080.5701818452842150.714909077357892
80.4972186410728760.9944372821457520.502781358927124
90.404765429330560.809530858661120.59523457066944
100.3403558189112440.6807116378224870.659644181088756
110.2525995717587480.5051991435174950.747400428241252
120.1935564604093650.387112920818730.806443539590635
130.1385034203398190.2770068406796380.86149657966018
140.1053250373078720.2106500746157440.894674962692128
150.06877856889133930.1375571377826790.93122143110866
160.04507015652990020.09014031305980050.9549298434701
170.03054708196744040.06109416393488070.96945291803256
180.06108326407377160.1221665281475430.938916735926228
190.1245894467573070.2491788935146130.875410553242693
200.0994343625670260.1988687251340520.900565637432974
210.1329438864926600.2658877729853200.86705611350734
220.09946706962660120.1989341392532020.900532930373399
230.07645571558625190.1529114311725040.923544284413748
240.05660098945657180.1132019789131440.943399010543428
250.03937614888396410.07875229776792820.960623851116036
260.03546269847967410.07092539695934830.964537301520326
270.02506338894698480.05012677789396970.974936611053015
280.01713896268947950.0342779253789590.98286103731052
290.0140089798250590.0280179596501180.985991020174941
300.02022322438067820.04044644876135640.979776775619322
310.07559153443289230.1511830688657850.924408465567108
320.0904896193844480.1809792387688960.909510380615552
330.08032289386090340.1606457877218070.919677106139097
340.06310860308790650.1262172061758130.936891396912093
350.04880562248228180.09761124496456360.951194377517718
360.03587698039564300.07175396079128590.964123019604357
370.02737993035038340.05475986070076680.972620069649617
380.02313445125565040.04626890251130080.97686554874435
390.01658900379822220.03317800759644450.983410996201778
400.01181575277664610.02363150555329210.988184247223354
410.01168365889258590.02336731778517180.988316341107414
420.01185390309010950.02370780618021890.98814609690989
430.03492415586446540.06984831172893090.965075844135535
440.05036930434704060.1007386086940810.94963069565296
450.04681609337634610.09363218675269210.953183906623654
460.03548069486633760.07096138973267520.964519305133662
470.03277762449083520.06555524898167040.967222375509165
480.02434944887900970.04869889775801930.97565055112099
490.02011921553663230.04023843107326460.979880784463368
500.03130187598234020.06260375196468030.96869812401766
510.02455305715199950.04910611430399890.975446942848
520.01839284959703970.03678569919407940.98160715040296
530.02140840009144620.04281680018289230.978591599908554
540.03219558296714250.0643911659342850.967804417032857
550.06934992812670110.1386998562534020.930650071873299
560.09798639846773950.1959727969354790.90201360153226
570.08900236761379020.1780047352275800.91099763238621
580.07491556328778150.1498311265755630.925084436712219
590.05883843914685590.1176768782937120.941161560853144
600.04848796316987640.09697592633975280.951512036830124
610.03714992606574830.07429985213149670.962850073934252
620.03647884834013240.07295769668026470.963521151659868
630.02750296580829470.05500593161658940.972497034191705
640.0233208357881230.0466416715762460.976679164211877
650.03648080159090700.07296160318181410.963519198409093
660.05082611837964120.1016522367592820.949173881620359
670.09272980569145540.1854596113829110.907270194308545
680.1108949928126260.2217899856252520.889105007187374
690.09195618606464520.1839123721292900.908043813935355
700.07387564115828070.1477512823165610.92612435884172
710.05918956992462660.1183791398492530.940810430075373
720.0528835029876580.1057670059753160.947116497012342
730.04243510336373090.08487020672746180.95756489663627
740.03331230178661790.06662460357323580.966687698213382
750.02552849010151690.05105698020303380.974471509898483
760.02158696917606920.04317393835213830.97841303082393
770.01828613517814610.03657227035629230.981713864821854
780.03271677570148040.06543355140296070.96728322429852
790.08291357397188660.1658271479437730.917086426028113
800.06846417055378830.1369283411075770.931535829446212
810.05682256436281620.1136451287256320.943177435637184
820.04385994014645510.08771988029291010.956140059853545
830.03332342734672270.06664685469344550.966676572653277
840.02491958693896000.04983917387791990.97508041306104
850.01835954598202430.03671909196404860.981640454017976
860.01445363248898420.02890726497796840.985546367511016
870.01035740201990930.02071480403981860.98964259798009
880.007317777758520730.01463555551704150.99268222224148
890.005752930027117430.01150586005423490.994247069972883
900.01212488608515010.02424977217030020.98787511391485
910.04187281505709350.0837456301141870.958127184942906
920.03835321003491590.07670642006983170.961646789965084
930.04493720495918460.08987440991836930.955062795040815
940.03412076683930710.06824153367861420.965879233160693
950.0262588008864670.0525176017729340.973741199113533
960.01940507652018200.03881015304036410.980594923479818
970.01551018141167620.03102036282335240.984489818588324
980.01144480483706670.02288960967413330.988555195162933
990.008400660001702750.01680132000340550.991599339998297
1000.008847202974521810.01769440594904360.991152797025478
1010.009750628711197240.01950125742239450.990249371288803
1020.01278746014304480.02557492028608960.987212539856955
1030.07019542592885130.1403908518577030.929804574071149
1040.1015201097106460.2030402194212930.898479890289353
1050.08746678925752870.1749335785150570.912533210742471
1060.07020532304035380.1404106460807080.929794676959646
1070.05891429526793250.1178285905358650.941085704732068
1080.04291034246951520.08582068493903050.957089657530485
1090.03037128040171070.06074256080342140.96962871959829
1100.04628340414675220.09256680829350440.953716595853248
1110.03194805176022880.06389610352045760.968051948239771
1120.02198484007033130.04396968014066260.978015159929669
1130.01874918868439990.03749837736879980.9812508113156
1140.03367809877369850.0673561975473970.966321901226302
1150.2496617653375110.4993235306750230.750338234662489
1160.2875474991531110.5750949983062230.712452500846888
1170.2239543664654320.4479087329308630.776045633534568
1180.1846003111784050.369200622356810.815399688821595
1190.1299777189020030.2599554378040060.870022281097997
1200.08643033689627110.1728606737925420.913569663103729
1210.05345450734565290.1069090146913060.946545492654347
1220.06068726030700710.1213745206140140.939312739692993
1230.03334892177384920.06669784354769840.96665107822615
1240.01635109859332750.0327021971866550.983648901406672
1250.01517424835554650.0303484967110930.984825751644454


Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level00OK
5% type I error level340.28099173553719NOK
10% type I error level710.586776859504132NOK
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Dec/28/t1293562202332oyb8raqrvdpz/10ihng1293562311.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/28/t1293562202332oyb8raqrvdpz/10ihng1293562311.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/28/t1293562202332oyb8raqrvdpz/1tyq41293562311.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/28/t1293562202332oyb8raqrvdpz/1tyq41293562311.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/28/t1293562202332oyb8raqrvdpz/24qq71293562311.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/28/t1293562202332oyb8raqrvdpz/24qq71293562311.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/28/t1293562202332oyb8raqrvdpz/34qq71293562311.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/28/t1293562202332oyb8raqrvdpz/34qq71293562311.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/28/t1293562202332oyb8raqrvdpz/44qq71293562311.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/28/t1293562202332oyb8raqrvdpz/44qq71293562311.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/28/t1293562202332oyb8raqrvdpz/5xzps1293562311.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/28/t1293562202332oyb8raqrvdpz/5xzps1293562311.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/28/t1293562202332oyb8raqrvdpz/6xzps1293562311.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/28/t1293562202332oyb8raqrvdpz/6xzps1293562311.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/28/t1293562202332oyb8raqrvdpz/778od1293562311.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/28/t1293562202332oyb8raqrvdpz/778od1293562311.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/28/t1293562202332oyb8raqrvdpz/878od1293562311.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/28/t1293562202332oyb8raqrvdpz/878od1293562311.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/28/t1293562202332oyb8raqrvdpz/9ihng1293562311.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/28/t1293562202332oyb8raqrvdpz/9ihng1293562311.ps (open in new window)


 
Parameters (Session):
par1 = 12 ; par2 = Triple ; par3 = multiplicative ;
 
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