Home » date » 2010 » Dec » 17 »

MR Paper (monthly dummies)

*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, 17 Dec 2010 16:35:58 +0000
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2010/Dec/17/t1292603812yc05dpn58qnw2e6.htm/, Retrieved Fri, 17 Dec 2010 17:36:55 +0100
 
BibTeX entries for LaTeX users:
@Manual{KEY,
    author = {{YOUR NAME}},
    publisher = {Office for Research Development and Education},
    title = {Statistical Computations at FreeStatistics.org, URL http://www.freestatistics.org/blog/date/2010/Dec/17/t1292603812yc05dpn58qnw2e6.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 «
15 10 12 16 6 2 0 0 12 9 7 12 6 1 1 2 9 12 11 11 4 1 2 1 10 12 11 12 6 0 0 0 13 9 14 14 6 0 0 0 16 11 16 16 7 1 0 0 14 12 13 13 6 0 0 0 16 11 13 14 7 1 1 0 10 12 5 13 6 0 0 0 8 12 8 13 4 2 0 1 12 11 14 13 5 1 0 0 15 11 15 15 8 0 0 0 14 12 8 14 4 0 1 0 14 6 13 12 6 1 1 2 12 13 12 12 6 1 2 1 12 11 11 12 5 0 0 0 10 12 8 11 4 0 0 0 4 10 4 10 2 0 0 0 14 11 15 15 8 0 1 0 15 12 12 16 7 0 0 0 16 12 14 14 6 0 0 0 12 12 9 13 4 0 1 0 12 11 16 13 4 0 0 0 12 12 10 13 4 0 0 1 12 12 8 13 5 1 0 1 12 12 14 14 4 0 0 0 11 6 6 9 4 3 2 1 11 5 16 14 6 1 0 0 11 12 11 12 6 1 1 0 11 14 7 13 6 1 1 0 11 12 13 11 4 3 1 1 11 9 7 13 2 0 0 0 15 11 14 15 7 0 0 0 15 11 17 16 6 0 0 0 9 11 15 15 7 0 0 0 16 12 8 14 4 0 0 0 13 10 8 8 4 0 2 1 9 12 11 11 4 1 0 0 16 11 16 15 6 0 0 0 12 12 10 15 6 0 0 0 15 9 5 11 3 0 0 2 5 15 8 12 3 0 0 0 11 11 8 12 6 2 2 0 17 11 15 14 5 2 2 0 9 15 6 8 4 0 1 1 13 12 16 16 6 0 0 0 16 9 16 16 6 0 0 0 16 12 16 14 6 0 0 0 14 9 19 12 6 2 0 2 16 11 14 15 6 1 0 0 11 12 15 1 etc...
 
Output produced by software:

Enter (or paste) a matrix (table) containing all data (time) series. Every column represents a different variable and must be delimited by a space or Tab. Every row represents a period in time (or category) and must be delimited by hard returns. The easiest way to enter data is to copy and paste a block of spreadsheet cells. Please, do not use commas or spaces to seperate groups of digits!


Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time6 seconds
R Server'RServer@AstonUniversity' @ vre.aston.ac.uk


Multiple Linear Regression - Estimated Regression Equation
Popularity[t] = + 0.100276382934112 + 0.157263405271108FindingFriends[t] + 0.236372152928434KnowingPeople[t] + 0.323351350417035Liked[t] + 0.666471137832579Celebrity[t] -0.0593960178122206B[t] + 0.20312779537524`2B`[t] + 0.500771877991365`3B`[t] -0.104817868555572M1[t] -0.531890927774699M2[t] -0.906326361891386M3[t] -0.42086638214816M4[t] + 0.265856736325493M5[t] -1.09338003746871M6[t] -1.29051116073166M7[t] + 0.50770470226122M8[t] -0.960871026350095M9[t] -0.397549712140203M10[t] -0.768379620810554M11[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.1002763829341121.5754660.06360.9493430.474671
FindingFriends0.1572634052711080.1017281.54590.1244310.062216
KnowingPeople0.2363721529284340.063313.73360.0002760.000138
Liked0.3233513504170350.1019423.17190.0018690.000935
Celebrity0.6664711378325790.1649944.03948.9e-054.4e-05
B-0.05939601781222060.22941-0.25890.7960950.398048
`2B`0.203127795375240.2815290.72150.4718220.235911
`3B`0.5007718779913650.3409411.46880.1441810.072091
M1-0.1048178685555720.842703-0.12440.9011940.450597
M2-0.5318909277746990.837472-0.63510.5264130.263207
M3-0.9063263618913860.841743-1.07670.2834950.141747
M4-0.420866382148160.847106-0.49680.6201060.310053
M50.2658567363254930.8317780.31960.749740.37487
M6-1.093380037468710.836023-1.30780.1931190.09656
M7-1.290511160731660.850436-1.51750.1314520.065726
M80.507704702261220.8535390.59480.5529430.276471
M9-0.9608710263500950.843937-1.13860.2568750.128437
M10-0.3975497121402030.835074-0.47610.6347860.317393
M11-0.7683796208105540.838042-0.91690.3608190.18041


Multiple Linear Regression - Regression Statistics
Multiple R0.738146206087162
R-squared0.544859821560871
Adjusted R-squared0.485060382057919
F-TEST (value)9.1114536539089
F-TEST (DF numerator)18
F-TEST (DF denominator)137
p-value6.66133814775094e-16
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation2.10730300856287
Sum Squared Residuals608.379457876042


Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolation
Forecast
Residuals
Prediction Error
11513.45821480027441.54178519972559
21211.66267973864410.337320261355937
3910.7515854233561-1.75158542335612
41012.0457075782519-2.04570757825191
51313.6164596405316-0.616459640531612
61614.29827180399091.70172819600908
71411.97215845594232.02784154405769
81614.74666517947671.25333482052328
91010.4108213668964-0.410821366896409
10810.7322967065934-2.73229670659337
111211.84753158787590.152468412124053
121515.557795493759-0.557795493758962
131411.16952785360342.83047214639665
141412.60912244040131.39087755959866
151212.8015146076379-0.801514607637853
161211.22197303514820.778026964851774
171010.3670206118581-0.367020611858071
1846.09147478972572-2.09147478972572
191414.4704121284025-0.47041212840254
201515.1705273550904-0.170527355090445
211612.86152209366943.13847790633065
221210.78981681253011.21018318746988
231211.71320077371250.286799226287543
241211.72138276021490.27861723978512
251211.75089570582280.249104294177201
261211.95755991657960.0424400834204132
27117.860649490628793.13935050937121
281112.7140311890182-1.71403118901817
291112.8761624742886-1.87616247428859
301111.2093152497399-0.209315249739901
311110.5182250993730.481774900626972
32119.214466634220951.78553336577905
331513.69408117664791.30591882335215
341514.62339916222750.376600837772497
35914.1229447351158-5.12294473511583
361611.07121792678374.92878207321632
37139.618792613925533.38120738607447
38910.218993388731-1.21899338873096
391613.55489900913092.44510099086915
401212.7793894765746-0.779389476574584
41159.52118655540965.47881344459041
4259.13645426646165-4.13645426646165
431110.5971464907380.402853509261961
441714.03019898723152.96980101276855
4598.873184381254440.126815618745559
461314.5442904145702-1.54429041457018
471613.70167029008652.2983297099135
481614.29513742587631.70486257412369
491414.6636948198169-0.663694819816935
501613.39719411957852.60280588042155
511112.5057362102224-1.50573621022242
521111.8686757359823-0.868675735982295
531114.1147234759694-3.11472347596939
541211.61839061573460.381609384265384
551213.0894064173536-1.08940641735356
561213.1741873888851-1.17418738888512
571413.11458923630390.885410763696123
581010.9692342642606-0.969234264260633
5999.25842508978436-0.258425089784361
601212.4846117254544-0.484611725454421
611010.3988061050514-0.398806105051366
621412.8344528760941.16554712390603
6389.44267685207114-1.44267685207114
641614.56832536123711.43167463876289
651416.3459025095284-2.34590250952838
661410.11936039492353.88063960507647
671210.40284402734871.59715597265128
681414.3498105521258-0.349810552125769
69710.6235374819635-3.62353748196349
701913.98456691122475.01543308877529
711512.36777392437782.6322260756222
72811.7376890646163-3.73768906461626
731014.7490889706227-4.74908897062267
741313.0036142685323-0.00361426853231367
751310.75056539948442.24943460051561
761010.5049861265316-0.504986126531649
77129.78752867151412.21247132848591
781516.6892681443786-1.68926814437861
79710.3346234696617-3.33462346966168
801415.0559092707721-1.05590927077206
81108.099954590148871.90004540985113
8269.76305267609099-3.76305267609099
831111.0544536717411-0.0544536717410568
84129.864791722604142.13520827739586
851414.632139809958-0.632139809958001
861213.3190951691181-1.31909516911807
871413.90588924637770.094110753622328
88119.98541012826011.01458987173991
891010.0418478826802-0.0418478826801826
901312.7491702048540.250829795146043
9189.4494849658037-1.44948496580371
92912.7102676229031-3.71026762290307
93611.6560499795334-5.65604997953335
941213.2277757023603-1.2277757023603
951411.9850822633022.01491773669805
961110.898213621850.101786378149977
97810.7136658937449-2.71366589374489
9879.22615316034233-2.22615316034233
99910.1471529489625-1.14715294896246
1001412.2596678564441.74033214355596
1011311.12047094717931.87952905282075
1021512.16928957920532.83071042079473
10354.906640535462030.0933594645379717
1041513.20795167069851.79204832930148
1051311.83845524786651.16154475213346
1061211.56959514561680.430404854383241
10767.46770165538778-1.46770165538778
108710.1881430730212-3.18814307302118
109138.944109760776164.05589023922384
1101614.93326419061881.06673580938115
1111012.8457825503456-2.84578255034555
1121615.18744488239480.812555117605199
1131513.92311600124261.07688399875745
11487.938852602156930.0611473978430705
1151111.5597085507878-0.559708550787802
1161314.4077852771954-1.40778527719541
1171614.6671529680381.33284703196203
118118.660202457066352.33979754293365
1191414.2454332692655-0.245433269265491
120910.560320846528-1.56032084652795
121810.4581464157102-2.45814641571018
122810.7541093361781-2.75410933617805
1231111.343532468272-0.343532468271953
1241213.3519650571308-1.35196505713083
1251111.87270936418-0.872709364179983
1261414.0206638313973-0.0206638313973066
1271111.844687502302-0.844687502302047
1281413.33240488419980.667595115800225
1291314.3410371676024-1.34103716760242
1301210.86739504661921.13260495338081
13145.96752687486148-1.96752687486148
1321513.45414169621661.5458583037834
1331011.6131027590622-1.61310275906218
1341313.9096319400772-0.909631940077212
1351513.82497013874541.17502986125463
1361213.2681602404261-1.26816024042611
1371314.0882498563449-1.08824985634494
13887.549244581293350.450755418706653
139109.883280449233070.116719550766925
1401514.64557872286640.354421277133577
1411614.04507141389471.95492858610533
1421614.97438939947431.02561060052568
1431412.59009373322681.40990626677316
1441413.66293066946870.337069330531349
1451210.82981449163151.17018550836847
1461513.17412945510481.82587054489521
1471312.26504565476540.734954345234571
1481613.24426333260022.75573666739982
1491414.3246220092734-0.324622009273371
15089.41024393613823-1.41024393613823
1511612.97138190759153.02861809240854
1521616.9542464543343-0.954246454334277
1531212.7745428961807-0.774542896180748
1541112.2939853013656-1.29398530136558
1551615.67816213126250.321837868737497
156910.5036239736069-1.50362397360694


Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
220.3237862089701210.6475724179402410.67621379102988
230.1981773974693490.3963547949386990.80182260253065
240.1498630513901410.2997261027802830.850136948609859
250.09611102601490670.1922220520298130.903888973985093
260.1959610377244330.3919220754488660.804038962275567
270.3364837679544780.6729675359089550.663516232045522
280.3796815031579960.7593630063159910.620318496842004
290.3807179515464430.7614359030928860.619282048453557
300.2968311712997680.5936623425995370.703168828700232
310.2291996441177990.4583992882355970.770800355882201
320.1785523508608570.3571047017217150.821447649139143
330.130651026053070.261302052106140.86934897394693
340.09153504251223980.183070085024480.90846495748776
350.200531744053980.4010634881079610.79946825594602
360.3949000358111420.7898000716222830.605099964188858
370.3618690186883020.7237380373766040.638130981311698
380.3420669497243910.6841338994487820.657933050275609
390.386070050024740.772140100049480.61392994997526
400.3333971012710010.6667942025420010.666602898728999
410.6213303334199530.7573393331600950.378669666580047
420.7403399157610340.5193201684779320.259660084238966
430.6874059788088930.6251880423822150.312594021191107
440.6800950017376810.6398099965246380.319904998262319
450.6227810267958240.7544379464083510.377218973204175
460.591417488579880.817165022840240.40858251142012
470.5940845445907650.8118309108184690.405915455409235
480.5487378360296690.9025243279406620.451262163970331
490.5191808999194370.9616382001611270.480819100080563
500.5613127396828930.8773745206342150.438687260317108
510.5158941475602520.9682117048794960.484105852439748
520.4695869529504720.9391739059009450.530413047049528
530.7104433740869390.5791132518261230.289556625913061
540.679234998279720.6415300034405610.320765001720281
550.6488800442454570.7022399115090860.351119955754543
560.6086768558084460.7826462883831070.391323144191554
570.5706154056819390.8587691886361220.429384594318061
580.5265091140581410.9469817718837180.473490885941859
590.4741024074398480.9482048148796960.525897592560152
600.5104218938278650.979156212344270.489578106172135
610.4804460354852450.960892070970490.519553964514755
620.4394034517224820.8788069034449640.560596548277518
630.4019209338845590.8038418677691180.598079066115441
640.3990327090600420.7980654181200830.600967290939958
650.4290503610962520.8581007221925030.570949638903748
660.55492833653340.8901433269332010.445071663466601
670.5236098402807770.9527803194384460.476390159719223
680.4729870526194860.9459741052389730.527012947380514
690.6546077736201450.690784452759710.345392226379855
700.8239086309166310.3521827381667380.176091369083369
710.8358861320411560.3282277359176880.164113867958844
720.8965281244005980.2069437511988050.103471875599402
730.9672678221485190.06546435570296260.0327321778514813
740.9565316340559440.08693673188811150.0434683659440557
750.9537910262134460.09241794757310860.0462089737865543
760.9418799999452650.116240000109470.0581200000547348
770.9441988058980180.1116023882039640.0558011941019821
780.9417815135926340.1164369728147320.0582184864073662
790.9657425784953430.06851484300931320.0342574215046566
800.9574937991510660.08501240169786760.0425062008489338
810.96173642610340.07652714779319810.0382635738965991
820.9846558226734080.03068835465318380.0153441773265919
830.9795987678996150.04080246420077090.0204012321003854
840.9822303324289890.03553933514202230.0177696675710111
850.9770789838046920.04584203239061680.0229210161953084
860.9723387435762070.0553225128475870.0276612564237935
870.963074191463940.07385161707211860.0369258085360593
880.9571324157646480.08573516847070410.042867584235352
890.952296605479260.09540678904148130.0477033945207406
900.9377102503212730.1245794993574550.0622897496787274
910.9282529209398120.1434941581203760.0717470790601879
920.9496664564066070.1006670871867850.0503335435933926
930.9930986677976130.01380266440477350.00690133220238673
940.9925371203714630.01492575925707370.00746287962853684
950.9913800263971470.01723994720570610.00861997360285305
960.9889406704027950.02211865919440980.0110593295972049
970.9922698109181660.01546037816366820.00773018908183411
980.9916102914858680.01677941702826340.00838970851413171
990.9889668817841740.02206623643165260.0110331182158263
1000.9857056477433160.02858870451336740.0142943522566837
1010.9907270925383870.01854581492322530.00927290746161265
1020.9915722598872470.01685548022550690.00842774011275347
1030.9886042910022270.02279141799554690.0113957089977735
1040.9870231361918830.02595372761623360.0129768638081168
1050.9841844374982180.03163112500356460.0158155625017823
1060.9782834149543850.04343317009123010.021716585045615
1070.9709615461611850.05807690767762910.0290384538388145
1080.9770993544995930.04580129100081360.0229006455004068
1090.9960532210470570.007893557905886930.00394677895294347
1100.9948506778562180.01029864428756370.00514932214378185
1110.9980320136933460.00393597261330820.0019679863066541
1120.996744251316620.006511497366758710.00325574868337935
1130.9959983549456180.008003290108763540.00400164505438177
1140.9932372437501930.01352551249961370.00676275624980684
1150.98996514890140.02006970219720180.0100348510986009
1160.9843858315657070.03122833686858550.0156141684342927
1170.9799676847274940.04006463054501160.0200323152725058
1180.9866322851178110.02673542976437710.0133677148821886
1190.979580920757630.04083815848473930.0204190792423697
1200.9694420576978380.0611158846043240.030557942302162
1210.9690290554925850.06194188901482930.0309709445074146
1220.956712673764440.08657465247112140.0432873262355607
1230.9430338132670050.1139323734659890.0569661867329947
1240.9678090261461560.06438194770768850.0321909738538443
1250.956422408613240.08715518277352140.0435775913867607
1260.9288276848924960.1423446302150080.0711723151075038
1270.9037796959153070.1924406081693860.096220304084693
1280.8628795975841090.2742408048317830.137120402415891
1290.8278217511345480.3443564977309050.172178248865452
1300.8516723761482460.2966552477035080.148327623851754
1310.7857881462755780.4284237074488440.214211853724422
1320.7500351877486580.4999296245026840.249964812251342
1330.9827694135270770.03446117294584580.0172305864729229
1340.9733794126862580.05324117462748470.0266205873137423


Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level40.0353982300884956NOK
5% type I error level310.274336283185841NOK
10% type I error level480.424778761061947NOK
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Dec/17/t1292603812yc05dpn58qnw2e6/105gu21292603748.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/17/t1292603812yc05dpn58qnw2e6/105gu21292603748.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/17/t1292603812yc05dpn58qnw2e6/1gfx91292603748.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/17/t1292603812yc05dpn58qnw2e6/1gfx91292603748.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/17/t1292603812yc05dpn58qnw2e6/2qowt1292603748.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/17/t1292603812yc05dpn58qnw2e6/2qowt1292603748.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/17/t1292603812yc05dpn58qnw2e6/3qowt1292603748.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/17/t1292603812yc05dpn58qnw2e6/3qowt1292603748.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/17/t1292603812yc05dpn58qnw2e6/4qowt1292603748.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/17/t1292603812yc05dpn58qnw2e6/4qowt1292603748.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/17/t1292603812yc05dpn58qnw2e6/5qowt1292603748.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/17/t1292603812yc05dpn58qnw2e6/5qowt1292603748.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/17/t1292603812yc05dpn58qnw2e6/61ydw1292603748.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/17/t1292603812yc05dpn58qnw2e6/61ydw1292603748.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/17/t1292603812yc05dpn58qnw2e6/7upvh1292603748.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/17/t1292603812yc05dpn58qnw2e6/7upvh1292603748.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/17/t1292603812yc05dpn58qnw2e6/8upvh1292603748.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/17/t1292603812yc05dpn58qnw2e6/8upvh1292603748.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/17/t1292603812yc05dpn58qnw2e6/9upvh1292603748.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/17/t1292603812yc05dpn58qnw2e6/9upvh1292603748.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