Home » date » 2010 » Nov » 21 »

WS7 Celebrity

*The author of this computation has been verified*
R Software Module: /rwasp_multipleregression.wasp (opens new window with default values)
Title produced by software: Multiple Regression
Date of computation: Sun, 21 Nov 2010 18:23:11 +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/21/t1290364140wwnw17bonwxyiob.htm/, Retrieved Sun, 21 Nov 2010 19:29:11 +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/21/t1290364140wwnw17bonwxyiob.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 «
13 13 14 13 3 12 12 8 13 5 10 15 12 16 6 9 12 7 12 6 10 10 10 11 5 12 12 7 12 3 13 15 16 18 8 12 9 11 11 4 12 12 14 14 4 6 11 6 9 4 5 11 16 14 6 12 11 11 12 6 11 15 16 11 5 14 7 12 12 4 14 11 7 13 6 12 11 13 11 4 12 10 11 12 6 11 14 15 16 6 11 10 7 9 4 7 6 9 11 4 9 11 7 13 2 11 15 14 15 7 11 11 15 10 5 12 12 7 11 4 12 14 15 13 6 11 15 17 16 6 11 9 15 15 7 8 13 14 14 5 9 13 14 14 6 12 16 8 14 4 10 13 8 8 4 10 12 14 13 7 12 14 14 15 7 8 11 8 13 4 12 9 11 11 4 11 16 16 15 6 12 12 10 15 6 7 10 8 9 5 11 13 14 13 6 11 16 16 16 7 12 14 13 13 6 9 15 5 11 3 15 5 8 12 3 11 8 10 12 4 11 11 8 12 6 11 16 13 14 7 11 17 15 14 5 15 9 6 8 4 11 9 12 13 5 12 13 16 16 6 12 10 5 13 6 9 6 15 11 6 12 12 12 14 5 12 8 8 13 4 13 14 13 13 5 11 12 14 13 5 9 11 12 12 4 9 16 16 16 6 11 8 10 15 2 11 15 15 15 8 12 7 8 12 3 12 16 16 14 6 9 14 19 12 6 11 16 14 15 6 9 9 6 12 5 12 14 13 13 5 12 11 15 12 6 12 13 7 12 5 12 15 13 13 6 14 5 4 5 2 11 15 14 13 5 12 13 13 13 5 11 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
Celebrity[t] = + 0.423591992490579 -0.0194376966141400FindingFriends[t] + 0.154094039023444Popularity[t] + 0.103356510337141KnowingPeople[t] + 0.147677870542413Liked[t] + e[t]


Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STAT
H0: parameter = 0
2-tail p-value1-tail p-value
(Intercept)0.4235919924905790.7057130.60020.5492510.274625
FindingFriends-0.01943769661414000.047694-0.40760.684180.34209
Popularity0.1540940390234440.0383424.01899.2e-054.6e-05
KnowingPeople0.1033565103371410.0308483.35050.0010190.00051
Liked0.1476778705424130.0483843.05220.0026850.001342


