Home » date » 2010 » Dec » 11 »

multiple regression gewest

*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: Sat, 11 Dec 2010 14:29:17 +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/11/t1292077681va7o2y4wdzq1683.htm/, Retrieved Sat, 11 Dec 2010 15:28:04 +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/11/t1292077681va7o2y4wdzq1683.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 «
33024 31086 19828 18932 32526 30839 19967 18927 31455 30051 19814 19124 31524 29976 20053 19066 31856 30463 20719 19971 32696 31422 21174 20165 32584 31588 20648 19705 33498 31900 20659 19718 34175 32878 20733 19938 34172 33010 21069 20039 34379 32954 20566 19721 34988 33076 20839 19777 36158 35057 21615 20505 37411 35906 22739 21763 38015 36100 23222 22404 37577 35824 23031 22038 36354 34579 23014 22038 36030 34484 22868 21874 35636 33920 22182 21269 35669 34059 22177 21127 34635 33812 21216 20609 35496 34594 21031 20565 36376 36083 20968 19791 37635 36563 21049 20672 38875 37416 21033 20938 38372 37953 21078 20675 38897 37517 20702 19992 38018 37467 20309 19801 37325 36963 20449 20050 36893 36019 20737 20427 36117 35232 20849 20815 37599 36857 21966 21666 39037 37978 23100 22720 40809 40160 23975 23650 42508 42165 24350 24244 44021 43069 24020 23669 44088 43021 24005 23881 44510 43376 23602 23857 45786 43978 24120 23999 47349 45911 24847 24780 48696 47107 25702 25426 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 time6 seconds
R Server'RServer@AstonUniversity' @ vre.aston.ac.uk


Multiple Linear Regression - Estimated Regression Equation
MVG[t] = -351.343556830821 + 1.08525691228605VVG[t] + 1.34991956196839MWG[t] -1.4473742694076VWG[t] + e[t]


Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STAT
H0: parameter = 0
2-tail p-value1-tail p-value
(Intercept)-351.343556830821116.053031-3.02740.0030910.001545
VVG1.085256912286050.02421644.816300
MWG1.349919561968390.02642551.084300
VWG-1.44737426940760.054987-26.322100


