Home » date » 2010 » Nov » 26 »

Time Series Analysis WS8 - Seizoenaliteit

*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: Fri, 26 Nov 2010 07:33:09 +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/Nov/26/t1290756762zc5xqcmjkam1k75.htm/, Retrieved Fri, 26 Nov 2010 08:32:52 +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/Nov/26/t1290756762zc5xqcmjkam1k75.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 «
43880 25222 43110 21333 44496 19778 44164 25943 40399 21698 36763 20077 37903 25673 35532 19094 35533 19306 32110 15443 33374 15179 35462 18288 33508 18264 36080 16406 34560 15678 38737 19657 38144 18821 37594 19493 36424 21078 36843 19296 37246 19985 38661 16972 40454 16951 44928 23126 48441 24890 48140 21042 45998 20842 47369 23904 49554 22578 47510 25452 44873 21928 45344 25227 42413 26210 36912 17436 43452 21258 42142 25638 44382 23516 43636 23891 44167 24617 44423 26174 42868 23339 43908 23660 42013 26500 38846 22469 35087 23163 33026 16170 34646 18267 37135 20561 37985 20372 43121 19017 43722 18242 43630 20937 42234 22065 39351 16731 39327 21943 35704 19254 30466 16397 28155 13644 29257 14375 29998 14814 32529 16061 34787 14784 33855 12824 34556 18282 31348 14936 30805 15701 28353 16394 24514 13085 21106 11431 21346 9334 23335 10921 24379 11725 26290 13077 30084 11794 29429 11047 30632 16797 27349 11482 27264 12657 27474 15277 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'George Udny Yule' @ 72.249.76.132


Multiple Linear Regression - Estimated Regression Equation
OPENVAC[t] = + 10623.1942523224 + 1.29571959381036OntvangenJobs[t] + 1477.02153033243M1[t] + 5607.42821315978M2[t] + 6426.25646009834M3[t] + 3206.56291386158M4[t] + 3787.27999096013M5[t] + 3228.35979642518M6[t] -280.371854110935M7[t] + 75.6015046914418M8[t] -1565.32470150871M9[t] + 1889.99201110606M10[t] + 1852.99431323577M11[t] + e[t]


Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STAT
H0: parameter = 0
2-tail p-value1-tail p-value
(Intercept)10623.19425232241392.1662367.630700
OntvangenJobs1.295719593810360.05697622.741300
M11477.021530332431462.8804731.00970.3147570.157378
M25607.428213159781462.2300373.83480.0002050.000102
M36426.256460098341464.1960184.38892.5e-051.3e-05
M43206.562913861581465.077522.18870.0306250.015312
M53787.279990960131461.9990862.59050.0108130.005407
M63228.359796425181461.5857222.20880.0291530.014577
M7-280.3718541109351467.7304-0.1910.8488410.42442
M875.60150469144181461.8583450.05170.9588440.479422
M9-1565.324701508711461.58349-1.0710.2864020.143201
M101889.992011106061512.6531641.24950.2140140.107007
M111852.994313235771502.7860671.2330.2200540.110027