Multiple Linear Regression - Regression Statistics
Multiple R0.677446083231663
R-squared0.458933195685922
Adjusted R-squared0.444600300207403
F-TEST (value)32.0195731821073
F-TEST (DF numerator)4
F-TEST (DF denominator)151
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation1.04372839595306
Sum Squared Residuals164.494713642332


Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolation
Forecast
Residuals
Prediction Error
135.54092790558286-2.54092790558286
254.786132501150720.213867498849284
366.14374966442514-0.143749664425136
464.593411210113581.40658878988642
554.428177095921570.571822904078433
634.53509812027116-1.53509812027116
786.79421835701611.2057816429839
844.33856417400698-0.338564174006982
945.55394943371597-1.55394943371597
1043.951240138968180.0487598610318215
1165.742632291665790.257367708334207
1264.794430122596281.20556987740372
1355.79934865644749-0.79934865644749
1444.24253508361137-0.242535083611369
1564.489806558561851.51019344143815
1644.85346527272815-0.853465272728152
1764.640336083572841.35966391642716
1866.28028745979897-0.280287459798969
1943.803314127211180.196685872788824
2043.766757519333070.233242480666932
2124.58699504163255-2.58699504163255
2276.183347117942860.816652882057141
2354.931938119474160.0680618805258387
2444.38742024972875-0.387420249728749
2565.817816151557590.182183848442409
2666.6410945194967-0.641094519496695
2775.362139394139341.63786060586066
2855.78579425919598-0.785794259195978
2965.766356562581840.233643437418162
3045.5501865277869-1.55018652778690
3144.24071258069038-0.240712580690376
3275.445146956401841.55485304359816
3376.009815382305280.990184617694725
3444.70978924858383-0.709789248583832
3544.33856417400698-0.338564174006982
3666.54415417764058-0.544154177640585
3765.288201262909820.711798737090177
3853.984421424004881.01557857599512
3965.579803298811150.420196701188854
4076.6918320481830.308167951817002
4165.611103130883310.388896869116691
4234.70130243596722-1.70130243596722
4333.50148326760178-0.501483267601777
4444.24822919180295-0.24822919180295
4564.5037982881991.496201711801
4676.086406776086750.913593223913251
4756.44721383578447-1.44721383578447
4843.320434920851620.679565079148381
4954.756714122043090.243285877956911
5066.21011223449853-0.210112234498526
5164.167874892092401.83212510790760
5264.348021188127641.65197881187237
5355.34723641304169-0.347236413041693
5444.16975634505694-0.169756345056941
5555.59166543426917-0.591665434269169
5655.4257092597877-0.425709259787702
5744.95609972277584-0.956099722775843
5866.73070744141128-0.730707441411277
5924.69126280343019-2.69126280343019
6086.286703628281.71329637172
6133.86798443549108-0.867984435491084
6266.37703861048403-0.377038610484032
6366.14187741220616-0.141877412206162
6466.3374411569663-0.337441156966303
6554.027772582706110.97222741729389
6655.61110313088331-0.611103130883309
6765.207856163944850.792143836055153
6854.689192159294610.310807840705394
6965.765197169906750.234802830093248
7022.07374982907046-0.0737498290704635
7155.88799137685803-0.887991376858033
7255.45700909185986-0.457009091859865
7355.10922356029525-0.109223560295248
7465.959515186004610.0404848139953913
7565.238433935727560.76156606427244
7665.50962807351070.490371926489297
7755.23915599601701-0.239155996017010
7855.38066583929298-0.380665839292981
7945.24199844974002-1.24199844974002
8023.35949950525095-1.35949950525095
8143.764627925153940.235372074846057
8265.580051440025740.419948559974264
8366.07357443912469-0.0735744391246866
8454.679211476801120.320788523198882
8534.48247913862032-1.48247913862032
8665.032442975342730.967557024657273
8743.900254469067290.0997455309327137
8855.48874625631766-0.488746256317664
8986.33744115696631.66255884303370
9044.4530607595127-0.453060759512697
9165.763504908113260.236495091886737
9265.30952041248850.690479587511501
9376.672394351568860.327605648431142
9466.11414209414646-0.114142094146455
9554.967961858233870.0320381417661339
9644.182588682019-0.182588682019002
9763.853518786779082.14648121322092
9833.60392852647842-0.603928526478421
9955.6252840516915-0.625284051691504
10065.250296071185580.749703928814417
10176.795188558520140.204811441479861
10276.42135997068930.578640029310696
10366.72404313171566-0.724043131715656
10434.36084432434413-1.36084432434413
10522.73579592921564-0.735795929215643
10685.724629514884982.27537048511502
10734.67279530832009-1.67279530832009
10886.132609589256561.86739041074344
10934.56302262950192-1.56302262950192
11044.66565707954961-0.665657079549607
11155.23201776724653-0.232017767246529
11275.587378859967261.41262114003274
11364.528681951790131.47131804820987
11465.906458871968130.093541128031866
11576.104874271196850.89512572880315
11666.18976328642389-0.189763286423890
11766.17032558980975-0.17032558980975
11865.075072073754510.92492792624549
11965.96549402210.0345059778999965
12045.3795064466179-1.37950644661789
12145.19955854249928-1.19955854249928
12255.79293248796646-0.792932487966459
12344.14487268146581-0.144872681465809
12465.791962286462420.208037713537580
12566.27368210014689-0.273682100146891
12654.727097351018850.272902648981154
12786.465681330894581.53431866910542
12865.50962807351070.490371926489297
12955.06418013980053-0.0641801398005265
13042.095317119863731.90468288013627
13186.465681330894581.53431866910542
13265.681278356183750.318721643816249
13344.92097803473107-0.920978034731066
13465.526214115656270.473785884343732
13565.912875040449160.087124959550835
13644.88948901148786-0.889489011487857
13765.984931718714140.0150682812858566
13834.38476698717679-1.38476698717679
13966.88364208775964-0.883642087759635
14055.59282482694425-0.592824826944255
14145.63242228046198-1.63242228046198
14265.708043472739420.291956527260581
14346.31158729187113-2.31158729187113
14443.381599665162610.618400334837386
14544.992845521825-0.992845521824998
14664.045080685141121.95491931485888
14754.317434215599350.682565784400647
14865.438482646706220.561517353293779
14966.24238226807473-0.242382268074728
15086.111290439677881.88870956032212
15175.373090278136861.62690972186314
15276.569037841231720.430962158768284
15344.29896672048925-0.298966720489253
15465.841977754859270.158022245140727
15565.586219467292180.413780532707823
15625.26331759931869-3.26331759931869


Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
80.4569425415262570.9138850830525140.543057458473743
90.581608144669770.836783710660460.41839185533023
100.4356314601843820.8712629203687650.564368539815618
110.5707932408418740.8584135183162520.429206759158126
120.769143892972110.4617122140557800.230856107027890
130.850263843176450.2994723136471010.149736156823551
140.7870574733148910.4258850533702180.212942526685109
150.8099990831076890.3800018337846220.190000916892311
160.7484016101014180.5031967797971650.251598389898582
170.7862863479790220.4274273040419560.213713652020978
180.7258965763396370.5482068473207270.274103423660363
190.6598457406054590.6803085187890820.340154259394541
200.6176058744728050.764788251054390.382394125527195
210.9324951936242310.1350096127515380.067504806375769
220.9277161053178190.1445677893643630.0722838946821814
230.9073711623420880.1852576753158240.0926288376579119
240.8780129298005980.2439741403988030.121987070199402
250.8474142922593570.3051714154812850.152585707740643
260.8150414142021850.3699171715956310.184958585797815
270.8356400833139210.3287198333721580.164359916686079
280.811676977462940.376646045074120.18832302253706
290.7705752250551050.458849549889790.229424774944895
300.779527458627270.4409450827454590.220472541372730
310.7446011236254450.510797752749110.255398876374555
320.7952865095481770.4094269809036470.204713490451823
330.792953561618860.4140928767622810.207046438381140
340.7705341080734380.4589317838531240.229465891926562
350.7332804789099270.5334390421801460.266719521090073
360.6900869781233170.6198260437533660.309913021876683
370.6561258956241630.6877482087516740.343874104375837
380.6603923930544050.679215213891190.339607606945595
390.6192231820812450.761553635837510.380776817918755
400.5746023469772310.8507953060455370.425397653022769
410.5345291235434230.9309417529131540.465470876456577
420.5715137879932150.856972424013570.428486212006785
430.5577464606888320.8845070786223360.442253539311168
440.5135295314933480.9729409370133040.486470468506652
450.5761286446431410.8477427107137180.423871355356859
460.5762541304800470.8474917390399060.423745869519953
470.60354944147390.79290111705220.3964505585261
480.5839149096481030.8321701807037950.416085090351897
490.5361285059317990.9277429881364020.463871494068201
500.4899279419712740.9798558839425480.510072058028726
510.5729243301683710.8541513396632580.427075669831629
520.6213087216797240.7573825566405510.378691278320276
530.5803458030421440.8393083939157130.419654196957856
540.5434046011169880.9131907977660240.456595398883012
550.5050766587352070.9898466825295860.494923341264793
560.4643073160879520.9286146321759050.535692683912048
570.4617893652553450.923578730510690.538210634744655
580.4325376901342310.8650753802684630.567462309865769
590.7246774426695720.5506451146608560.275322557330428
600.7933903702370080.4132192595259830.206609629762992
610.7833851823285590.4332296353428820.216614817671441
620.7505992577007450.4988014845985090.249400742299255
630.7121615106453750.575676978709250.287838489354625
640.6744290555151290.6511418889697430.325570944484871
650.6653338715133260.6693322569733490.334666128486674
660.6347315475496650.730536904900670.365268452450335
670.6167390012163880.7665219975672240.383260998783612
680.5772804705411030.8454390589177950.422719529458897
690.5345231435683310.9309537128633380.465476856431669
700.4889531970259020.9779063940518050.511046802974098
710.4751262062375420.9502524124750830.524873793762458
720.4363712467742930.8727424935485860.563628753225707
730.390847361434080.781694722868160.60915263856592
740.347629904742390.695259809484780.65237009525761
750.3271872499029910.6543744998059830.672812750097008
760.2962822661031940.5925645322063880.703717733896806
770.2584583662931450.5169167325862910.741541633706855
780.2267687116495510.4535374232991030.773231288350449
790.2463016887388550.492603377477710.753698311261145
800.2732238152403990.5464476304807980.726776184759601
810.2379084078413890.4758168156827790.76209159215861
820.2072125441119310.4144250882238630.792787455888069
830.1754490533732340.3508981067464690.824550946626766
840.1494671392772250.298934278554450.850532860722775
850.2032271935677750.4064543871355510.796772806432225
860.1981177521003600.3962355042007190.80188224789964
870.1670584008590330.3341168017180660.832941599140967
880.1449154741822610.2898309483645220.855084525817739
890.1882847430758600.3765694861517190.81171525692414
900.1643946535766990.3287893071533990.8356053464233
910.1395424319352280.2790848638704560.860457568064772
920.1331345608095710.2662691216191420.86686543919043
930.1120760191079430.2241520382158870.887923980892056
940.09118448115813830.1823689623162770.908815518841862
950.07328805722521970.1465761144504390.92671194277478
960.05959723263858150.1191944652771630.940402767361418
970.1140648631956020.2281297263912040.885935136804398
980.1046496585648990.2092993171297980.895350341435101
990.09036414368495330.1807282873699070.909635856315047
1000.07878486359201720.1575697271840340.921215136407983
1010.06422268151710450.1284453630342090.935777318482895
1020.05398301611882850.1079660322376570.946016983881172
1030.04487922341693410.08975844683386820.955120776583066
1040.06243903969415380.1248780793883080.937560960305846
1050.05706803648282960.1141360729656590.94293196351717
1060.1134633654613950.2269267309227890.886536634538605
1070.1415979998467680.2831959996935360.858402000153232
1080.2344029793143450.4688059586286890.765597020685655
1090.2620995856002190.5241991712004390.73790041439978
1100.2301401809829350.460280361965870.769859819017065
1110.1934063953198380.3868127906396770.806593604680162
1120.2772159982986290.5544319965972580.722784001701371
1130.2796754459816580.5593508919633150.720324554018342
1140.2375449083144490.4750898166288970.762455091685551
1150.2249067365638640.4498134731277270.775093263436136
1160.1872728955439490.3745457910878980.812727104456051
1170.1546699165509350.309339833101870.845330083449065
1180.1457173751519590.2914347503039170.854282624848041
1190.1176438571801240.2352877143602470.882356142819877
1200.1562356259307210.3124712518614430.843764374069279
1210.1712141703957160.3424283407914310.828785829604284
1220.1538781877537640.3077563755075280.846121812246236
1230.1223338654066320.2446677308132640.877666134593368
1240.0966451694932690.1932903389865380.903354830506731
1250.07712922581684150.1542584516336830.922870774183159
1260.06063891218792510.1212778243758500.939361087812075
1270.08456153404927010.1691230680985400.91543846595073
1280.07208643603214910.1441728720642980.927913563967851
1290.06089306605561730.1217861321112350.939106933944383
1300.0838556492399210.1677112984798420.91614435076008
1310.1184285906448080.2368571812896160.881571409355192
1320.0893306792549320.1786613585098640.910669320745068
1330.07169915036970980.1433983007394200.92830084963029
1340.05202553599359790.1040510719871960.947974464006402
1350.03593903601936230.07187807203872460.964060963980638
1360.0417629859750610.0835259719501220.95823701402494
1370.03137876819164260.06275753638328520.968621231808357
1380.02640894674742530.05281789349485060.973591053252575
1390.03063694858893530.06127389717787060.969363051411065
1400.02537973168652560.05075946337305120.974620268313474
1410.01932017786915440.03864035573830880.980679822130846
1420.01186890310771220.02373780621542450.988131096892288
1430.04267307013607790.08534614027215580.957326929863922
1440.02796650822450430.05593301644900850.972033491775496
1450.04814843274662460.09629686549324910.951851567253375
1460.03343124461142620.06686248922285240.966568755388574
1470.03346119857295490.06692239714590980.966538801427045
1480.02891844151925060.05783688303850120.97108155848075


Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level00OK
5% type I error level20.0141843971631206OK
10% type I error level150.106382978723404NOK
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Nov/21/t1290364140wwnw17bonwxyiob/10f6rb1290363780.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/21/t1290364140wwnw17bonwxyiob/10f6rb1290363780.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Nov/21/t1290364140wwnw17bonwxyiob/1rnbz1290363780.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/21/t1290364140wwnw17bonwxyiob/1rnbz1290363780.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Nov/21/t1290364140wwnw17bonwxyiob/2rnbz1290363780.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/21/t1290364140wwnw17bonwxyiob/2rnbz1290363780.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Nov/21/t1290364140wwnw17bonwxyiob/3jwt21290363780.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/21/t1290364140wwnw17bonwxyiob/3jwt21290363780.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Nov/21/t1290364140wwnw17bonwxyiob/4jwt21290363780.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/21/t1290364140wwnw17bonwxyiob/4jwt21290363780.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Nov/21/t1290364140wwnw17bonwxyiob/5jwt21290363780.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/21/t1290364140wwnw17bonwxyiob/5jwt21290363780.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Nov/21/t1290364140wwnw17bonwxyiob/6uos51290363780.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/21/t1290364140wwnw17bonwxyiob/6uos51290363780.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Nov/21/t1290364140wwnw17bonwxyiob/7nfrq1290363780.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/21/t1290364140wwnw17bonwxyiob/7nfrq1290363780.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Nov/21/t1290364140wwnw17bonwxyiob/8nfrq1290363780.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/21/t1290364140wwnw17bonwxyiob/8nfrq1290363780.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Nov/21/t1290364140wwnw17bonwxyiob/9nfrq1290363780.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/21/t1290364140wwnw17bonwxyiob/9nfrq1290363780.ps (open in new window)


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