Home » date » 2009 » Nov » 19 »

*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: Thu, 19 Nov 2009 01:16:57 -0700
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2009/Nov/19/t1258618644vlc5duzmktnh927.htm/, Retrieved Thu, 19 Nov 2009 09:17:37 +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/2009/Nov/19/t1258618644vlc5duzmktnh927.htm/},
    year = {2009},
}
@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 = {2009},
    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 «
110,3672031 0 102,1880309 114,0150276 108,1560276 100 96,8602511 0 110,3672031 102,1880309 114,0150276 108,1560276 94,1944583 0 96,8602511 110,3672031 102,1880309 114,0150276 99,51621961 0 94,1944583 96,8602511 110,3672031 102,1880309 94,06333487 0 99,51621961 94,1944583 96,8602511 110,3672031 97,5541476 0 94,06333487 99,51621961 94,1944583 96,8602511 78,15062422 0 97,5541476 94,06333487 99,51621961 94,1944583 81,2434643 0 78,15062422 97,5541476 94,06333487 99,51621961 92,36262465 0 81,2434643 78,15062422 97,5541476 94,06333487 96,06324371 0 92,36262465 81,2434643 78,15062422 97,5541476 114,0523777 0 96,06324371 92,36262465 81,2434643 78,15062422 110,6616666 0 114,0523777 96,06324371 92,36262465 81,2434643 104,9171949 0 110,6616666 114,0523777 96,06324371 92,36262465 90,00187193 0 104,9171949 110,6616666 114,0523777 96,06324371 95,7008067 0 90,00187193 104,9171949 110,6616666 114,0523777 86,02741157 0 95,7008067 90,00187193 104,9171949 110,6616666 84,85287668 0 86,02741157 95,7008067 90,001871 etc...
 
Output produced by software:

Enter (or paste) a matrix (table) containing all data (time) series. Every column represents a different variable and must be delimited by a space or Tab. Every row represents a period in time (or category) and must be delimited by hard returns. The easiest way to enter data is to copy and paste a block of spreadsheet cells. Please, do not use commas or spaces to seperate groups of digits!


Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time4 seconds
R Server'Gwilym Jenkins' @ 72.249.127.135


Multiple Linear Regression - Estimated Regression Equation
Y[t] = + 23.6616041005634 -6.28343467972651X[t] + 0.259129910030104Y1[t] + 0.0678592356499644Y2[t] + 0.300566138661765Y3[t] + 0.11954465131137Y4[t] + 0.447120338298871M1[t] + 3.13191196265063M2[t] -10.6673105547517M3[t] -9.76717630491025M4[t] -8.14521510308711M5[t] + 3.22707368037767M6[t] -16.2457824226025M7[t] -2.16575180482806M8[t] -2.42715733581733M9[t] -1.16358422500642M10[t] + 11.8259988011420M11[t] + 0.177520173264150t + e[t]


Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STAT
H0: parameter = 0
2-tail p-value1-tail p-value
(Intercept)23.661604100563411.8448791.99760.0489180.024459
X-6.283434679726514.411284-1.42440.1579490.078975
Y10.2591299100301040.1066452.42980.0171850.008592
Y20.06785923564996440.1057360.64180.5227240.261362
Y30.3005661386617650.1060422.83440.0057210.00286
Y40.119544651311370.107771.10930.2704110.135206
M10.4471203382988716.069510.07370.9414470.470723
M23.131911962650635.9801290.52370.601820.30091
M3-10.66731055475176.020446-1.77180.0799620.039981
M4-9.767176304910256.293168-1.5520.1243280.062164
M5-8.145215103087116.263951-1.30030.1969610.098481
M63.227073680377676.3159670.51090.6107030.305351
M7-16.24578242260255.835107-2.78410.0065990.003299
M8-2.165751804828066.512214-0.33260.740270.370135
M9-2.427157335817336.296107-0.38550.7008180.350409
M10-1.163584225006426.445088-0.18050.8571550.428577
M1111.82599880114206.1033491.93760.0559510.027975
t0.1775201732641500.0783892.26460.0260510.013026