Multiple Linear Regression - Regression Statistics
Multiple R0.91590742978012
R-squared0.838886419926424
Adjusted R-squared0.822219497849847
F-TEST (value)50.3324138717472
F-TEST (DF numerator)12
F-TEST (DF denominator)116
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation3345.10446353355
Sum Squared Residuals1298007969.14644


Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolation
Forecast
Residuals
Prediction Error
14388044780.8553777397-900.85537773967
24311043872.2085602386-762.208560238618
34449642676.19283880211819.80716119792
44416447444.6105884062-3280.61058840621
54039942524.9979897798-2125.99798977977
63676339865.7163336782-3102.71633367822
73790343607.8315301049-5704.83153010488
83553235439.265681228992.7343187711064
93553334073.03202891651459.96797108346
103211032522.9839506419-412.983950641875
113337432143.91628000571230.08371999434
123546234319.31418392631142.68581607370
133350835765.2384440073-2257.23844400729
143608037488.198121535-1408.19812153497
153456037363.7425041796-2803.7425041796
163873739299.7172217143-562.717221714272
173814438797.2127183874-653.21271838736
183759439109.016090893-1515.01609089297
193642437653.9999965463-1229.99999654628
203684335701.00103917861141.99896082141
213724634952.82563311382293.17436688622
223866134504.13920957794156.86079042208
234045434439.93140023766014.06859976239
244492840588.00557878084339.99442121916
254844144350.67647259484090.32352740525
264814043495.15415843984644.84584156019
274599844054.83848661631943.16151338369
284736944802.63833662692566.36166337312
294955443665.23123233295888.76876766711
304751046830.2091504089679.790849591079
314487338755.36165128516117.63834871492
324534443385.91395006791958.08604993215
334241343018.6801045833-605.680104583284
343691235105.35310110591806.64689889407
354345240020.59569077883431.40430922116
364214243842.8531984325-1700.85319843246
374438242570.35775069931811.64224930069
384363647186.6592812055-3550.65928120553
394416748946.1799532504-4779.17995325042
404442347743.9218145764-3320.9218145764
414286844651.2738432226-1783.27384322258
424390844508.2796383008-600.279638300752
434201344679.3916341861-2666.39163418606
443884639812.3193103389-966.319310338866
453508739070.6225022431-3983.62250224311
463302633464.972095342-438.972095342012
473464636145.0983856921-1499.09838569205
483713537264.4848206573-129.484820657254
493798538496.6153477595-511.615347759532
504312140871.32198097382249.67801902617
514372240685.96754270943036.03245729063
524363040958.23830179152671.76169820846
534223443000.5270807082-766.527080708174
543935135530.23857278883820.76142721125
553932738774.7974451922552.20255480776
563570435646.580816238657.4191837614471
573046630303.7837305222162.216269477803
582815530191.9844013770-2036.98440137704
592925731102.1577265821-1845.15772658212
602999829817.9843150291180.015684970898
613252932910.7681788431-381.768178843061
623478735386.5409403746-599.540940374568
633385533665.7587834448189.241216555175
643455637518.1027802250-2962.10278022502
653134833763.3420964341-2415.3420964341
663080534195.6473911641-3390.64739116408
672835331584.8494191385-3231.84941913854
682451427653.2866420224-3139.28664202243
692110623869.2402276599-2763.24022765994
702134624607.4329520544-3261.43295205438
712333526626.7422495611-3291.74224956113
722437925815.5064897489-1436.50648974889
732629029044.3409109129-2754.34091091294
743008431512.3393548816-1428.33935488158
752942931363.2650652438-1934.26506524381
763063235593.9591834166-4961.95918341663
772734929287.9266194131-1938.92661941311
782726430251.4769476053-2987.47694760534
792747430137.5306328524-2663.53063285236
802448226746.2829263552-2264.28292635517
812145324601.3217981628-3148.32179816279
821878823390.7522534664-4602.75225346644
831928224044.3730990971-4762.37309909708
841971323498.7598560160-3785.75985601596
852191726959.5280844721-5042.52808447207
862381228609.9274647464-4797.92746474637
872378529003.7596849151-5218.75968491514
882469628109.882809568-3413.88280956798
892456227451.8919549838-2889.89195498383
902358026729.7110916288-3149.71109162877
912493924827.6717374175111.328262582500
922389926173.574865891-2274.57486589099
932145423041.2754072151-1587.27540721512
941976122982.6005814162-3221.60058141618
951981523623.2642311087-3808.26423110871
962078025603.008476364-4823.00847636399
972346225639.1898183793-2177.18981837931
982500526851.6359759457-1846.63597594571
992472526899.5110645671-2174.51106456711
1002619826166.303418852431.6965811475595
1012754327901.506654036-358.506654036024
1022647127923.0688375281-1452.06883752812
1032655825292.83507159541265.16492840458
1042531725495.9135183282-178.913518328176
1052289622543.7190831919352.280916808062
1062224820284.9123871031963.08761289699
1072340623303.2214914376102.778508562449
1082507324317.6546393041755.345360695885
1092769124616.86705886293074.13294113707
1103059928285.99756629382313.00243370622
1113194828858.63909040843089.36090959162
1123294627424.44714444235521.5528555577
1133401230461.84857140533550.1514285947
1143293626812.63714563266123.36285436737
1153297428520.47257977704453.52742022297
1163095126833.09613914054117.90386085953
1172981225036.68358168314775.31641831692
1182901022961.86906791526048.13093208479
1193106826639.69944549924428.30055450077
1203244726989.42844174115457.57155825892
1213484429794.56255572915049.43744427086
1223567630490.01659536525185.98340463479
1233538728554.14498586296832.85501413705
1243648828777.17840038037710.82159961968
1253565232159.24123929693492.75876070313
1263348827913.99880037145574.00119962856
1273291429917.25830190462996.7416980954
1282978128325.765111211455.23488878999
1292795124905.81590270823045.18409729177


Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
160.2519298683572310.5038597367144630.748070131642769
170.1454534101586400.2909068203172790.85454658984136
180.08088069293773540.1617613858754710.919119307062265
190.1049987812577100.2099975625154200.89500121874229
200.05789968198084620.1157993639616920.942100318019154
210.03038575027011640.06077150054023280.969614249729884
220.04471499589961010.08942999179922030.95528500410039
230.06478398908609620.1295679781721920.935216010913904
240.05303364090799350.1060672818159870.946966359092007
250.09204500789134640.1840900157826930.907954992108654
260.1391814989526170.2783629979052340.860818501047383
270.1023474922299840.2046949844599670.897652507770016
280.1102928378292150.220585675658430.889707162170785
290.2066629870517590.4133259741035180.793337012948241
300.1546827516220940.3093655032441870.845317248377906
310.4846569864981470.9693139729962950.515343013501853
320.4231391831410890.8462783662821770.576860816858911
330.420508874518440.841017749036880.57949112548156
340.3622650291639940.7245300583279870.637734970836006
350.3372057135512690.6744114271025390.66279428644873
360.3625160759002480.7250321518004950.637483924099752
370.3186120003981570.6372240007963140.681387999601843
380.3396631537787280.6793263075574550.660336846221272
390.3833072273201090.7666144546402170.616692772679891
400.3567405383086510.7134810766173030.643259461691349
410.3208133889697540.6416267779395080.679186611030246
420.2680718542919550.536143708583910.731928145708045
430.2365089102825240.4730178205650470.763491089717476
440.1993660499698450.398732099939690.800633950030155
450.2240563440533280.4481126881066560.775943655946672
460.1920875596628610.3841751193257210.80791244033714
470.2020259387207120.4040518774414250.797974061279287
480.1666634268308690.3333268536617380.833336573169131
490.1351878888072100.2703757776144190.86481211119279
500.1174895717775370.2349791435550740.882510428222463
510.1166701310204730.2333402620409470.883329868979527
520.1111068999982380.2222137999964760.888893100001762
530.0870169325401740.1740338650803480.912983067459826
540.09321108174542670.1864221634908530.906788918254573
550.07329292464057720.1465858492811540.926707075359423
560.05714894654822470.1142978930964490.942851053451775
570.04312954619992840.08625909239985680.956870453800072
580.03953224839934530.07906449679869060.960467751600655
590.04019045269617020.08038090539234050.95980954730383
600.03120206040981910.06240412081963830.968797939590181
610.02349218358688780.04698436717377550.976507816413112
620.01724888578258280.03449777156516560.982751114217417
630.01219238855495530.02438477710991060.987807611445045
640.01017038929151130.02034077858302260.989829610708489
650.008315989042430730.01663197808486150.99168401095757
660.007739621133513380.01547924226702680.992260378866487
670.00709302099047050.0141860419809410.99290697900953
680.006514288103845690.01302857620769140.993485711896154
690.005326949150669530.01065389830133910.99467305084933
700.004873825374485230.009747650748970450.995126174625515
710.004636259364562730.009272518729125450.995363740635437
720.003137093361638530.006274186723277070.996862906638361
730.002441042785242120.004882085570484240.997558957214758
740.001636768022056410.003273536044112810.998363231977944
750.001161241290751670.002322482581503330.998838758709248
760.003852112062070200.007704224124140390.99614788793793
770.002771714843604050.005543429687208110.997228285156396
780.003571435175418380.007142870350836760.996428564824582
790.005440247915886750.01088049583177350.994559752084113
800.004177646009125980.008355292018251960.995822353990874
810.004515488672391740.009030977344783480.995484511327608
820.008621708884142630.01724341776828530.991378291115857
830.01003073013274600.02006146026549190.989969269867254
840.007658653833846760.01531730766769350.992341346166153
850.01358036650518990.02716073301037980.98641963349481
860.02106437415065300.04212874830130590.978935625849347
870.05598489559269410.1119697911853880.944015104407306
880.1302314621671260.2604629243342520.869768537832874
890.1055210544595130.2110421089190250.894478945540487
900.1326427546969180.2652855093938370.867357245303082
910.1176853200416490.2353706400832980.882314679958351
920.1067089458454930.2134178916909860.893291054154507
930.09560271785816630.1912054357163330.904397282141834
940.2416288811064340.4832577622128680.758371118893566
950.2654523490239860.5309046980479720.734547650976014
960.5132461184190280.9735077631619440.486753881580972
970.5600681328078350.879863734384330.439931867192165
980.5415777912483010.9168444175033990.458422208751699
990.660061822008190.6798763559836190.339938177991810
1000.7748876347319280.4502247305361440.225112365268072
1010.7249871259282590.5500257481434830.275012874071741
1020.976959083532340.04608183293532070.0230409164676604
1030.9664831407321360.06703371853572770.0335168592678639
1040.9505331133785760.09893377324284710.0494668866214236
1050.935626432065420.128747135869160.06437356793458
1060.9252856798080080.1494286403839840.0747143201919921
1070.9100971658793220.1798056682413560.0899028341206778
1080.9330770851870670.1338458296258660.0669229148129331
1090.8971648781063480.2056702437873040.102835121893652
1100.9110855520366860.1778288959266280.0889144479633139
1110.9519510457274880.09609790854502340.0480489542725117
1120.9751124166313160.04977516673736740.0248875833686837
1130.9571070765993420.08578584680131550.0428929234006577


Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level110.112244897959184NOK
5% type I error level280.285714285714286NOK
10% type I error level380.387755102040816NOK
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Nov/26/t1290756762zc5xqcmjkam1k75/10681g1290756779.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/26/t1290756762zc5xqcmjkam1k75/10681g1290756779.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Nov/26/t1290756762zc5xqcmjkam1k75/1sh481290756779.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/26/t1290756762zc5xqcmjkam1k75/1sh481290756779.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Nov/26/t1290756762zc5xqcmjkam1k75/2sh481290756779.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/26/t1290756762zc5xqcmjkam1k75/2sh481290756779.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Nov/26/t1290756762zc5xqcmjkam1k75/3sh481290756779.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/26/t1290756762zc5xqcmjkam1k75/3sh481290756779.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Nov/26/t1290756762zc5xqcmjkam1k75/4k7la1290756779.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/26/t1290756762zc5xqcmjkam1k75/4k7la1290756779.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Nov/26/t1290756762zc5xqcmjkam1k75/5k7la1290756779.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/26/t1290756762zc5xqcmjkam1k75/5k7la1290756779.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Nov/26/t1290756762zc5xqcmjkam1k75/6k7la1290756779.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/26/t1290756762zc5xqcmjkam1k75/6k7la1290756779.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Nov/26/t1290756762zc5xqcmjkam1k75/7vzke1290756779.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/26/t1290756762zc5xqcmjkam1k75/7vzke1290756779.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Nov/26/t1290756762zc5xqcmjkam1k75/8681g1290756779.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/26/t1290756762zc5xqcmjkam1k75/8681g1290756779.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Nov/26/t1290756762zc5xqcmjkam1k75/9681g1290756779.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/26/t1290756762zc5xqcmjkam1k75/9681g1290756779.ps (open in new window)


 
Parameters (Session):
par1 = 1 ; par2 = Include Monthly Dummies ; par3 = No Linear Trend ;
 
Parameters (R input):
par1 = 1 ; par2 = Include Monthly 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