Home » date » 2010 » Dec » 13 »

multiple regression trend 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: Mon, 13 Dec 2010 17:48:15 +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/13/t1292262689u4y3yj2mpa85kg5.htm/, Retrieved Mon, 13 Dec 2010 18:51:32 +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/13/t1292262689u4y3yj2mpa85kg5.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] = -2483.04586878898 + 1.00137396200459VVG[t] + 1.46747387464075MWG[t] -1.3572137906666VWG[t] + 22.8242585256231t + e[t]


Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STAT
H0: parameter = 0
2-tail p-value1-tail p-value
(Intercept)-2483.04586878898298.380716-8.321700
VVG1.001373962004590.0225844.348700
MWG1.467473874640750.02651655.342800
VWG-1.35721379066660.046175-29.392800
t22.82425852562313.0316767.528600


Multiple Linear Regression - Regression Statistics
Multiple R0.999677367188303
R-squared0.999354838468536
Adjusted R-squared0.999330492750368
F-TEST (value)41048.4846474652
F-TEST (DF numerator)4
F-TEST (DF denominator)106
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation429.319196042256
Sum Squared Residuals19537387.0415792


Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolation
Forecast
Residuals
Prediction Error
13302432070.7898740882953.21012591181
23252632057.039701527468.960298472994
33145530798.8866584117656.113341588317
43152431176.0525256848347.94747431524
53185631435.6050236641420.394976335913
63269632823.1480493243-127.148049324337
73258432864.6274711883-280.627471188324
83349833198.3788392018299.621160798237
93417534010.5528653446164.447134655358
103417234521.5511158768-349.551115876836
113437934181.7530590179197.246940982116
123498834651.3613364077336.638663592338
133615836808.6155007803-650.615500780322
143741137623.6719394855-212.671939485464
153801537679.5785882742335.421411725831
163757737642.4763706141-65.4763706141166
173635436393.6429905751-39.6429905751282
183603036329.6685986821-299.668598682088
193563635602.145207986933.8547920131406
203566935949.5474361326-280.547436132575
213463535017.8266760786-382.826676078603
223549635611.9601128726-115.96011287261
233637638083.8628206967-1707.86282069665
243763537510.5066152531124.493384746891
253887538003.0044130571871.995586942918
263837238986.5500404833-614.550040483321
273889738947.9820937353-50.9820937353079
283801838603.2482554442-585.248255444208
293732537988.8801456932-663.880145693237
303689336977.3702609017-84.3702609017504
313611735849.8713345109267.128665489119
323759937984.1076634104-385.10766341041
333903739363.0841718232-326.084171823196
344080941592.7372304336-783.737230433558
354250843367.4339941127-859.433994112713
364402144591.6318652923-570.631865292338
374408844256.6487419008-168.64874190081
384451044076.1419164338433.858083566161
394578645269.2204088755516.779591124522
404734947234.5700723092114.429927690809
414869648832.9676434395-136.967643439526
425059850724.9400272822-126.940027282195
435006649698.3355725551367.664427444864
444936748764.6817010854602.318298914582
454878448901.4817179168-117.481717916776
464784148774.264423973-933.264423973018
474830048141.9789629321158.021037067863
484751846734.2129040296783.787095970417
494650446247.2442113064256.755788693552
504514745183.762886201-36.7628862009958
514440444242.7906592677161.209340732273
524345543151.9875270528303.012472947232
534229941904.3315992332394.668400766769
544210541606.680592391498.319407609028
554015239360.8793306364791.120669363582
563951940160.7214944008-641.721494400753
573963339610.689420671322.3105793287444
583937639508.6346169593-132.63461695925
593885039410.1424985176-560.142498517628
603965738958.4971937495698.502806250501
613480433958.0283450466845.971654953362
623437234077.9229703344294.077029665575
633267832102.4403804764575.559619523602
642842027836.8262635847583.173736415253
652542025121.3525242914298.647475708564
662768327825.5468247213-142.546824721299
672990430030.8754483736-126.875448373585
683054629934.224659633611.775340366955
692914229292.5663191245-150.566319124497
702772427688.664128682735.3358713173421
712706926840.5435728895228.456427110545
722666527081.3559148503-416.355914850303
732600426379.0391371188-375.039137118803
742576726194.1637015731-427.163701573144
752491525168.641311076-253.641311075972
762368923766.5282990176-77.5282990175749
772091521355.0074577232-440.007457723182
781941419484.0718072347-70.0718072346651
791782417917.3564024146-93.3564024145704
801634816986.9107267413-638.910726741301
811557115148.9491399198422.050860080183
821392913932.5828661728-3.58286617280669
831248012802.3610014445-322.361001444468
841083710561.7419202249275.258079775125
8594739169.13164266455303.868357335449
8680517782.68568606419268.314313935808
8752785250.3228388599627.6771611400401
8830083000.135954170047.86404582995643
8924042406.61235018266-2.6123501826577
9022982620.21732905503-322.217329055027
9122602277.63446240079-17.6344624007866
9219382090.42689453036-152.42689453036
9313711966.28892161873-595.288921618726
9410091278.05974230588-269.059742305883
95686718.357821450235-32.3578214502351
96493521.35184877144-28.3518487714404
97285245.09330628782839.9066937121722
98192139.4405193362552.5594806637498
9912923.3158745870327105.684125412967
10060-71.8710694287905131.871069428791
10154-61.5637543029166115.563754302917
10226-84.6645602840976110.664560284098
10311-119.456972886871130.456972886871
1043-85.99860544863288.998605448632
1050-76.170177465078476.1701774650784
1062-60.802634234888962.8026342348889
1071-44.342459309955145.3424593099551
1080-16.734879755006216.7348797550062
10906.80105842793831-6.80105842793831
110027.6225690295535-27.6225690295535
111051.4482015171805-51.4482015171805


Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
80.3101088211584670.6202176423169350.689891178841533
90.1699519501420220.3399039002840450.830048049857978
100.08716824206243750.1743364841248750.912831757937563
110.05281346900429370.1056269380085870.947186530995706
120.1346707445902850.269341489180570.865329255409715
130.09262752576509050.1852550515301810.907372474234909
140.1493857650566590.2987715301133180.850614234943341
150.2362822658928030.4725645317856070.763717734107197
160.1975899225895460.3951798451790920.802410077410454
170.1754517468368820.3509034936737640.824548253163118
180.1221041674730860.2442083349461720.877895832526914
190.09978977486151560.1995795497230310.900210225138484
200.0679088735621330.1358177471242660.932091126437867
210.07800701803422420.1560140360684480.921992981965776
220.05344550527799660.1068910105559930.946554494722003
230.158256719566810.3165134391336190.84174328043319
240.145577603390270.291155206780540.85442239660973
250.2330477481280330.4660954962560650.766952251871967
260.2685915869243290.5371831738486580.731408413075671
270.4216252715764710.8432505431529420.578374728423529
280.374588004342350.74917600868470.62541199565765
290.3680093418891580.7360186837783160.631990658110842
300.3171846998144570.6343693996289130.682815300185543
310.2906855748913920.5813711497827850.709314425108608
320.2529504032743470.5059008065486950.747049596725653
330.2061488632880390.4122977265760770.793851136711961
340.2909347404531330.5818694809062660.709065259546867
350.4706556539141760.9413113078283520.529344346085824
360.5119147259481030.9761705481037950.488085274051897
370.5093254300624260.9813491398751470.490674569937574
380.493701115651360.987402231302720.50629888434864
390.6790423699585460.6419152600829090.320957630041454
400.6490354134492860.7019291731014290.350964586550714
410.6344964019813620.7310071960372750.365503598018638
420.6011758909698350.797648218060330.398824109030165
430.5684419323021330.8631161353957340.431558067697867
440.5818413799376970.8363172401246060.418158620062303
450.5780794647949990.8438410704100020.421920535205001
460.7775562670324380.4448874659351240.222443732967562
470.7361406904471050.527718619105790.263859309552895
480.8459111371038830.3081777257922340.154088862896117
490.8680925130173560.2638149739652870.131907486982644
500.8446193620189640.3107612759620720.155380637981036
510.8093502630840370.3812994738319250.190649736915963
520.7871491545722090.4257016908555830.212850845427791
530.8190945977055930.3618108045888140.180905402294407
540.8601042046275510.2797915907448990.139895795372449
550.9114972898133640.1770054203732710.0885027101866357
560.9397266390509830.1205467218980340.0602733609490169
570.926881532399180.146236935201640.0731184676008202
580.9266366739791660.1467266520416670.0733633260208337
590.9906910648393420.01861787032131540.00930893516065772
600.9923808256837190.01523834863256280.0076191743162814
610.9941824340361970.01163513192760610.00581756596380307
620.991271886511980.01745622697603880.00872811348801938
630.9934797618968470.0130404762063060.006520238103153
640.9958237448091580.008352510381683750.00417625519084188
650.9947286615991960.01054267680160830.00527133840080416
660.997924663256960.004150673486078470.00207533674303923
670.9996623112474560.0006753775050873290.000337688752543664
680.9999844497819533.11004360932258e-051.55502180466129e-05
690.9999856453439922.87093120169117e-051.43546560084559e-05
700.9999947111758321.0577648336823e-055.2888241684115e-06
710.9999999692654276.1469145022716e-083.0734572511358e-08
720.9999999909759661.80480687349028e-089.02403436745142e-09
730.9999999979109624.17807596978389e-092.08903798489194e-09
740.999999999086191.82761761520207e-099.13808807601037e-10
750.9999999996211147.57771379206755e-103.78885689603377e-10
760.9999999999997055.89073605579336e-132.94536802789668e-13
770.999999999999843.18496149342638e-131.59248074671319e-13
780.9999999999999975.81188876886085e-152.90594438443042e-15
790.9999999999999921.52183724001283e-147.60918620006413e-15
8017.74753668222133e-173.87376834111067e-17
8116.40319723692428e-173.20159861846214e-17
8212.32933498179951e-161.16466749089975e-16
8311.21216738274098e-156.0608369137049e-16
840.9999999999999968.42737211842327e-154.21368605921163e-15
850.9999999999999745.13141830531251e-142.56570915265626e-14
8611.22072277235199e-156.10361386175995e-16
870.9999999999999959.61019147277579e-154.80509573638789e-15
880.9999999999999588.43896331677452e-144.21948165838726e-14
890.9999999999998283.44390632207591e-131.72195316103796e-13
900.9999999999987192.5623850499768e-121.2811925249884e-12
9111.09519569867362e-195.47597849336812e-20
9211.67388638593663e-188.36943192968315e-19
9313.75392405123859e-171.87696202561929e-17
9417.05921775433126e-163.52960887716563e-16
9517.36526131175761e-203.6826306558788e-20
9612.35585815915701e-201.1779290795785e-20
9713.25030702888279e-181.62515351444139e-18
9813.21219697408307e-161.60609848704153e-16
990.9999999999999983.71777579133697e-151.85888789566848e-15
1000.9999999999999637.37083509111378e-143.68541754555689e-14
1010.9999999999913681.72644215605274e-118.6322107802637e-12
1020.999999999990911.81793000131201e-119.08965000656007e-12
1030.999999993835161.23296814358307e-086.16484071791537e-09


Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level390.40625NOK
5% type I error level450.46875NOK
10% type I error level450.46875NOK
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Dec/13/t1292262689u4y3yj2mpa85kg5/10q3mm1292262484.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/13/t1292262689u4y3yj2mpa85kg5/10q3mm1292262484.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/13/t1292262689u4y3yj2mpa85kg5/1btov1292262484.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/13/t1292262689u4y3yj2mpa85kg5/1btov1292262484.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/13/t1292262689u4y3yj2mpa85kg5/2btov1292262484.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/13/t1292262689u4y3yj2mpa85kg5/2btov1292262484.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/13/t1292262689u4y3yj2mpa85kg5/34kny1292262484.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/13/t1292262689u4y3yj2mpa85kg5/34kny1292262484.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/13/t1292262689u4y3yj2mpa85kg5/44kny1292262484.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/13/t1292262689u4y3yj2mpa85kg5/44kny1292262484.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/13/t1292262689u4y3yj2mpa85kg5/54kny1292262484.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/13/t1292262689u4y3yj2mpa85kg5/54kny1292262484.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/13/t1292262689u4y3yj2mpa85kg5/64kny1292262484.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/13/t1292262689u4y3yj2mpa85kg5/64kny1292262484.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/13/t1292262689u4y3yj2mpa85kg5/7xb4j1292262484.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/13/t1292262689u4y3yj2mpa85kg5/7xb4j1292262484.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/13/t1292262689u4y3yj2mpa85kg5/8q3mm1292262484.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/13/t1292262689u4y3yj2mpa85kg5/8q3mm1292262484.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/13/t1292262689u4y3yj2mpa85kg5/9q3mm1292262484.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/13/t1292262689u4y3yj2mpa85kg5/9q3mm1292262484.ps (open in new window)


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