Home » date » 2010 » Dec » 12 »

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: Sun, 12 Dec 2010 11:08:39 +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/12/t1292152054ba6ysfxd0rfqj8s.htm/, Retrieved Sun, 12 Dec 2010 12:07:44 +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/12/t1292152054ba6ysfxd0rfqj8s.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 time9 seconds
R Server'Gwilym Jenkins' @ 72.249.127.135


Multiple Linear Regression - Estimated Regression Equation
MVG[t] = -351.343556830789 + 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.343556830789116.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.2227217912
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.4682247779274.531775222068
23252632676.285457904-150.285457904011
33145531329.4325869681125.567413031912
43152431654.6168014827-130.616801482705
53185631772.309632223183.6903677769195
63269633146.4938035359-450.493803535947
73258433282.3809253076-698.380925307552
83349833617.0143316202-119.014331620152
93417534459.8673001519-284.867300151898
103417234910.5093841849-738.509384184869
113437934630.9904750984-251.990475098364
123498835050.8668997278-62.8668997278086
133615837194.6099549252-1036.60995492521
143741137812.5058301938-401.505830193784
153801537747.2899129177267.710087082261
163757737719.663351394-142.663351394008
173635436345.56986304448.43013695558603
183603036282.7515805127-252.751580512701
193563635620.283295464715.7167045353511
203566935969.9115547184-300.911554718446
213463535154.3202698853-519.320269885302
223549635816.9405241828-320.940524182774
233637638468.1108186942-2092.11081869418
243763537823.2408897628-188.240889762823
253887538342.3647672889532.635232711095
263837239366.5535423293-994.55354232929
273889739374.3683992779-477.36839927785
283801839066.0356512668-1048.03565126682
293732538347.6587130677-1022.65871306773
303689337166.2929221499-273.292922149935
313611735901.8055065911215.194493408875
323759937941.4926365088-342.492636508784
333903739163.341938498-126.341938497993
344080941366.4940672794-557.49406727943
354250843188.913696123-680.91369612299
364402144556.7526942894-535.75269428938
374408844177.5682239557-89.5682239557137
384451044053.5538268098456.446173190223
394578645200.6096748497585.39032515027
404734947149.4035034424199.596496557651
414869648666.548217982129.451782017869
425059850564.472108670133.5278913299033
435006649522.3539082912543.646091708798
444936748644.588634794722.411365205995
454878448655.5251265387128.474873461320
464784148446.9199321674-605.919932167405
474830047794.4297493811505.570250618878
484751846326.39581813331191.60418186674
494650445859.8098226337644.190177366305
504514744788.495547488358.504452511947
514440443843.6841804956560.315819504374
524345542661.1416098873793.85839011267
534229941349.6653626651949.334637334934
544210541081.16839086631023.83160913367
554015238815.29582815011336.70417184995
563951939485.989927979033.0100720209544
573963338929.6940477566703.305952243436
583937638719.5422334163656.45776658366
593885038628.7467252689221.253274731111
603965738310.30072569831346.6992743017
613480434090.3221761978713.677823802197
623437234210.8215729304161.178427069602
633267832336.8192694790341.180730520952
642842028094.6131052027325.386894797292
652542025334.412827307985.5871726920804
662768327946.0860851201-263.086085120115
672990430173.9881070548-269.988107054818
683054630116.2530607939429.746939206128
692914229495.027067201-353.027067200997
702772427897.1701121426-173.170112142578
712706927062.67353853116.32646146889084
722666527252.354240425-587.354240424991
732600426517.1406894100-513.14068941003
742576726272.8165667968-505.816566796782
752491525192.1963130666-277.196313066641
762368923784.6165741159-95.616574115853
772091521378.3579261974-463.357926197425
781941419493.3825672318-79.3825672318413
791782417905.5371791963-81.5371791962544
801634817018.6562595456-670.656259545597
811557115149.1178545471421.882145452893
821392913968.8847570182-39.8847570181579
831248012920.7433554902-440.743355490184
841083710622.4811464187214.518853581312
8594739245.92255719018227.077442809821
8680517868.79447317318182.205526826820
8752785411.83373418216-133.833734182161
8830083157.59257210614-149.592572106140
8924042545.46089455325-141.460894553248
9022982767.27254522525-469.272545225245
9122602400.55900913542-140.559009135422
9219382180.01170533972-242.011705339718
9313712065.25753403841-694.257534038408
9410091336.35647262124-327.356472621243
95686738.35016004123-52.3501600412307
96493502.544883263155-9.5448832631551
97285191.58376094184493.4162390581565
9819262.3835237602086129.616476239791
99129-85.8818921774387214.881892177439
10060-212.310329513310272.310329513310
10154-226.725706280545280.725706280545
10226-274.344301349027300.344301349027
10311-337.281536148062348.281536148062
1043-325.764629114056328.764629114056
1050-339.773323948175339.773323948175
1062-348.089976412106350.089976412106
1071-354.963635242946355.963635242946
1080-349.89727772048349.89727772048
1090-349.173043006241349.173043006241
1100-351.343556830809351.343556830809
1110-350.258299918525350.258299918525


Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
70.1827555492855660.3655110985711310.817244450714434
80.1004513287221500.2009026574443000.89954867127785
90.04482634085886980.08965268171773960.95517365914113
100.02138902704614220.04277805409228430.978610972953858
110.008302752409302730.01660550481860550.991697247590697
120.01449290809480660.02898581618961310.985507091905193
130.009305866453233620.01861173290646720.990694133546766
140.01995722526399850.03991445052799690.980042774736002
150.03833643970659410.07667287941318830.961663560293406
160.02576406601150460.05152813202300930.974235933988495
170.01608272766687450.0321654553337490.983917272333126
180.009104534733155940.01820906946631190.990895465266844
190.00517274915707230.01034549831414460.994827250842928
200.002855943791680570.005711887583361140.99714405620832
210.006084675278466430.01216935055693290.993915324721534
220.003836453907455040.007672907814910080.996163546092545
230.04557555424434180.09115110848868360.954424445755658
240.04239844762827580.08479689525655150.957601552371724
250.05584236242621490.1116847248524300.944157637573785
260.07672786640364330.1534557328072870.923272133596357
270.1168702169772490.2337404339544990.88312978302275
280.1373545065549840.2747090131099690.862645493445016
290.2113326793167960.4226653586335920.788667320683204
300.1884403252226710.3768806504453410.81155967477733
310.1565552769391860.3131105538783720.843444723060814
320.1806566132827210.3613132265654430.819343386717279
330.1738248754089840.3476497508179670.826175124591016
340.2721920411362780.5443840822725560.727807958863722
350.4378717728512590.8757435457025180.562128227148741
360.5582211842635430.8835576314729130.441778815736457
370.6127557700778940.7744884598442120.387244229922106
380.6532577064776040.6934845870447910.346742293522396
390.8270368915788260.3459262168423480.172963108421174
400.8396345659748650.3207308680502710.160365434025135
410.85358735885620.2928252822876000.146412641143800
420.8454569355093480.3090861289813040.154543064490652
430.8485649047242510.3028701905514980.151435095275749
440.8711408271806230.2577183456387530.128859172819377
450.8566601622807220.2866796754385560.143339837719278
460.9550755929247490.08984881415050260.0449244070752513
470.9409744955734310.1180510088531390.0590255044265693
480.9610297159456560.07794056810868780.0389702840543439
490.9536745386812310.0926509226375380.046325461318769
500.9470444717064740.1059110565870520.0529555282935261
510.934680771140760.1306384577184790.0653192288592397
520.915560485165450.1688790296691020.0844395148345509
530.9009304901005540.1981390197988920.0990695098994462
540.8993849465231650.201230106953670.100615053476835
550.9293799842641520.1412400314716950.0706200157358476
560.9671662628445720.06566747431085620.0328337371554281
570.9561634851734630.08767302965307390.0438365148265369
580.9617832536425540.07643349271489210.0382167463574461
590.9976273544393940.004745291121211140.00237264556060557
600.9982836853020160.00343262939596760.0017163146979838
610.998599033733650.00280193253270020.0014009662663501
620.9978202199417860.004359560116426910.00217978005821346
630.9983143946626640.0033712106746710.0016856053373355
640.998568349571430.002863300857141090.00143165042857054
650.9979969063515610.004006187296877080.00200309364843854
660.9994061165655950.001187766868810330.000593883434405166
670.9998136830698650.0003726338602702550.000186316930135127
680.9999869572673472.60854653059884e-051.30427326529942e-05
690.999987034416772.59311664602497e-051.29655832301248e-05
700.9999945405607051.0918878590194e-055.459439295097e-06
710.999999972890095.42198182870974e-082.71099091435487e-08
720.9999999944906351.10187308577017e-085.50936542885087e-09
730.9999999992135611.57287715293684e-097.86438576468418e-10
740.9999999998500872.9982669695339e-101.49913348476695e-10
750.9999999999642947.14128887075184e-113.57064443537592e-11
760.9999999999999872.66430679181416e-141.33215339590708e-14
770.9999999999999941.19220319197361e-145.96101595986805e-15
7811.68964081114190e-168.44820405570952e-17
7914.39027249365697e-162.19513624682848e-16
8011.68610418014383e-188.43052090071916e-19
8111.6049392356303e-188.0246961781515e-19
8215.77582918742847e-182.88791459371423e-18
8313.24606163176492e-171.62303081588246e-17
8412.41336966758574e-161.20668483379287e-16
8511.56192328537730e-157.80961642688651e-16
8612.74379630312328e-171.37189815156164e-17
8711.99434484873535e-169.97172424367673e-17
8811.48214323429196e-157.41071617145982e-16
890.9999999999999976.23868365648422e-153.11934182824211e-15
900.9999999999999764.70600043424645e-142.35300021712322e-14
9113.16791550422436e-211.58395775211218e-21
9219.069873475705e-204.5349367378525e-20
9311.69267057989316e-188.46335289946578e-19
9412.37303995075008e-171.18651997537504e-17
9511.90982443912177e-229.54912219560885e-23
9618.38710404399262e-234.19355202199631e-23
9718.56421868982515e-214.28210934491258e-21
9811.03281395082917e-185.16406975414587e-19
9915.81230069778926e-182.90615034889463e-18
10013.25224641238244e-161.62612320619122e-16
1010.9999999999999725.65522513927545e-142.82761256963772e-14
1020.9999999999999764.77499530443327e-142.38749765221663e-14
1030.9999999999874422.51159742339512e-111.25579871169756e-11
1040.9999999916185181.67629649229507e-088.38148246147534e-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/12/t1292152054ba6ysfxd0rfqj8s/10k8ui1292152106.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/12/t1292152054ba6ysfxd0rfqj8s/10k8ui1292152106.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/12/t1292152054ba6ysfxd0rfqj8s/1dpfo1292152106.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/12/t1292152054ba6ysfxd0rfqj8s/1dpfo1292152106.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/12/t1292152054ba6ysfxd0rfqj8s/2dpfo1292152106.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/12/t1292152054ba6ysfxd0rfqj8s/2dpfo1292152106.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/12/t1292152054ba6ysfxd0rfqj8s/36ger1292152106.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/12/t1292152054ba6ysfxd0rfqj8s/36ger1292152106.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/12/t1292152054ba6ysfxd0rfqj8s/46ger1292152106.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/12/t1292152054ba6ysfxd0rfqj8s/46ger1292152106.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/12/t1292152054ba6ysfxd0rfqj8s/56ger1292152106.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/12/t1292152054ba6ysfxd0rfqj8s/56ger1292152106.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/12/t1292152054ba6ysfxd0rfqj8s/6zpec1292152106.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/12/t1292152054ba6ysfxd0rfqj8s/6zpec1292152106.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/12/t1292152054ba6ysfxd0rfqj8s/7rhdf1292152106.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/12/t1292152054ba6ysfxd0rfqj8s/7rhdf1292152106.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/12/t1292152054ba6ysfxd0rfqj8s/8rhdf1292152106.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/12/t1292152054ba6ysfxd0rfqj8s/8rhdf1292152106.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/12/t1292152054ba6ysfxd0rfqj8s/9rhdf1292152106.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/12/t1292152054ba6ysfxd0rfqj8s/9rhdf1292152106.ps (open in new window)


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





Copyright

Creative Commons License

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

Software written by Ed van Stee & Patrick Wessa


Disclaimer

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


Privacy Policy

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

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

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

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

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

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

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

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

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


FreeStatistics.org is powered by