Home » date » 2010 » Dec » 28 »

Multiple Regression X2

*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:54:18 +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/t1293562360eeg519rdlccik22.htm/, Retrieved Tue, 28 Dec 2010 19:52:42 +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/t1293562360eeg519rdlccik22.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 0 357 0 917 0 828 0 708 0 858 0 775 0 785 0 1006 0 789 0 734 0 906 0 532 0 387 0 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'RServer@AstonUniversity' @ vre.aston.ac.uk


Multiple Linear Regression - Estimated Regression Equation
Y[t] = + 639.947826086957 + 181.71884057971X2[t] + e[t]


Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STAT
H0: parameter = 0
2-tail p-value1-tail p-value
(Intercept)639.94782608695713.41793447.693500
X2181.7188405797139.501334.60031e-055e-06


Multiple Linear Regression - Regression Statistics
Multiple R0.376667146038657
R-squared0.141878138904907
Adjusted R-squared0.135174061865102
F-TEST (value)21.1629636805345
F-TEST (DF numerator)1
F-TEST (DF denominator)128
p-value1.00085251950599e-05
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation143.891316958371
Sum Squared Residuals2650203.02028986


Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolation
Forecast
Residuals
Prediction Error
1621639.947826086955-18.9478260869546
2587639.947826086956-52.9478260869563
3655639.94782608695715.0521739130435
4517639.947826086957-122.947826086957
5646639.9478260869576.05217391304346
6657639.94782608695717.0521739130435
7382639.947826086957-257.947826086957
8345639.947826086957-294.947826086957
9625639.947826086957-14.9478260869565
10654639.94782608695714.0521739130435
11606639.947826086957-33.9478260869565
12510639.947826086957-129.947826086957
13614639.947826086957-25.9478260869565
14647639.9478260869577.05217391304346
15580639.947826086957-59.9478260869565
16614639.947826086957-25.9478260869565
17636639.947826086957-3.94782608695654
18388639.947826086957-251.947826086957
19356639.947826086957-283.947826086957
20639639.947826086957-0.947826086956538
21753639.947826086957113.052173913043
22611639.947826086957-28.9478260869565
23639639.947826086957-0.947826086956538
24630639.947826086957-9.94782608695654
25586639.947826086957-53.9478260869565
26695639.94782608695755.0521739130435
27552639.947826086957-87.9478260869565
28619639.947826086957-20.9478260869565
29681639.94782608695741.0521739130435
30421639.947826086957-218.947826086957
31307639.947826086957-332.947826086957
32754639.947826086957114.052173913043
33690639.94782608695750.0521739130435
34644639.9478260869574.05217391304346
35643639.9478260869573.05217391304346
36608639.947826086957-31.9478260869565
37651639.94782608695711.0521739130435
38691639.94782608695751.0521739130435
39627639.947826086957-12.9478260869565
40634639.947826086957-5.94782608695654
41731639.94782608695791.0521739130435
42475639.947826086957-164.947826086957
43337639.947826086957-302.947826086957
44803639.947826086957163.052173913043
45722639.94782608695782.0521739130435
46590639.947826086957-49.9478260869565
47724639.94782608695784.0521739130435
48627639.947826086957-12.9478260869565
49696639.94782608695756.0521739130435
50825639.947826086957185.052173913043
51677639.94782608695737.0521739130435
52656639.94782608695716.0521739130435
53785639.947826086957145.052173913043
54412639.947826086957-227.947826086957
55352639.947826086957-287.947826086957
56839639.947826086957199.052173913043
57729639.94782608695789.0521739130435
58696639.94782608695756.0521739130435
59641639.9478260869571.05217391304346
60695639.94782608695755.0521739130435
61638639.947826086957-1.94782608695654
62762639.947826086957122.052173913043
63635639.947826086957-4.94782608695654
64721639.94782608695781.0521739130435
65854639.947826086957214.052173913043
66418639.947826086957-221.947826086957
67367639.947826086957-272.947826086957
68824639.947826086957184.052173913043
69687639.94782608695747.0521739130435
70601639.947826086957-38.9478260869565
71676639.94782608695736.0521739130435
72740639.947826086957100.052173913043
73691639.94782608695751.0521739130435
74683639.94782608695743.0521739130435
75594639.947826086957-45.9478260869565
76729639.94782608695789.0521739130435
77731639.94782608695791.0521739130435
78386639.947826086957-253.947826086957
79331639.947826086957-308.947826086957
80706639.94782608695766.0521739130435
81715639.94782608695775.0521739130435
82657639.94782608695717.0521739130435
83653639.94782608695713.0521739130435
84642639.9478260869572.05217391304346
85643639.9478260869573.05217391304346
86718639.94782608695778.0521739130435
87654639.94782608695714.0521739130435
88632639.947826086957-7.94782608695654
89731639.94782608695791.0521739130435
90392639.947826086957-247.947826086957
91344639.947826086957-295.947826086957
92792639.947826086957152.052173913043
93852639.947826086957212.052173913043
94649639.9478260869579.05217391304346
95629639.947826086957-10.9478260869565
96685639.94782608695745.0521739130435
97617639.947826086957-22.9478260869565
98715639.94782608695775.0521739130435
99715639.94782608695775.0521739130435
100629639.947826086957-10.9478260869565
101916639.947826086957276.052173913043
102531639.947826086957-108.947826086957
103357639.947826086957-282.947826086957
104917639.947826086957277.052173913043
105828639.947826086957188.052173913043
106708639.94782608695768.0521739130435
107858639.947826086957218.052173913043
108775639.947826086957135.052173913043
109785639.947826086957145.052173913043
1101006639.947826086957366.052173913043
111789639.947826086957149.052173913043
112734639.94782608695794.0521739130435
113906639.947826086957266.052173913043
114532639.947826086957-107.947826086957
115387639.947826086957-252.947826086957
116991821.666666666667169.333333333333
117841821.66666666666719.3333333333333
118892821.66666666666770.3333333333333
119782821.666666666667-39.6666666666667
120813821.666666666667-8.66666666666667
121793821.666666666667-28.6666666666667
122978821.666666666667156.333333333333
123775821.666666666667-46.6666666666667
124797821.666666666667-24.6666666666667
125946821.666666666667124.333333333333
126594821.666666666667-227.666666666667
127438821.666666666667-383.666666666667
1281022821.666666666667200.333333333333
129868821.66666666666746.3333333333333
130795821.666666666667-26.6666666666667


Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
50.1002550078502120.2005100157004240.899744992149788
60.04709612318499960.09419224636999920.952903876815
70.2802842136525120.5605684273050230.719715786347488
80.4917119266637380.9834238533274760.508288073336262
90.3993030464358180.7986060928716350.600696953564182
100.3348875274666630.6697750549333270.665112472533337
110.2479111452800410.4958222905600830.752088854719959
120.190018756122650.38003751224530.80998124387735
130.1357079261619370.2714158523238750.864292073838063
140.1029442169573020.2058884339146040.897055783042698
150.06717824176773350.1343564835354670.932821758232267
160.04395922619006370.08791845238012740.956040773809936
170.02973460215676670.05946920431353340.970265397843233
180.06018486747062550.1203697349412510.939815132529375
190.1243207876456380.2486415752912750.875679212354362
200.09924915404105880.1984983080821180.900750845958941
210.1321289878257730.2642579756515470.867871012174226
220.09897485885401760.1979497177080350.901025141145982
230.07608750472363940.1521750094472790.923912495276361
240.05636832132829010.112736642656580.94363167867171
250.03935417502189190.07870835004378380.960645824978108
260.03534087702479640.07068175404959280.964659122975204
270.02514208467416880.05028416934833770.97485791532583
280.0172378448214090.0344756896428180.98276215517859
290.0140607497927960.02812149958559210.985939250207204
300.02066742563984740.04133485127969470.979332574360153
310.07881788351494240.1576357670298850.921182116485058
320.09371094351037840.1874218870207570.906289056489622
330.0831198398462980.1662396796925960.916880160153702
340.06551300334813070.1310260066962610.93448699665187
350.05083975260540290.1016795052108060.949160247394597
360.03763125138908150.0752625027781630.962368748610918
370.0288114828825910.0576229657651820.971188517117409
380.02431395291589490.04862790583178980.975686047084105
390.01753875216017490.03507750432034970.982461247839825
400.01256190987074210.02512381974148430.987438090129258
410.0123325244287390.0246650488574780.98766747557126
420.012795782000180.02559156400035990.98720421799982
430.03871424214574590.07742848429149180.961285757854254
440.05486455866443820.1097291173288760.945135441335562
450.0507918699015050.101583739803010.949208130098495
460.03898966679809290.07797933359618590.961010333201907
470.03584813424941140.07169626849882280.964151865750589
480.02687749182754890.05375498365509770.97312250817245
490.02219079040220310.04438158080440630.977809209597797
500.03366220302381130.06732440604762270.96633779697619
510.02642437512401830.05284875024803650.973575624875982
520.0198740263187330.0397480526374660.980125973681267
530.02267025807657920.04534051615315840.97732974192342
540.03534705115633470.07069410231266940.964652948843665
550.07867516990009620.1573503398001920.921324830099904
560.108062583642990.2161251672859810.89193741635701
570.09759961297159230.1951992259431850.902400387028408
580.08210223012542460.1642044602508490.917897769874575
590.06503939068112910.1300787813622580.934960609318871
600.05353638323891170.1070727664778230.946463616761088
610.04141473813691320.08282947627382640.958585261863087
620.03995024475739630.07990048951479270.960049755242604
630.03041919685427450.06083839370854890.969580803145726
640.02552802158821940.05105604317643880.97447197841178
650.03803154326263630.07606308652527260.961968456737364
660.05584486178087640.1116897235617530.944155138219124
670.1069980337758050.2139960675516110.893001966224195
680.123789667060740.247579334121480.87621033293926
690.1027388867058380.2054777734116760.897261113294162
700.08423210002678990.168464200053580.91576789997321
710.06775334758337010.135506695166740.93224665241663
720.05957547264490110.1191509452898020.940424527355099
730.04765612351723780.09531224703447560.952343876482762
740.03734322619096690.07468645238193370.962656773809033
750.02942336756179080.05884673512358150.97057663243821
760.02438892438133260.04877784876266520.975611075618667
770.02014786856128420.04029573712256830.979852131438716
780.0397182725711760.07943654514235210.960281727428824
790.10824054622470.21648109244940.8917594537753
800.08985377987012890.1797075597402580.910146220129871
810.07461084012311060.1492216802462210.925389159876889
820.05880633996579830.1176126799315970.941193660034202
830.04574756604643420.09149513209286850.954252433953566
840.03523482366329260.07046964732658520.964765176336707
850.02678422720796350.0535684544159270.973215772792037
860.02101764184648840.04203528369297680.978982358153512
870.01549874249115780.03099748498231570.984501257508842
880.01142220357764110.02284440715528220.98857779642236
890.008845025447744580.01769005089548920.991154974552255
900.02109079338810070.04218158677620130.9789092066119
910.07363660795643810.1472732159128760.926363392043562
920.0678683729258120.1357367458516240.932131627074188
930.07672779213086240.1534555842617250.923272207869138
940.060898733017860.121797466035720.93910126698214
950.04901884985048580.09803769970097160.950981150149514
960.03745960186275730.07491920372551460.962540398137243
970.03043277667046810.06086555334093630.969567223329532
980.02288549316724810.04577098633449610.977114506832752
990.0169176691716590.0338353383433180.98308233082834
1000.01312457021256830.02624914042513670.986875429787432
1010.02065514604889820.04131029209779630.979344853951102
1020.02291241616628750.04582483233257490.977087583833713
1030.1061123361211170.2122246722422340.893887663878883
1040.1311327628187060.2622655256374110.868867237181294
1050.1192210361978080.2384420723956160.880778963802192
1060.09355277082912010.187105541658240.90644722917088
1070.09191896338968140.1838379267793630.908081036610319
1080.07299513758126580.1459902751625320.927004862418734
1090.0582756523568270.1165513047136540.941724347643173
1100.157097318008580.3141946360171610.84290268199142
1110.1478657446390350.2957314892780710.852134255360965
1120.1265763153732230.2531526307464460.873423684626777
1130.3740110033206340.7480220066412680.625988996679366
1140.3363045530838420.6726091061676840.663695446916158
1150.289407176586770.578814353173540.71059282341323
1160.3023781427053960.6047562854107910.697621857294604
1170.2373237863621350.4746475727242710.762676213637865
1180.1908522029917350.381704405983470.809147797008265
1190.1372765116970680.2745530233941360.862723488302932
1200.09182616351608260.1836523270321650.908173836483917
1210.0574640799523170.1149281599046340.942535920047683
1220.06138219544134120.1227643908826820.938617804558659
1230.03427979725347250.0685595945069450.965720202746527
1240.0169441403787330.0338882807574660.983055859621267
1250.01507117076934080.03014234153868160.98492882923066


Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level00OK
5% type I error level250.206611570247934NOK
10% type I error level560.462809917355372NOK
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Dec/28/t1293562360eeg519rdlccik22/103aai1293562448.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/28/t1293562360eeg519rdlccik22/103aai1293562448.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/28/t1293562360eeg519rdlccik22/14hst1293562447.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/28/t1293562360eeg519rdlccik22/14hst1293562447.ps (open in new window)


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


http://www.freestatistics.org/blog/date/2010/Dec/28/t1293562360eeg519rdlccik22/3f89e1293562447.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/28/t1293562360eeg519rdlccik22/3f89e1293562447.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/28/t1293562360eeg519rdlccik22/4f89e1293562447.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/28/t1293562360eeg519rdlccik22/4f89e1293562447.ps (open in new window)


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


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


http://www.freestatistics.org/blog/date/2010/Dec/28/t1293562360eeg519rdlccik22/7t0sx1293562448.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/28/t1293562360eeg519rdlccik22/7t0sx1293562448.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/28/t1293562360eeg519rdlccik22/8t0sx1293562448.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/28/t1293562360eeg519rdlccik22/8t0sx1293562448.ps (open in new window)


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