Home » date » 2010 » Nov » 26 »

Time Series Analysis WS8 1

*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:10:57 +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/t1290755734ev4702qweumnfoz.htm/, Retrieved Fri, 26 Nov 2010 08:15: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/Nov/26/t1290755734ev4702qweumnfoz.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 time8 seconds
R Server'George Udny Yule' @ 72.249.76.132


Multiple Linear Regression - Estimated Regression Equation
OPENVAC[t] = + 13329.2227586361 + 1.26119630769380OntvangenJobs[t] + e[t]


Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STAT
H0: parameter = 0
2-tail p-value1-tail p-value
(Intercept)13329.22275863611069.45068912.463600
OntvangenJobs1.261196307693800.06425919.626800


Multiple Linear Regression - Regression Statistics
Multiple R0.867211275297138
R-squared0.752055396002488
Adjusted R-squared0.750103076285972
F-TEST (value)385.211187307285
F-TEST (DF numerator)1
F-TEST (DF denominator)127
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation3965.95767870293
Sum Squared Residuals1997560179.27637


Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolation
Forecast
Residuals
Prediction Error
14388045139.1160312889-1259.11603128891
24311040234.32359066782875.67640933216
34449638273.1633322046222.836667796
44416446048.4385691363-1884.43856913626
54039940694.6602429761-295.660242976089
63676338650.2610282044-1887.26102820444
73790345707.9155660589-7804.91556605893
83553237410.5050577414-1878.50505774144
93553337677.8786749725-2144.87867497253
103211032805.8773383514-695.877338351391
113337432472.9215131202901.078486879771
123546236393.9808337402-931.980833740243
133350836363.7121223556-2855.71212235559
143608034020.40938266052059.59061733948
153456033102.25847065941457.74152934057
163873738120.5585789731616.441421026949
173814437066.1984657411077.80153425896
183759437913.7223845113-319.722384511268
193642439912.7185322059-3488.71853220594
203684337665.2667118956-822.26671189559
213724638534.2309678966-1288.23096789662
223866134734.24649281523926.75350718479
234045434707.76137035365746.23862964636
244492842495.64857036282432.35142963717
254844144720.39885713473720.60114286531
264814039867.3154651298272.68453487104
274599839615.07620359026382.9237964098
284736943476.85929774863892.14070225140
294955441804.51299374667749.48700625337
304751045429.19118205862080.80881794140
314487340984.73539374573888.26460625434
324534445145.4220128275198.577987172502
334241346385.1779832905-3972.1779832905
343691235319.44157958511592.55842041487
354345240139.73386759083312.26613240918
364214245663.7736952896-3521.77369528965
374438242987.51513036341394.48486963659
384363643460.4637457486175.536254251414
394416744376.0922651343-209.092265134281
404442346339.7749162135-1916.77491621352
414286842764.2833839016103.716616098390
424390843169.1273986713738.872601328681
434201346750.9249125217-4737.9249125217
443884641667.042596208-2821.04259620801
453508742542.3128337475-7455.3128337475
463302633722.7670540448-696.767054044782
473464636367.4957112787-1721.49571127867
483713539260.6800411282-2125.68004112824
493798539022.3139389741-1037.31393897411
504312137313.3929420495807.60705795098
514372236335.96580358637386.03419641367
524363039734.88985282113895.11014717889
534223441157.51928789971076.48071210029
543935134430.2981826614920.701817339
553932741003.6533383611-1676.65333836107
563570437612.2964669725-1908.29646697245
573046634009.0586158913-3543.05861589127
582815530536.9851808103-2381.98518081025
592925731458.9196817344-2201.91968173442
602999832012.584860812-2014.58486081199
613252933585.2966565062-1056.29665650616
623478731974.74897158122812.25102841882
633385529502.80420850134352.19579149866
643455636386.4136558941-1830.41365589408
653134832166.4508103506-818.450810350636
663080533131.2659857364-2326.26598573639
672835334005.2750269682-5652.27502696819
682451429831.9764448094-5317.97644480942
692110627745.9577518839-6639.95775188388
702134625101.22909465-3755.22909464999
712333527102.7476349600-3767.74763496004
722437928116.7494663459-3737.74946634586
732629029821.8868743479-3531.88687434787
743008428203.77201157671880.22798842327
752942927261.65836972952167.34163027054
763063234513.5371389688-3881.53713896879
772734927810.2787635763-461.278763576262
782726429292.1844251165-2028.18442511647
792747432596.5187512742-5122.51875127422
802448228949.1390294238-4467.13902942376
812145328458.5336657309-7005.53366573087
821878823916.9657617255-5128.96576172551
831928224589.1833937263-5307.1833937263
841971325861.7304681893-6148.73046818935
852191727792.6220152685-5875.62201526855
862381225378.6922823426-1566.69228234262
872378524965.0198934191-1180.01989341906
882469627228.8672657294-2532.86726572942
892456226023.1635955742-1461.16359557415
902358025864.2528608047-2284.25286080473
912493927428.1362823450-2489.13628234504
922389928391.6902614231-4492.6902614231
932145426940.0533112675-5486.05331126754
941976123519.6889248020-3758.68892480197
951981524179.2945937258-4364.29459372582
962078027909.9132718841-7129.91327188407
972346226507.4629777286-3045.46297772857
982500523667.24889280211337.75110719786
992472522916.83708972431808.16291027567
1002619825337.0728041887860.927195811273
1012754326460.79871434391082.2012856561
1022647127025.8146601907-554.814660190721
1032655827880.9057568071-1322.90575680712
1042531727732.0845924992-2415.08459249925
1052289626455.7539291131-3559.75392911312
1062224820893.87821218351354.12178781652
1072340623867.7791057255-461.779105725454
1082507326658.8065346518-1585.80653465183
1092769125512.37909095822178.62090904184
1103059925063.39320541925535.60679458083
1113194824823.76590695747124.23409304265
1123294626561.69441895946384.3055810406
1133401228952.92261834685059.07738165316
1143293625944.96942449716991.03057550286
1153297431022.54575927241951.45424072764
1163095129033.63918203921917.36081796075
1172981228882.295625116929.70437488401
1182901023499.50978387895510.49021612114
1193106827115.35959803703952.64040196302
1203244729259.39332111643187.60667888357
1213484430552.11953650264291.88046349742
1223567627208.68812480638467.31187519368
1233538724527.384774649310859.6152253507
1243648827878.38336419178609.61663580827
1253565230605.08978142575046.91021857428
1263348827016.98628603696471.01371396314
1273291432382.1153789663531.884621033724
1282978130486.5373285025-705.537328502499
1292795128754.9147980389-803.914798038916


Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
50.1153302923866430.2306605847732860.884669707613357
60.3031171472414130.6062342944828270.696882852758587
70.4237875665962750.847575133192550.576212433403725
80.4656079257704220.9312158515408440.534392074229578
90.43288107338390.86576214676780.5671189266161
100.3847723445544470.7695446891088940.615227655445553
110.2888323772436520.5776647544873040.711167622756348
120.2134775185913080.4269550371826170.786522481408692
130.1854992238135580.3709984476271160.814500776186442
140.138156021429410.276312042858820.86184397857059
150.0941933890105250.188386778021050.905806610989475
160.06397300701132650.1279460140226530.936026992988674
170.04277821748848460.08555643497696930.957221782511515
180.02645920236207660.05291840472415310.973540797637923
190.02200442705383010.04400885410766030.97799557294617
200.0133779203551860.0267558407103720.986622079644814
210.00803817106937750.01607634213875500.991961828930622
220.008229190134106530.01645838026821310.991770809865893
230.01460940175435310.02921880350870630.985390598245647
240.01770334962427190.03540669924854390.982296650375728
250.03226620486225700.06453240972451410.967733795137743
260.1322700901336500.2645401802672990.86772990986635
270.1998585094203880.3997170188407760.800141490579612
280.2055264031881310.4110528063762620.794473596811869
290.3479004892150.695800978430.652099510785
300.3054339614981290.6108679229962590.694566038501871
310.292263349460860.584526698921720.70773665053914
320.2441757195013560.4883514390027120.755824280498644
330.2502456691245720.5004913382491440.749754330875428
340.2079616477675420.4159232955350840.792038352232458
350.1902781990844500.3805563981689000.80972180091555
360.1819836322729790.3639672645459580.81801636772702
370.1511106262780110.3022212525560220.848889373721989
380.1206797650170980.2413595300341970.879320234982901
390.09494525865253750.1898905173050750.905054741347463
400.07624602630614840.1524920526122970.923753973693852
410.05850913422652350.1170182684530470.941490865773477
420.0450814253835570.0901628507671140.954918574616443
430.04689049825920640.09378099651841270.953109501740794
440.0416514047969830.0833028095939660.958348595203017
450.08738867358090080.1747773471618020.9126113264191
460.07400793432921630.1480158686584330.925992065670784
470.06424033904144060.1284806780828810.93575966095856
480.05485723475683460.1097144695136690.945142765243165
490.04307296485242740.08614592970485480.956927035147573
500.05547555053691050.1109511010738210.94452444946309
510.09465255569642980.1893051113928600.90534744430357
520.097496497170160.194992994340320.90250350282984
530.08194243487077110.1638848697415420.918057565129229
540.0891936923347130.1783873846694260.910806307665287
550.07444874759933340.1488974951986670.925551252400667
560.06507819957726960.1301563991545390.93492180042273
570.07236574828039430.1447314965607890.927634251719606
580.0723759627142060.1447519254284120.927624037285794
590.06695923123730040.1339184624746010.9330407687627
600.05897344024144860.1179468804828970.941026559758551
610.04764256293019120.09528512586038250.952357437069809
620.0419404014853720.0838808029707440.958059598514628
630.04183549428538930.08367098857077860.95816450571461
640.03451201559688360.06902403119376710.965487984403116
650.0274133160988360.0548266321976720.972586683901164
660.02337947016743300.04675894033486590.976620529832567
670.03122942747850430.06245885495700860.968770572521496
680.04103355343006050.0820671068601210.95896644656994
690.06720377020991420.1344075404198280.932796229790086
700.0659271059132560.1318542118265120.934072894086744
710.06256067359179090.1251213471835820.937439326408209
720.05809838619835780.1161967723967160.941901613801642
730.05197565421121470.1039513084224290.948024345788785
740.04364627437525550.0872925487505110.956353725624745
750.03693892538293750.07387785076587490.963061074617062
760.03377216090233010.06754432180466030.96622783909767
770.02527920360145790.05055840720291580.974720796398542
780.01968514332953140.03937028665906280.980314856670469
790.02283952443761110.04567904887522230.977160475562389
800.02386811683951130.04773623367902260.976131883160489
810.04160590841555270.08321181683110540.958394091584447
820.04570950585615610.09141901171231220.954290494143844
830.05315193593157670.1063038718631530.946848064068423
840.07351295020676030.1470259004135210.92648704979324
850.09854397623220730.1970879524644150.901456023767793
860.08343933981399950.1668786796279990.916560660186
870.06944237796327740.1388847559265550.930557622036723
880.06208578707762130.1241715741552430.937914212922379
890.05184657427176370.1036931485435270.948153425728236
900.04590542870549820.09181085741099640.954094571294502
910.04148672865788350.0829734573157670.958513271342117
920.05094816897434320.1018963379486860.949051831025657
930.07861889360068570.1572377872013710.921381106399314
940.09277039314471650.1855407862894330.907229606855284
950.1299969434149690.2599938868299390.87000305658503
960.3031429579421890.6062859158843780.696857042057811
970.3546471883958030.7092943767916060.645352811604197
980.3342220128477860.6684440256955720.665777987152214
990.3156472367865000.6312944735730010.6843527632135
1000.2928706737065820.5857413474131650.707129326293418
1010.2644707988141000.5289415976282010.7355292011859
1020.2566472342291860.5132944684583710.743352765770814
1030.2648442482936360.5296884965872720.735155751706364
1040.3226683478457330.6453366956914670.677331652154267
1050.5031904227660200.993619154467960.49680957723398
1060.5846215344774470.8307569310451060.415378465522553
1070.7650765197665870.4698469604668270.234923480233413
1080.909825985700980.1803480285980410.0901740142990204
1090.9415968424487890.1168063151024230.0584031575512114
1100.9373964826897340.1252070346205330.0626035173102663
1110.92871462913410.1425707417317980.0712853708658992
1120.9119444900083760.1761110199832490.0880555099916245
1130.8904704852493840.2190590295012310.109529514750616
1140.8652716560552420.2694566878895150.134728343944757
1150.8118436417544130.3763127164911740.188156358245587
1160.7623299771086880.4753400457826240.237670022891312
1170.744177033238070.511645933523860.25582296676193
1180.8086255220798090.3827489558403830.191374477920191
1190.7912088102120620.4175823795758770.208791189787938
1200.7089146344208950.582170731158210.291085365579105
1210.6421799448048080.7156401103903840.357820055195192
1220.5712602276551560.8574795446896880.428739772344844
1230.4748217380544380.9496434761088750.525178261945562
1240.5094399052633940.9811201894732120.490560094736606


Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level00OK
5% type I error level100.0833333333333333NOK
10% type I error level320.266666666666667NOK
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Nov/26/t1290755734ev4702qweumnfoz/10tuzm1290755448.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/26/t1290755734ev4702qweumnfoz/10tuzm1290755448.ps (open in new window)


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


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


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


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


http://www.freestatistics.org/blog/date/2010/Nov/26/t1290755734ev4702qweumnfoz/58cjy1290755448.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/26/t1290755734ev4702qweumnfoz/58cjy1290755448.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Nov/26/t1290755734ev4702qweumnfoz/68cjy1290755448.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/26/t1290755734ev4702qweumnfoz/68cjy1290755448.ps (open in new window)


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


http://www.freestatistics.org/blog/date/2010/Nov/26/t1290755734ev4702qweumnfoz/8il0j1290755448.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/26/t1290755734ev4702qweumnfoz/8il0j1290755448.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Nov/26/t1290755734ev4702qweumnfoz/9tuzm1290755448.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/26/t1290755734ev4702qweumnfoz/9tuzm1290755448.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