Multiple Linear Regression - Regression Statistics
Multiple R0.811769033341268
R-squared0.658968963491817
Adjusted R-squared0.591555851623921
F-TEST (value)9.77508596225523
F-TEST (DF numerator)17
F-TEST (DF denominator)86
p-value9.9698027611339e-14
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation11.8679156254582
Sum Squared Residuals12112.8782311977


Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolation
Forecast
Residuals
Prediction Error
1110.3672031102.9656972108077.40150588919329
296.8602511109.88093269058-13.0206815905799
394.194458390.45982484559113.73463345440887
499.5162196190.97464919063458.54157041936552
594.0633348790.89030331430953.17303155569052
697.554147698.972306478278-1.41815887827806
778.1506242281.492375923757-3.34175170375705
881.243464389.956012920021-8.71254862002103
992.3626246589.75422356664382.60840108335619
1096.0632437188.87176752748237.19147618251767
11114.0523777102.36236509705911.6900126029414
12110.661666699.338305902858211.3233606971418
13104.9171949102.7465575631452.17063733685543
1490.00187193109.739527618820-19.7376556888205
1595.700806792.99437532420482.70643137579516
1686.0274115792.4047167316436-6.37730516164357
1784.8528766886.914495556189-2.06161887618898
18100.0432897.43337792754212.60990207245786
1980.9171382379.76840895153141.14872927846861
2074.0653970988.591185440573-14.5257883505730
2177.3028136989.8592351629742-12.5564214729742
2297.2304324987.74154689156759.48888559843252
2390.75515676101.946351447309-11.1911946873085
24100.561445590.12617698343210.4352685165680
2592.0129326799.229096226296-7.21616355629606
2699.24012138100.977671539818-1.73755015981768
27105.867275590.82200817118115.0452673288190
2890.992046392.7102838223847-1.71823752238474
2993.3062442392.2551812247681.05106300523195
3091.17419413106.251116277723-15.0769221477229
3177.3329503982.8815927261962-5.54864233619617
3291.127772192.3250994300588-1.19732733005881
3385.0124994394.512436678903-9.49993724890296
3483.9039024290.8899015923685-6.98599917236852
35104.8626302105.846366057431-0.98373585743099
36110.903910899.364745385726311.5391654142737
3795.43714373101.912850781344-6.47570705134366
38111.6238727107.3441743406094.27969835939079
39108.8925403101.1886828137077.70385748629318
4096.1751168298.7304027003058-2.55528588030577
41101.9740205100.0652864920161.90873400798395
4299.11953031113.368861038547-14.2493307285474
4386.7815814789.578407445564-2.79682597556398
44118.4195003100.66777727334717.7517230266529
45118.7441447107.78024402196610.9639006780336
46106.5296192107.402778693284-0.873159493284235
47134.7772694125.4611144257169.31615497428449
48104.6778714124.183299576964-19.5054281769645
49105.2954304115.292686480784-9.9972560807843
50139.4139849123.30261009975516.1113748002447
51103.6060491112.893948455889-9.28789935588896
5299.78182974103.595350012062-3.81352027206218
53103.4610301112.302670672971-8.84164057297146
54120.0594945117.8623995893392.19709491066137
5596.7137716897.6878119246435-0.974040244643523
56107.1308929107.670824844534-0.539931944533667
57105.3608372114.130869341622-8.77003214162232
58111.6942359110.7875100117970.906725888202717
59132.0519998125.8158492266046.23615057339612
60126.8037879120.5857480383446.21803986165644
61154.4824253122.92388667064331.5585386293567
62141.5570984139.4784000658322.07869833416769
63109.9506882125.241837104027-15.2911489040269
64127.904198124.9440879968152.96011000318453
65133.0888617128.6749913727734.41387032722707
66120.0796299131.741642851762-11.6620129517616
67117.5557142111.0448930013846.51082119861605
68143.0362309127.47020563524215.5660252647582
69159.982927124.24404285263635.7388841473638
70128.5991124129.491832684023-0.89272028402333
71149.7373327143.0333005672046.70403213279556
72126.8169313142.872347887312-16.0554165873124
73140.9639674131.5850252241549.37894217584638
74137.6691981139.159562374336-1.49036427433584
75117.9402337121.281958444108-3.34172474410787
76122.3095247118.5357761917193.77374850828066
77127.7804207120.8295855175646.95083518243584
78136.1677176127.7698333135268.39788428647392
79116.2405856109.9739164504106.26666914958952
80123.1576893121.8035983307471.35409096925263
81116.3400234125.334855283980-8.99483188397974
82108.6119282120.491912150278-11.8799839502782
83125.8982264130.890658242176-4.99243184217618
84112.8003105121.974897113968-9.17458661396786
85107.5182447117.240691613604-9.72244691360394
86135.0955413122.11727106985612.9782702301440
87115.5096488113.4129286489122.09672015108772
88115.8640759108.1332708683677.73080503163253
89104.5883906116.352870050945-11.7644794509451
90163.7213386122.41472506764541.3066135323553
91113.4482275115.442485342446-1.99425784244561
9298.0428844117.338766702915-19.2958823029154
93116.7868521126.276815261274-9.48996316127435
94126.5330444123.4882691691993.04477523080139
95113.0336597129.812647596502-16.7789878965019
96124.3392163119.1196194113955.21959688860474
97109.8298759126.927926329224-17.0980504292238
98124.4434777123.9052677103930.538209989606686
99111.5039454114.870082192380-3.36613679238022
100102.0350019110.576887026067-8.541885126067
101116.8726598111.7024549784645.17020482153624
102112.2073122124.312382295638-12.1050700956385
103101.1513902100.4220917240680.729298475932147
104124.4255108114.8258715125629.59963928743815


Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
210.1012988081998090.2025976163996170.898701191800191
220.04553312562750070.09106625125500140.9544668743725
230.1536791772698150.3073583545396310.846320822730184
240.08719588753570220.1743917750714040.912804112464298
250.0532110848627810.1064221697255620.94678891513722
260.06677921456757580.1335584291351520.933220785432424
270.1299661549770160.2599323099540310.870033845022984
280.08335252330005790.1667050466001160.916647476699942
290.05805993269814580.1161198653962920.941940067301854
300.03727953119478630.07455906238957260.962720468805214
310.02400836001876890.04801672003753780.975991639981231
320.03884057490413450.0776811498082690.961159425095865
330.02608479812039160.05216959624078310.973915201879608
340.02230620625202920.04461241250405840.97769379374797
350.01413358732141940.02826717464283890.98586641267858
360.01039560269125480.02079120538250950.989604397308745
370.006241903599490970.01248380719898190.99375809640051
380.01190568396030300.02381136792060590.988094316039697
390.008939773002906780.01787954600581360.991060226997093
400.005583472985495480.01116694597099100.994416527014504
410.003310498499062980.006620996998125970.996689501500937
420.002837716620994670.005675433241989340.997162283379005
430.001939103769946420.003878207539892850.998060896230054
440.01382400429266940.02764800858533890.98617599570733
450.01701910946167520.03403821892335030.982980890538325
460.01213268003924620.02426536007849250.987867319960754
470.008539813858821330.01707962771764270.991460186141179
480.02681502789428920.05363005578857840.973184972105711
490.02183989527385790.04367979054771580.978160104726142
500.03908318692568920.07816637385137850.96091681307431
510.02981948463696660.05963896927393330.970180515363033
520.02180006794749950.04360013589499910.9781999320525
530.02397567905688340.04795135811376670.976024320943117
540.03135033035948640.06270066071897280.968649669640514
550.02679776499016780.05359552998033560.973202235009832
560.02466749161821600.04933498323643190.975332508381784
570.0375048296710870.0750096593421740.962495170328913
580.03588296009261900.07176592018523790.964117039907381
590.03100440681119170.06200881362238340.968995593188808
600.02347202444724880.04694404889449750.976527975552751
610.1214382767364310.2428765534728630.878561723263569
620.09572867250986130.1914573450197230.904271327490139
630.09130741205184810.1826148241036960.908692587948152
640.06723302633374530.1344660526674910.932766973666255
650.05163184251363410.1032636850272680.948368157486366
660.06764472568117830.1352894513623570.932355274318822
670.05615796901800690.1123159380360140.943842030981993
680.04764120044246040.09528240088492080.95235879955754
690.1601875022463490.3203750044926980.839812497753651
700.2846511383701000.5693022767401990.7153488616299
710.3697211576462600.7394423152925210.63027884235374
720.4219978123498550.843995624699710.578002187650145
730.4426365427953730.8852730855907460.557363457204627
740.3631601913912250.7263203827824510.636839808608775
750.2880645071154830.5761290142309650.711935492884517
760.2143941614340610.4287883228681220.785605838565939
770.1546862393918880.3093724787837750.845313760608112
780.1075594463756430.2151188927512860.892440553624357
790.06659255658342130.1331851131668430.933407443416579
800.03916504603530180.07833009207060360.960834953964698
810.02500370284014060.05000740568028110.97499629715986
820.02069724825347630.04139449650695270.979302751746524
830.01625247640136770.03250495280273550.983747523598632


Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level30.0476190476190476NOK
5% type I error level220.349206349206349NOK
10% type I error level370.587301587301587NOK
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2009/Nov/19/t1258618644vlc5duzmktnh927/10fkwl1258618612.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/19/t1258618644vlc5duzmktnh927/10fkwl1258618612.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Nov/19/t1258618644vlc5duzmktnh927/1tptx1258618612.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/19/t1258618644vlc5duzmktnh927/1tptx1258618612.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Nov/19/t1258618644vlc5duzmktnh927/2cw3t1258618612.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/19/t1258618644vlc5duzmktnh927/2cw3t1258618612.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Nov/19/t1258618644vlc5duzmktnh927/3qrgd1258618612.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/19/t1258618644vlc5duzmktnh927/3qrgd1258618612.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Nov/19/t1258618644vlc5duzmktnh927/4n1yu1258618612.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/19/t1258618644vlc5duzmktnh927/4n1yu1258618612.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Nov/19/t1258618644vlc5duzmktnh927/5t6bt1258618612.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/19/t1258618644vlc5duzmktnh927/5t6bt1258618612.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Nov/19/t1258618644vlc5duzmktnh927/6flqj1258618612.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/19/t1258618644vlc5duzmktnh927/6flqj1258618612.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Nov/19/t1258618644vlc5duzmktnh927/7yld41258618612.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/19/t1258618644vlc5duzmktnh927/7yld41258618612.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Nov/19/t1258618644vlc5duzmktnh927/8v5e91258618612.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/19/t1258618644vlc5duzmktnh927/8v5e91258618612.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Nov/19/t1258618644vlc5duzmktnh927/954991258618612.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/19/t1258618644vlc5duzmktnh927/954991258618612.ps (open in new window)


 
Parameters (Session):
par1 = 1 ; par2 = Include Monthly Dummies ; par3 = Linear Trend ;
 