Multiple Linear Regression - Regression Statistics
Multiple R0.99950480804335
R-squared0.999009861301776
Adjusted R-squared0.998982100403695
F-TEST (value)35986.2227217913
F-TEST (DF numerator)3
F-TEST (DF denominator)107
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation529.364893669255
Sum Squared Residuals29984309.3994924


Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolation
Forecast
Residuals
Prediction Error
13302432749.468224778274.531775222003
23252632676.2854579039-150.285457903912
33145531329.4325869681125.567413031927
43152431654.6168014827-130.616801482703
53185631772.309632223183.6903677769173
63269633146.493803536-450.493803535949
73258433282.3809253076-698.380925307554
83349833617.0143316202-119.014331620154
93417534459.8673001519-284.8673001519
103417234910.5093841849-738.50938418487
113437934630.9904750984-251.990475098367
123498835050.8668997278-62.8668997278104
133615837194.6099549252-1036.60995492521
143741137812.5058301938-401.505830193784
153801537747.2899129177267.71008708226
163757737719.663351394-142.663351394008
173635436345.56986304448.43013695558487
183603036282.7515805127-252.751580512701
193563635620.283295464715.7167045353505
203566935969.9115547184-300.911554718448
213463535154.3202698853-519.320269885304
223549635816.9405241828-320.940524182776
233637638468.1108186942-2092.11081869418
243763537823.2408897628-188.240889762824
253887538342.3647672889532.635232711092
263837239366.5535423293-994.553542329292
273889739374.3683992779-477.36839927785
283801839066.0356512668-1048.03565126682
293732538347.6587130677-1022.65871306773
303689337166.2929221499-273.292922149936
313611735901.8055065911215.194493408874
323759937941.4926365088-342.492636508786
333903739163.341938498-126.341938497995
344080941366.4940672794-557.494067279429
354250843188.913696123-680.913696122991
364402144556.7526942894-535.75269428938
374408844177.5682239557-89.5682239557128
384451044053.5538268098456.446173190221
394578645200.6096748497585.390325150271
404734947149.4035034424199.596496557651
414869648666.548217982129.4517820178684
425059850564.472108670133.5278913299034
435006649522.3539082912543.6460917088
444936748644.588634794722.411365205996
454878448655.5251265387128.474873461321
464784148446.9199321674-605.919932167405
474830047794.4297493811505.570250618879
484751846326.39581813331191.60418186674
494650445859.8098226337644.190177366305
504514744788.495547488358.504452511944
514440443843.6841804956560.315819504371
524345542661.1416098873793.858390112672
534229941349.6653626651949.334637334933
544210541081.16839086631023.83160913367
554015238815.29582815011336.70417184995
563951939485.98992797933.0100720209537
573963338929.6940477566703.305952243433
583937638719.5422334163656.457766583661
593885038628.7467252689221.253274731108
603965738310.30072569831346.6992743017
613480434090.3221761978713.677823802196
623437234210.8215729304161.178427069602
633267832336.819269479341.180730520952
642842028094.6131052027325.386894797291
652542025334.412827307985.5871726920797
662768327946.0860851201-263.086085120114
672990430173.9881070548-269.988107054818
683054630116.2530607939429.746939206129
692914229495.027067201-353.027067200997
702772427897.1701121426-173.170112142579
712706927062.67353853116.32646146889145
722666527252.354240425-587.35424042499
732600426517.14068941-513.140689410028
742576726272.8165667968-505.816566796782
752491525192.1963130666-277.196313066641
762368923784.6165741159-95.6165741158532
772091521378.3579261974-463.357926197426
781941419493.3825672318-79.3825672318416
791782417905.5371791963-81.5371791962547
801634817018.6562595456-670.656259545596
811557115149.1178545471421.882145452894
821392913968.8847570182-39.8847570181557
831248012920.7433554902-440.743355490184
841083710622.4811464187214.518853581315
8594739245.92255719018227.077442809823
8680517868.79447317318182.205526826818
8752785411.83373418216-133.833734182159
8830083157.59257210614-149.592572106138
8924042545.46089455325-141.460894553252
9022982767.27254522524-469.272545225242
9122602400.55900913542-140.559009135421
9219382180.01170533972-242.01170533972
9313712065.25753403841-694.257534038408
9410091336.35647262124-327.356472621243
95686738.35016004123-52.3501600412297
96493502.544883263154-9.54488326315354
97285191.58376094183993.4162390581607
9819262.383523760209129.616476239791
99129-85.8818921774391214.881892177439
10060-212.310329513305272.310329513305
10154-226.72570628055280.72570628055
10226-274.344301349018300.344301349018
10311-337.281536148059348.281536148059
1043-325.764629114054328.764629114054
1050-339.773323948175339.773323948175
1062-348.089976412109350.089976412109
1071-354.963635242947355.963635242947
1080-349.897277720479349.897277720479
1090-349.173043006238349.173043006238
1100-351.343556830809351.343556830809
1110-350.258299918524350.258299918524


Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
70.1827555492855560.3655110985711130.817244450714444
80.1004513287221540.2009026574443080.899548671277846
90.04482634085886570.08965268171773140.955173659141134
100.02138902704614170.04277805409228340.978610972953858
110.00830275240930410.01660550481860820.991697247590696
120.01449290809480650.02898581618961310.985507091905193
130.009305866453233660.01861173290646730.990694133546766
140.01995722526399850.03991445052799690.980042774736002
150.03833643970659240.07667287941318480.961663560293408
160.02576406601150460.05152813202300910.974235933988495
170.01608272766687480.03216545533374960.983917272333125
180.009104534733155560.01820906946631110.990895465266844
190.005172749157072670.01034549831414530.994827250842927
200.002855943791680340.005711887583360680.99714405620832
210.00608467527846650.0121693505569330.993915324721534
220.003836453907456650.00767290781491330.996163546092543
230.04557555424433950.09115110848867890.95442444575566
240.04239844762827160.08479689525654310.957601552371728
250.0558423624262170.1116847248524340.944157637573783
260.07672786640363990.153455732807280.92327213359636
270.1168702169772460.2337404339544920.883129783022754
280.1373545065549650.2747090131099290.862645493445035
290.2113326793168120.4226653586336230.788667320683188
300.1884403252226720.3768806504453430.811559674777328
310.1565552769391740.3131105538783480.843444723060826
320.1806566132827420.3613132265654840.819343386717258
330.1738248754089770.3476497508179550.826175124591023
340.2721920411362910.5443840822725820.727807958863709
350.4378717728512590.8757435457025190.562128227148741
360.5582211842635620.8835576314728750.441778815736438
370.6127557700779390.7744884598441220.387244229922061
380.6532577064775940.6934845870448120.346742293522406
390.827036891578820.345926216842360.17296310842118
400.8396345659748370.3207308680503260.160365434025163
410.8535873588562040.2928252822875920.146412641143796
420.8454569355093240.3090861289813530.154543064490676
430.8485649047242350.302870190551530.151435095275765
440.871140827180650.2577183456387010.12885917281935
450.856660162280730.2866796754385410.14333983771927
460.955075592924750.08984881415050.04492440707525
470.9409744955734280.1180510088531440.059025504426572
480.9610297159456620.07794056810867530.0389702840543376
490.9536745386812260.09265092263754730.0463254613187736
500.9470444717064730.1059110565870540.0529555282935272
510.9346807711407540.1306384577184910.0653192288592456
520.9155604851654570.1688790296690860.0844395148345431
530.900930490100530.1981390197989390.0990695098994695
540.8993849465231660.2012301069536690.100615053476834
550.9293799842641640.1412400314716720.0706200157358361
560.9671662628445740.0656674743108530.0328337371554265
570.9561634851734690.08767302965306260.0438365148265313
580.9617832536425570.07643349271488650.0382167463574433
590.9976273544393950.0047452911212110.0023726455606055
600.9982836853020160.003432629395968410.0017163146979842
610.998599033733650.002801932532699570.00140096626634978
620.9978202199417870.004359560116426610.0021797800582133
630.9983143946626640.003371210674671280.00168560533733564
640.998568349571430.002863300857141080.00143165042857054
650.9979969063515620.004006187296875350.00200309364843767
660.9994061165655950.001187766868810290.000593883434405145
670.9998136830698650.0003726338602703950.000186316930135197
680.9999869572673472.60854653059891e-051.30427326529946e-05
690.999987034416772.59311664602551e-051.29655832301275e-05
700.9999945405607051.09188785901976e-055.4594392950988e-06
710.999999972890095.42198182870976e-082.71099091435488e-08
720.9999999944906351.10187308576981e-085.50936542884904e-09
730.9999999992135611.57287715293645e-097.86438576468223e-10
740.9999999998500872.9982669695332e-101.4991334847666e-10
750.9999999999642947.1412888707531e-113.57064443537655e-11
760.9999999999999872.66430679181423e-141.33215339590712e-14
770.9999999999999941.19220319197378e-145.96101595986889e-15
7811.68964081114166e-168.44820405570829e-17
7914.39027249365828e-162.19513624682914e-16
8011.68610418014427e-188.43052090072134e-19
8111.60493923563001e-188.02469617815004e-19
8215.77582918742823e-182.88791459371411e-18
8313.24606163176517e-171.62303081588259e-17
8412.41336966758559e-161.20668483379279e-16
8511.56192328537736e-157.8096164268868e-16
8612.7437963031234e-171.3718981515617e-17
8711.99434484873553e-169.97172424367765e-17
8811.48214323429178e-157.41071617145892e-16
890.9999999999999976.23868365648438e-153.11934182824219e-15
900.9999999999999764.70600043424628e-142.35300021712314e-14
9113.16791550422452e-211.58395775211226e-21
9219.06987347570455e-204.53493673785227e-20
9311.69267057989323e-188.46335289946614e-19
9412.37303995075023e-171.18651997537512e-17
9511.90982443912188e-229.5491221956094e-23
9618.3871040439931e-234.19355202199655e-23
9718.56421868982582e-214.28210934491291e-21
9811.0328139508292e-185.16406975414602e-19
9915.8123006977893e-182.90615034889465e-18
10013.2522464123824e-161.6261232061912e-16
1010.9999999999999725.65522513927536e-142.82761256963768e-14
1020.9999999999999764.77499530443323e-142.38749765221662e-14
1030.9999999999874422.51159742339512e-111.25579871169756e-11
1040.9999999916185171.67629649229508e-088.3814824614754e-09


Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level480.489795918367347NOK
5% type I error level570.581632653061224NOK
10% type I error level680.693877551020408NOK
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Dec/11/t1292077681va7o2y4wdzq1683/10dczk1292077746.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/11/t1292077681va7o2y4wdzq1683/10dczk1292077746.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/11/t1292077681va7o2y4wdzq1683/1ot2q1292077746.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/11/t1292077681va7o2y4wdzq1683/1ot2q1292077746.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/11/t1292077681va7o2y4wdzq1683/2ot2q1292077746.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/11/t1292077681va7o2y4wdzq1683/2ot2q1292077746.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/11/t1292077681va7o2y4wdzq1683/3h2jb1292077746.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/11/t1292077681va7o2y4wdzq1683/3h2jb1292077746.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/11/t1292077681va7o2y4wdzq1683/4h2jb1292077746.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/11/t1292077681va7o2y4wdzq1683/4h2jb1292077746.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/11/t1292077681va7o2y4wdzq1683/5h2jb1292077746.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/11/t1292077681va7o2y4wdzq1683/5h2jb1292077746.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/11/t1292077681va7o2y4wdzq1683/6rc0w1292077746.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/11/t1292077681va7o2y4wdzq1683/6rc0w1292077746.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/11/t1292077681va7o2y4wdzq1683/7k3hy1292077746.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/11/t1292077681va7o2y4wdzq1683/7k3hy1292077746.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/11/t1292077681va7o2y4wdzq1683/8k3hy1292077746.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/11/t1292077681va7o2y4wdzq1683/8k3hy1292077746.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/11/t1292077681va7o2y4wdzq1683/9k3hy1292077746.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/11/t1292077681va7o2y4wdzq1683/9k3hy1292077746.ps (open in new window)


 
Parameters (Session):
par1 = pearson ; par2 = equal ; par3 = 2 ; par4 = no ;
 
Parameters (R input):
par1 = 1 ; par2 = Do not include Seasonal Dummies ; par3 = No Linear Trend ; par4 = no ;
 
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