Parameters (R input):
par1 = 1 ; par2 = Include Monthly Dummies ; par3 = Linear Trend ;
 
R code (references can be found in the software module):
library(lattice)
library(lmtest)
n25 <- 25 #minimum number of obs. for Goldfeld-Quandt test
par1 <- as.numeric(par1)
x <- t(y)
k <- length(x[1,])
n <- length(x[,1])
x1 <- cbind(x[,par1], x[,1:k!=par1])
mycolnames <- c(colnames(x)[par1], colnames(x)[1:k!=par1])
colnames(x1) <- mycolnames #colnames(x)[par1]
x <- x1
if (par3 == 'First Differences'){
x2 <- array(0, dim=c(n-1,k), dimnames=list(1:(n-1), paste('(1-B)',colnames(x),sep='')))
for (i in 1:n-1) {
for (j in 1:k) {
x2[i,j] <- x[i+1,j] - x[i,j]
}
}
x <- x2
}
if (par2 == 'Include Monthly Dummies'){
x2 <- array(0, dim=c(n,11), dimnames=list(1:n, paste('M', seq(1:11), sep ='')))
for (i in 1:11){
x2[seq(i,n,12),i] <- 1
}
x <- cbind(x, x2)
}
if (par2 == 'Include Quarterly Dummies'){
x2 <- array(0, dim=c(n,3), dimnames=list(1:n, paste('Q', seq(1:3), sep ='')))
for (i in 1:3){
x2[seq(i,n,4),i] <- 1
}
x <- cbind(x, x2)
}
k <- length(x[1,])
if (par3 == 'Linear Trend'){
x <- cbind(x, c(1:n))
colnames(x)[k+1] <- 't'
}
x
k <- length(x[1,])
df <- as.data.frame(x)
(mylm <- lm(df))
(mysum <- summary(mylm))
if (n > n25) {
kp3 <- k + 3
nmkm3 <- n - k - 3
gqarr <- array(NA, dim=c(nmkm3-kp3+1,3))
numgqtests <- 0
numsignificant1 <- 0
numsignificant5 <- 0
numsignificant10 <- 0
for (mypoint in kp3:nmkm3) {
j <- 0
numgqtests <- numgqtests + 1
for (myalt in c('greater', 'two.sided', 'less')) {
j <- j + 1
gqarr[mypoint-kp3+1,j] <- gqtest(mylm, point=mypoint, alternative=myalt)$p.value
}
if (gqarr[mypoint-kp3+1,2] < 0.01) numsignificant1 <- numsignificant1 + 1
if (gqarr[mypoint-kp3+1,2] < 0.05) numsignificant5 <- numsignificant5 + 1
if (gqarr[mypoint-kp3+1,2] < 0.10) numsignificant10 <- numsignificant10 + 1
}
gqarr
}
bitmap(file='test0.png')
plot(x[,1], type='l', main='Actuals and Interpolation', ylab='value of Actuals and Interpolation (dots)', xlab='time or index')
points(x[,1]-mysum$resid)
grid()
dev.off()
bitmap(file='test1.png')
plot(mysum$resid, type='b', pch=19, main='Residuals', ylab='value of Residuals', xlab='time or index')
grid()
dev.off()
bitmap(file='test2.png')
hist(mysum$resid, main='Residual Histogram', xlab='values of Residuals')
grid()
dev.off()
bitmap(file='test3.png')
densityplot(~mysum$resid,col='black',main='Residual Density Plot', xlab='values of Residuals')
dev.off()
bitmap(file='test4.png')
qqnorm(mysum$resid, main='Residual Normal Q-Q Plot')
qqline(mysum$resid)
grid()
dev.off()
(myerror <- as.ts(mysum$resid))
bitmap(file='test5.png')
dum <- cbind(lag(myerror,k=1),myerror)
dum
dum1 <- dum[2:length(myerror),]
dum1
z <- as.data.frame(dum1)
z
plot(z,main=paste('Residual Lag plot, lowess, and regression line'), ylab='values of Residuals', xlab='lagged values of Residuals')
lines(lowess(z))
abline(lm(z))
grid()
dev.off()
bitmap(file='test6.png')
acf(mysum$resid, lag.max=length(mysum$resid)/2, main='Residual Autocorrelation Function')
grid()
dev.off()
bitmap(file='test7.png')
pacf(mysum$resid, lag.max=length(mysum$resid)/2, main='Residual Partial Autocorrelation Function')
grid()
dev.off()
bitmap(file='test8.png')
opar <- par(mfrow = c(2,2), oma = c(0, 0, 1.1, 0))
plot(mylm, las = 1, sub='Residual Diagnostics')
par(opar)
dev.off()
if (n > n25) {
bitmap(file='test9.png')
plot(kp3:nmkm3,gqarr[,2], main='Goldfeld-Quandt test',ylab='2-sided p-value',xlab='breakpoint')
grid()
dev.off()
}
load(file='createtable')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a, 'Multiple Linear Regression - Estimated Regression Equation', 1, TRUE)
a<-table.row.end(a)
myeq <- colnames(x)[1]
myeq <- paste(myeq, '[t] = ', sep='')
for (i in 1:k){
if (mysum$coefficients[i,1] > 0) myeq <- paste(myeq, '+', '')
myeq <- paste(myeq, mysum$coefficients[i,1], sep=' ')
if (rownames(mysum$coefficients)[i] != '(Intercept)') {
myeq <- paste(myeq, rownames(mysum$coefficients)[i], sep='')
if (rownames(mysum$coefficients)[i] != 't') myeq <- paste(myeq, '[t]', sep='')
}
}
myeq <- paste(myeq, ' + e[t]')
a<-table.row.start(a)
a<-table.element(a, myeq)
a<-table.row.end(a)
a<-table.end(a)
table.save(a,file='mytable1.tab')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a,hyperlink('http://www.xycoon.com/ols1.htm','Multiple Linear Regression - Ordinary Least Squares',''), 6, TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'Variable',header=TRUE)
a<-table.element(a,'Parameter',header=TRUE)
a<-table.element(a,'S.D.',header=TRUE)
a<-table.element(a,'T-STAT<br />H0: parameter = 0',header=TRUE)
a<-table.element(a,'2-tail p-value',header=TRUE)
a<-table.element(a,'1-tail p-value',header=TRUE)
a<-table.row.end(a)
for (i in 1:k){
a<-table.row.start(a)
a<-table.element(a,rownames(mysum$coefficients)[i],header=TRUE)
a<-table.element(a,mysum$coefficients[i,1])
a<-table.element(a, round(mysum$coefficients[i,2],6))
a<-table.element(a, round(mysum$coefficients[i,3],4))
a<-table.element(a, round(mysum$coefficients[i,4],6))
a<-table.element(a, round(mysum$coefficients[i,4]/2,6))
a<-table.row.end(a)
}
a<-table.end(a)
table.save(a,file='mytable2.tab')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a, 'Multiple Linear Regression - Regression Statistics', 2, TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'Multiple R',1,TRUE)
a<-table.element(a, sqrt(mysum$r.squared))
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'R-squared',1,TRUE)
a<-table.element(a, mysum$r.squared)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'Adjusted R-squared',1,TRUE)
a<-table.element(a, mysum$adj.r.squared)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'F-TEST (value)',1,TRUE)
a<-table.element(a, mysum$fstatistic[1])
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'F-TEST (DF numerator)',1,TRUE)
a<-table.element(a, mysum$fstatistic[2])
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'F-TEST (DF denominator)',1,TRUE)
a<-table.element(a, mysum$fstatistic[3])
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'p-value',1,TRUE)
a<-table.element(a, 1-pf(mysum$fstatistic[1],mysum$fstatistic[2],mysum$fstatistic[3]))
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'Multiple Linear Regression - Residual Statistics', 2, TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'Residual Standard Deviation',1,TRUE)
a<-table.element(a, mysum$sigma)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'Sum Squared Residuals',1,TRUE)
a<-table.element(a, sum(myerror*myerror))
a<-table.row.end(a)
a<-table.end(a)
table.save(a,file='mytable3.tab')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a, 'Multiple Linear Regression - Actuals, Interpolation, and Residuals', 4, TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'Time or Index', 1, TRUE)
a<-table.element(a, 'Actuals', 1, TRUE)
a<-table.element(a, 'Interpolation<br />Forecast', 1, TRUE)
a<-table.element(a, 'Residuals<br />Prediction Error', 1, TRUE)
a<-table.row.end(a)
for (i in 1:n) {
a<-table.row.start(a)
a<-table.element(a,i, 1, TRUE)
a<-table.element(a,x[i])
a<-table.element(a,x[i]-mysum$resid[i])
a<-table.element(a,mysum$resid[i])
a<-table.row.end(a)
}
a<-table.end(a)
table.save(a,file='mytable4.tab')
if (n > n25) {
a<-table.start()
a<-table.row.start(a)
a<-table.element(a,'Goldfeld-Quandt test for Heteroskedasticity',4,TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'p-values',header=TRUE)
a<-table.element(a,'Alternative Hypothesis',3,header=TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'breakpoint index',header=TRUE)
a<-table.element(a,'greater',header=TRUE)
a<-table.element(a,'2-sided',header=TRUE)
a<-table.element(a,'less',header=TRUE)
a<-table.row.end(a)
for (mypoint in kp3:nmkm3) {
a<-table.row.start(a)
a<-table.element(a,mypoint,header=TRUE)
a<-table.element(a,gqarr[mypoint-kp3+1,1])
a<-table.element(a,gqarr[mypoint-kp3+1,2])
a<-table.element(a,gqarr[mypoint-kp3+1,3])
a<-table.row.end(a)
}
a<-table.end(a)
table.save(a,file='mytable5.tab')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a,'Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity',4,TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'Description',header=TRUE)
a<-table.element(a,'# significant tests',header=TRUE)
a<-table.element(a,'% significant tests',header=TRUE)
a<-table.element(a,'OK/NOK',header=TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'1% type I error level',header=TRUE)
a<-table.element(a,numsignificant1)
a<-table.element(a,numsignificant1/numgqtests)
if (numsignificant1/numgqtests < 0.01) dum <- 'OK' else dum <- 'NOK'
a<-table.element(a,dum)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'5% type I error level',header=TRUE)
a<-table.element(a,numsignificant5)
a<-table.element(a,numsignificant5/numgqtests)
if (numsignificant5/numgqtests < 0.05) dum <- 'OK' else dum <- 'NOK'
a<-table.element(a,dum)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'10% type I error level',header=TRUE)
a<-table.element(a,numsignificant10)
a<-table.element(a,numsignificant10/numgqtests)
if (numsignificant10/numgqtests < 0.1) dum <- 'OK' else dum <- 'NOK'
a<-table.element(a,dum)
a<-table.row.end(a)
a<-table.end(a)
table.save(a,file='mytable6.tab')
}
 





Copyright

Creative Commons License

This work is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 License.

Software written by Ed van Stee & Patrick Wessa


Disclaimer

Information provided on this web site is provided "AS IS" without warranty of any kind, either express or implied, including, without limitation, warranties of merchantability, fitness for a particular purpose, and noninfringement. We use reasonable efforts to include accurate and timely information and periodically update the information, and software without notice. However, we make no warranties or representations as to the accuracy or completeness of such information (or software), and we assume no liability or responsibility for errors or omissions in the content of this web site, or any software bugs in online applications. Your use of this web site is AT YOUR OWN RISK. Under no circumstances and under no legal theory shall we be liable to you or any other person for any direct, indirect, special, incidental, exemplary, or consequential damages arising from your access to, or use of, this web site.


Privacy Policy

We may request personal information to be submitted to our servers in order to be able to:

  • personalize online software applications according to your needs
  • enforce strict security rules with respect to the data that you upload (e.g. statistical data)
  • manage user sessions of online applications
  • alert you about important changes or upgrades in resources or applications

We NEVER allow other companies to directly offer registered users information about their products and services. Banner references and hyperlinks of third parties NEVER contain any personal data of the visitor.

We do NOT sell, nor transmit by any means, personal information, nor statistical data series uploaded by you to third parties.

We carefully protect your data from loss, misuse, alteration, and destruction. However, at any time, and under any circumstance you are solely responsible for managing your passwords, and keeping them secret.

We store a unique ANONYMOUS USER ID in the form of a small 'Cookie' on your computer. This allows us to track your progress when using this website which is necessary to create state-dependent features. The cookie is used for NO OTHER PURPOSE. At any time you may opt to disallow cookies from this website - this will not affect other features of this website.

We examine cookies that are used by third-parties (banner and online ads) very closely: abuse from third-parties automatically results in termination of the advertising contract without refund. We have very good reason to believe that the cookies that are produced by third parties (banner ads) do NOT cause any privacy or security risk.

FreeStatistics.org is safe. There is no need to download any software to use the applications and services contained in this website. Hence, your system's security is not compromised by their use, and your personal data - other than data you submit in the account application form, and the user-agent information that is transmitted by your browser - is never transmitted to our servers.

As a general rule, we do not log on-line behavior of individuals (other than normal logging of webserver 'hits'). However, in cases of abuse, hacking, unauthorized access, Denial of Service attacks, illegal copying, hotlinking, non-compliance with international webstandards (such as robots.txt), or any other harmful behavior, our system engineers are empowered to log, track, identify, publish, and ban misbehaving individuals - even if this leads to ban entire blocks of IP addresses, or disclosing user's identity.


FreeStatistics.org is powered by