Home » date » 2010 » Dec » 19 »

*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, 19 Dec 2010 15:06:30 +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/19/t12927710675ih6ps3ehb3t23b.htm/, Retrieved Sun, 19 Dec 2010 16:04:27 +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/19/t12927710675ih6ps3ehb3t23b.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 «
9 24 14 11 12 24 26 9 25 11 7 8 25 23 9 17 6 17 8 30 25 9 18 12 10 8 19 23 9 18 8 12 9 22 19 9 16 10 12 7 22 29 10 20 10 11 4 25 25 10 16 11 11 11 23 21 10 18 16 12 7 17 22 10 17 11 13 7 21 25 10 23 13 14 12 19 24 10 30 12 16 10 19 18 10 23 8 11 10 15 22 10 18 12 10 8 16 15 10 15 11 11 8 23 22 10 12 4 15 4 27 28 10 21 9 9 9 22 20 10 15 8 11 8 14 12 10 20 8 17 7 22 24 10 31 14 17 11 23 20 10 27 15 11 9 23 21 10 34 16 18 11 21 20 10 21 9 14 13 19 21 10 31 14 10 8 18 23 10 19 11 11 8 20 28 10 16 8 15 9 23 24 10 20 9 15 6 25 24 10 21 9 13 9 19 24 10 22 9 16 9 24 23 10 17 9 13 6 22 23 10 24 10 9 6 25 29 10 25 16 18 16 26 24 10 26 11 18 5 29 18 10 25 8 12 7 32 25 10 17 9 17 9 25 21 10 32 16 9 6 29 26 10 33 11 9 6 28 22 10 13 16 12 5 17 22 10 32 12 18 12 28 22 10 25 12 12 7 29 23 10 29 14 18 10 26 30 10 22 9 14 9 25 23 10 18 10 15 8 14 17 10 17 9 16 5 25 23 10 20 10 10 8 26 23 10 15 12 11 8 20 25 10 20 14 14 10 18 24 10 33 14 9 6 32 24 10 29 10 12 8 25 23 10 23 14 17 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'Sir Ronald Aylmer Fisher' @ 193.190.124.24


Multiple Linear Regression - Estimated Regression Equation
PersonalStandards[t] = + 20.5443468355652 -1.34456042983868Month[t] + 0.317541932006347ConcernOverMistakes[t] -0.333075539403863DoubtsAboutActions[t] + 0.190532531457494ParentalExpectations[t] + 0.0631702202398643ParentalCriticism[t] + 0.39852922691684Organization[t] -0.00145199529513204t + e[t]


Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STAT
H0: parameter = 0
2-tail p-value1-tail p-value
(Intercept)20.544346835565215.1115141.35950.176010.088005
Month-1.344560429838681.517767-0.88590.3770910.188545
ConcernOverMistakes0.3175419320063470.0548685.787400
DoubtsAboutActions-0.3330755394038630.107661-3.09380.0023550.001178
ParentalExpectations0.1905325314574940.102311.86230.0645040.032252
ParentalCriticism0.06317022023986430.1311790.48160.6308180.315409
Organization0.398529226916840.0737245.405700
t-0.001451995295132040.006409-0.22660.8210620.410531


Multiple Linear Regression - Regression Statistics
Multiple R0.607791545143314
R-squared0.369410562347697
Adjusted R-squared0.340177939410173
F-TEST (value)12.6369283774912
F-TEST (DF numerator)7
F-TEST (DF denominator)151
p-value1.05226938273972e-12
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation3.40786144542361
Sum Squared Residuals1753.64146431191


Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolation
Forecast
Residuals
Prediction Error
12424.6154601769689-0.615460176968857
22523.72037804435171.27962195564829
33025.54635205843384.45364794156625
41921.7332025846856-2.73320258468564
52221.91417112249350.085828877506543
62224.4704360130666-2.47043601306658
72522.42043121611372.57956878388629
82319.6638105874013.33618941259899
91718.9684456365141-1.96844563651413
102121.70094961844-0.700949618439988
111923.0464525421152-4.04645254211519
121923.4644188712026-4.46441887120256
131523.2139297598583-8.21392975985835
141617.1858883865609-1.18588838656092
152319.5451232545263.45487674547401
162723.82319884541043.17680115458958
172220.99866863827271.00133136172727
181416.5547016176838-2.55470161768378
192224.0033349739276-2.00333497392757
202324.1549549675712-1.15495496757116
212321.67925330253891.32074669746107
222124.6290582256497-3.62905822564971
231922.5938294316657-3.59382943166571
241823.8214962862191-5.8214962862191
252023.1919463911011-3.1919463911011
262322.4682786564010.531721343599004
272523.21440818900781.78559181099220
281923.3389437235236-4.33894372352361
292423.82810202769050.171897972309529
302221.47783211727150.52216788272847
312524.9951433422880.00485665771197539
322623.66662889350792.33337110649205
332922.56204874309896.43795125690107
343225.01513127416176.98486872583831
352521.62515447351183.37484552648824
362924.33417790468944.66582209531057
372824.72152863075263.27847136924739
381717.2122876724438-0.212287672443842
392826.16182127330881.83817872669123
402922.87705869094186.12294130905824
412627.6020337827467-1.60203378274673
422523.42816102593881.57183897406123
431419.5596527129310-5.55965271293097
442521.96593155727233.0340684427277
452621.63034529056704.36965470943303
462020.3626235417236-0.362623541723554
471821.5821389355878-3.5821389355878
483224.50338851812827.49661148187175
492524.86347976035860.136520239641448
502521.71690799862383.28309200137619
512320.7216173630812.27838263691901
522122.0977672887240-1.09776728872405
532023.9924405257051-3.99244052570510
541516.2871865072618-1.2871865072618
553027.05222227500692.94777772499308
562425.2926387405630-1.29263874056304
572624.22318718162041.77681281837957
582319.48268745683533.51731254316469
592221.23727617784820.7627238221518
601415.8198290780372-1.81982907803719
612422.22885684621821.77114315378178
622422.76698968336571.23301031663433
632223.0431118514054-1.04311185140537
642420.04908128197693.95091871802311
651918.42690793533880.573092064661235
663126.53431663426324.46568336573675
672226.3465754833259-4.34657548332594
682721.38702214671525.61297785328475
691917.77402754655641.22597245344365
702522.2485608540762.75143914592402
712024.7184455635103-4.71844556351032
722121.3529722732986-0.352972273298564
732727.3096048400485-0.309604840048460
742324.4945080304255-1.49450803042549
752525.4484932337964-0.448493233796377
762022.1219658415182-2.12196584151823
772119.27110136718931.7288986328107
782222.4576498720129-0.457649872012915
792322.98845980121940.0115401987805513
802523.83351329886021.16648670113983
812523.49045204086541.50954795913462
821723.6599599704579-6.65995997045786
831921.3996286900062-2.39962869000622
842523.90793340900611.09206659099392
851922.2161303011981-3.21613030119806
862023.033834071491-3.03383407149098
872522.30427159250312.69572840749686
882320.84854050527272.15145949472735
892724.56432915809152.43567084190848
901720.7682999591211-3.76829995912113
911723.2971622941603-6.29716229416034
921919.9431836121737-0.94318361217374
931719.5773630567943-2.57736305679429
942221.82501592117540.174984078824584
952123.4842690128125-2.48426901281247
963228.59338119032753.40661880967254
972124.6717083507703-3.67170835077026
982124.3919229885562-3.39192298855623
991821.0883075408688-3.0883075408688
1001821.1630501000525-3.16305010005252
1012322.78360399399210.216396006007864
1021920.4167646855259-1.41676468552588
1031923.3322872993455-4.33228729934554
1042122.2562186537996-1.25621865379957
1052023.8715975447009-3.8715975447009
1061718.6099691353834-1.60996913538337
1071820.0696690113420-2.06966901134195
1081920.6518170739204-1.65181707392039
1092222.1379399582682-0.137939958268183
1101518.7087038113505-3.70870381135047
1111418.7016490908593-4.70164909085932
1121826.5339534372729-8.53395343727288
1132421.31869306982362.68130693017636
1143523.439689444324711.5603105556753
1152919.17649212325809.82350787674203
1162121.7038531359647-0.703853135964666
1172520.28752653287754.71247346712253
1181920.2231146912019-1.22311469120191
1192223.1926672455877-1.19266724558766
1201316.5693318909854-3.56933189098536
1212622.82198779454143.17801220545859
1221716.80840477565710.191595224342898
1232520.17739524282614.82260475717388
1242020.5026669685515-0.502666968551508
1251918.21871151159030.781288488409747
1262122.5133858524599-1.51338585245987
1272220.73557144109951.26442855890048
1282422.56287435387521.43712564612484
1292122.8941818485835-1.89418184858355
1302625.2902596342390.709740365761025
1312420.57594414030233.42405585969768
1321620.1509361203503-4.15093612035027
1332322.07962899946860.920371000531403
1341820.4538876476656-2.45388764766561
1351622.1982727089264-6.19827270892642
1362624.03737522067431.96262477932572
1371918.92158818287530.0784118171247219
1382116.84355033074324.15644966925678
1392122.0501475256849-1.05014752568494
1402218.63694533211013.36305466788988
1412319.61994555121313.38005444878689
1422924.67924385904534.32075614095474
1432119.67053345541831.32946654458167
1442119.77618296316071.22381703683931
1452321.92817022885371.07182977114626
1462722.80583923528724.19416076471282
1472525.1110595947121-0.111059594712143
1482120.74563994503930.254360054960657
1491017.0011886052382-7.00118860523817
1502022.4720036129577-2.47200361295771
1512622.33083393227513.66916606772492
1522423.55858842927720.441411570722758
1532931.2800720226967-2.2800720226967
1541918.69220539607910.307794603920859
1552422.16313900372231.83686099627767
1562220.79684129224941.20315870775063
1572423.26481687432180.735183125678164
1582221.78260093886850.217399061131487
1591923.2509755628181-4.25097556281815


Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
110.04779931470510320.09559862941020640.952200685294897
120.01444900549288660.02889801098577320.985550994507113
130.06533544104518430.1306708820903690.934664558954816
140.1256413896052710.2512827792105430.874358610394729
150.5807295613962170.8385408772075660.419270438603783
160.5261010173475370.9477979653049250.473898982652462
170.5728617710148590.8542764579702820.427138228985141
180.5310082537910370.9379834924179260.468991746208963
190.4520396524867170.9040793049734340.547960347513283
200.5607260853838840.8785478292322330.439273914616116
210.5753457632063580.8493084735872840.424654236793642
220.507891453347680.984217093304640.49210854665232
230.4495157917217460.8990315834434920.550484208278254
240.4622995051666480.9245990103332960.537700494833352
250.4091549643635660.8183099287271310.590845035636434
260.356610047834770.713220095669540.64338995216523
270.3229178715338970.6458357430677950.677082128466103
280.3054638627674360.6109277255348720.694536137232564
290.2669027532641030.5338055065282050.733097246735897
300.2149561446768340.4299122893536690.785043855323166
310.1840110464303810.3680220928607620.81598895356962
320.2253035322444130.4506070644888270.774696467755587
330.3180322009034030.6360644018068070.681967799096597
340.541483446447830.917033107104340.45851655355217
350.4935103677997520.9870207355995040.506489632200248
360.5018303202784920.9963393594430150.498169679721508
370.4658112354851270.9316224709702550.534188764514873
380.4962076315433040.9924152630866080.503792368456696
390.4432416308615090.8864832617230190.556758369138491
400.4740683569511090.9481367139022170.525931643048891
410.4648533507555430.9297067015110860.535146649244457
420.4145402601804310.8290805203608620.585459739819569
430.6235229674912940.7529540650174130.376477032508706
440.5913962794685690.8172074410628620.408603720531431
450.5802999814078490.8394000371843020.419700018592151
460.5426097514076070.9147804971847860.457390248592393
470.5688458691767870.8623082616464270.431154130823213
480.6523517828643020.6952964342713950.347648217135698
490.6239371927606210.7521256144787570.376062807239379
500.600352827816430.7992943443671390.399647172183570
510.5663192524625510.8673614950748970.433680747537449
520.5417855060060940.9164289879878110.458214493993906
530.6008111516976710.7983776966046590.399188848302329
540.5769200893669810.8461598212660390.423079910633019
550.5966721198425710.8066557603148580.403327880157429
560.572877396922480.854245206155040.42712260307752
570.5303517876850960.9392964246298070.469648212314904
580.5238466652643920.9523066694712160.476153334735608
590.4801097772002720.9602195544005440.519890222799728
600.450055604316130.900111208632260.54994439568387
610.4091818583138620.8183637166277230.590818141686138
620.3758313344430780.7516626688861560.624168665556922
630.3443687919579690.6887375839159380.655631208042031
640.3586885795538760.7173771591077530.641311420446124
650.3193964077104020.6387928154208030.680603592289598
660.3395084164969540.6790168329939080.660491583503046
670.4306586384151860.8613172768303710.569341361584814
680.5004296684502260.9991406630995480.499570331549774
690.461473135432140.922946270864280.53852686456786
700.4451508305894460.8903016611788920.554849169410554
710.5355818613044220.9288362773911550.464418138695578
720.4942660332770970.9885320665541940.505733966722903
730.4591657320108260.9183314640216520.540834267989174
740.4303472632216080.8606945264432150.569652736778392
750.4058861161795350.8117722323590690.594113883820465
760.3804212574723270.7608425149446530.619578742527673
770.3597851387411090.7195702774822170.640214861258891
780.3207346386698270.6414692773396540.679265361330173
790.2833290992438290.5666581984876590.71667090075617
800.2630998167854280.5261996335708560.736900183214572
810.2388823542088390.4777647084176770.761117645791161
820.340195015378920.680390030757840.65980498462108
830.3152527976493150.630505595298630.684747202350685
840.2846018703759660.5692037407519330.715398129624034
850.2799804328043110.5599608656086230.720019567195689
860.2684022485483800.5368044970967590.73159775145162
870.2816204862281910.5632409724563820.718379513771809
880.272837721593170.545675443186340.72716227840683
890.2646805440241250.5293610880482510.735319455975875
900.257998156683450.51599631336690.74200184331655
910.3242354014920150.648470802984030.675764598507985
920.2828016484090320.5656032968180640.717198351590968
930.2543855015188860.5087710030377720.745614498481114
940.2266649908968490.4533299817936970.773335009103151
950.2022707725695640.4045415451391280.797729227430436
960.2254130186658350.4508260373316710.774586981334165
970.2133634669152610.4267269338305210.78663653308474
980.1965931061805920.3931862123611830.803406893819408
990.1759596185155430.3519192370310870.824040381484457
1000.1580683967901240.3161367935802470.841931603209876
1010.1326718285433270.2653436570866550.867328171456673
1020.1083716511345120.2167433022690240.891628348865488
1030.1112387000960560.2224774001921110.888761299903944
1040.09063072563166160.1812614512633230.909369274368338
1050.09728752168127180.1945750433625440.902712478318728
1060.07878282832926720.1575656566585340.921217171670733
1070.06761195815277910.1352239163055580.93238804184722
1080.06162305866280130.1232461173256030.938376941337199
1090.05094872689059390.1018974537811880.949051273109406
1100.05070248972074550.1014049794414910.949297510279254
1110.06303063682528470.1260612736505690.936969363174715
1120.374715941959350.74943188391870.62528405804065
1130.3960657670172740.7921315340345480.603934232982726
1140.7772364685894180.4455270628211640.222763531410582
1150.9447038252275340.1105923495449320.0552961747724658
1160.926961638952010.1460767220959810.0730383610479903
1170.9612821293919540.07743574121609230.0387178706080461
1180.9526864053165630.09462718936687320.0473135946834366
1190.9463336023247150.1073327953505700.0536663976752852
1200.9555375049858840.0889249900282320.044462495014116
1210.945458583586640.1090828328267210.0545414164133605
1220.9264101623522120.1471796752955760.0735898376477878
1230.9302019684338780.1395960631322440.0697980315661218
1240.9065935047267560.1868129905464880.0934064952732442
1250.8974088048686190.2051823902627630.102591195131381
1260.8696868476826260.2606263046347480.130313152317374
1270.8584120168133670.2831759663732660.141587983186633
1280.8225201249246740.3549597501506530.177479875075326
1290.7856315102350460.4287369795299090.214368489764954
1300.7566696434273860.4866607131452270.243330356572614
1310.7284418789775730.5431162420448540.271558121022427
1320.7429644648556060.5140710702887880.257035535144394
1330.6997449223846110.6005101552307780.300255077615389
1340.6411564861730960.7176870276538070.358843513826904
1350.8777618020883640.2444763958232730.122238197911636
1360.8340194750993430.3319610498013150.165980524900657
1370.789822526696330.4203549466073410.210177473303671
1380.795758114869910.408483770260180.20424188513009
1390.7817034143124840.4365931713750310.218296585687516
1400.713586775648830.5728264487023390.286413224351170
1410.6405807696085770.7188384607828460.359419230391423
1420.5978567614833720.8042864770332560.402143238516628
1430.5401582272016390.9196835455967220.459841772798361
1440.4708797281381570.9417594562763130.529120271861843
1450.3568024538779310.7136049077558610.643197546122069
1460.3430778763749130.6861557527498260.656922123625087
1470.5163307385207490.9673385229585020.483669261479251
1480.3529993939269630.7059987878539260.647000606073037


Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level00OK
5% type I error level10.0072463768115942OK
10% type I error level50.036231884057971OK
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Dec/19/t12927710675ih6ps3ehb3t23b/1032c51292771178.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/19/t12927710675ih6ps3ehb3t23b/1032c51292771178.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/19/t12927710675ih6ps3ehb3t23b/1ejfb1292771178.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/19/t12927710675ih6ps3ehb3t23b/1ejfb1292771178.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/19/t12927710675ih6ps3ehb3t23b/2ejfb1292771178.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/19/t12927710675ih6ps3ehb3t23b/2ejfb1292771178.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/19/t12927710675ih6ps3ehb3t23b/3paee1292771178.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/19/t12927710675ih6ps3ehb3t23b/3paee1292771178.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/19/t12927710675ih6ps3ehb3t23b/4paee1292771178.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/19/t12927710675ih6ps3ehb3t23b/4paee1292771178.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/19/t12927710675ih6ps3ehb3t23b/5paee1292771178.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/19/t12927710675ih6ps3ehb3t23b/5paee1292771178.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/19/t12927710675ih6ps3ehb3t23b/6zkvz1292771178.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/19/t12927710675ih6ps3ehb3t23b/6zkvz1292771178.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/19/t12927710675ih6ps3ehb3t23b/7abc21292771178.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/19/t12927710675ih6ps3ehb3t23b/7abc21292771178.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/19/t12927710675ih6ps3ehb3t23b/8abc21292771178.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/19/t12927710675ih6ps3ehb3t23b/8abc21292771178.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/19/t12927710675ih6ps3ehb3t23b/9abc21292771178.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/19/t12927710675ih6ps3ehb3t23b/9abc21292771178.ps (open in new window)


 
Parameters (Session):
par1 = 6 ; par2 = Do not include Seasonal Dummies ; par3 = Linear Trend ;
 
Parameters (R input):
par1 = 6 ; par2 = Do not include Seasonal Dummies ; par3 = Linear Trend ;
 
R code (references can be found in the software module):
library(lattice)
library(lmtest)
n25 <- 25 #minimum number of obs. for Goldfeld-Quandt test
par1 <- as.numeric(par1)
x <- t(y)
k <- length(x[1,])
n <- length(x[,1])
x1 <- cbind(x[,par1], x[,1:k!=par1])
mycolnames <- c(colnames(x)[par1], colnames(x)[1:k!=par1])
colnames(x1) <- mycolnames #colnames(x)[par1]
x <- x1
if (par3 == 'First Differences'){
x2 <- array(0, dim=c(n-1,k), dimnames=list(1:(n-1), paste('(1-B)',colnames(x),sep='')))
for (i in 1:n-1) {
for (j in 1:k) {
x2[i,j] <- x[i+1,j] - x[i,j]
}
}
x <- x2
}
if (par2 == 'Include Monthly Dummies'){
x2 <- array(0, dim=c(n,11), dimnames=list(1:n, paste('M', seq(1:11), sep ='')))
for (i in 1:11){
x2[seq(i,n,12),i] <- 1
}
x <- cbind(x, x2)
}
if (par2 == 'Include Quarterly Dummies'){
x2 <- array(0, dim=c(n,3), dimnames=list(1:n, paste('Q', seq(1:3), sep ='')))
for (i in 1:3){
x2[seq(i,n,4),i] <- 1
}
x <- cbind(x, x2)
}
k <- length(x[1,])
if (par3 == 'Linear Trend'){
x <- cbind(x, c(1:n))
colnames(x)[k+1] <- 't'
}
x
k <- length(x[1,])
df <- as.data.frame(x)
(mylm <- lm(df))
(mysum <- summary(mylm))
if (n > n25) {
kp3 <- k + 3
nmkm3 <- n - k - 3
gqarr <- array(NA, dim=c(nmkm3-kp3+1,3))
numgqtests <- 0
numsignificant1 <- 0
numsignificant5 <- 0
numsignificant10 <- 0
for (mypoint in kp3:nmkm3) {
j <- 0
numgqtests <- numgqtests + 1
for (myalt in c('greater', 'two.sided', 'less')) {
j <- j + 1
gqarr[mypoint-kp3+1,j] <- gqtest(mylm, point=mypoint, alternative=myalt)$p.value
}
if (gqarr[mypoint-kp3+1,2] < 0.01) numsignificant1 <- numsignificant1 + 1
if (gqarr[mypoint-kp3+1,2] < 0.05) numsignificant5 <- numsignificant5 + 1
if (gqarr[mypoint-kp3+1,2] < 0.10) numsignificant10 <- numsignificant10 + 1
}
gqarr
}
bitmap(file='test0.png')
plot(x[,1], type='l', main='Actuals and Interpolation', ylab='value of Actuals and Interpolation (dots)', xlab='time or index')
points(x[,1]-mysum$resid)
grid()
dev.off()
bitmap(file='test1.png')
plot(mysum$resid, type='b', pch=19, main='Residuals', ylab='value of Residuals', xlab='time or index')
grid()
dev.off()
bitmap(file='test2.png')
hist(mysum$resid, main='Residual Histogram', xlab='values of Residuals')
grid()
dev.off()
bitmap(file='test3.png')
densityplot(~mysum$resid,col='black',main='Residual Density Plot', xlab='values of Residuals')
dev.off()
bitmap(file='test4.png')
qqnorm(mysum$resid, main='Residual Normal Q-Q Plot')
qqline(mysum$resid)
grid()
dev.off()
(myerror <- as.ts(mysum$resid))
bitmap(file='test5.png')
dum <- cbind(lag(myerror,k=1),myerror)
dum
dum1 <- dum[2:length(myerror),]
dum1
z <- as.data.frame(dum1)
z
plot(z,main=paste('Residual Lag plot, lowess, and regression line'), ylab='values of Residuals', xlab='lagged values of Residuals')
lines(lowess(z))
abline(lm(z))
grid()
dev.off()
bitmap(file='test6.png')
acf(mysum$resid, lag.max=length(mysum$resid)/2, main='Residual Autocorrelation Function')
grid()
dev.off()
bitmap(file='test7.png')
pacf(mysum$resid, lag.max=length(mysum$resid)/2, main='Residual Partial Autocorrelation Function')
grid()
dev.off()
bitmap(file='test8.png')
opar <- par(mfrow = c(2,2), oma = c(0, 0, 1.1, 0))
plot(mylm, las = 1, sub='Residual Diagnostics')
par(opar)
dev.off()
if (n > n25) {
bitmap(file='test9.png')
plot(kp3:nmkm3,gqarr[,2], main='Goldfeld-Quandt test',ylab='2-sided p-value',xlab='breakpoint')
grid()
dev.off()
}
load(file='createtable')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a, 'Multiple Linear Regression - Estimated Regression Equation', 1, TRUE)
a<-table.row.end(a)
myeq <- colnames(x)[1]
myeq <- paste(myeq, '[t] = ', sep='')
for (i in 1:k){
if (mysum$coefficients[i,1] > 0) myeq <- paste(myeq, '+', '')
myeq <- paste(myeq, mysum$coefficients[i,1], sep=' ')
if (rownames(mysum$coefficients)[i] != '(Intercept)') {
myeq <- paste(myeq, rownames(mysum$coefficients)[i], sep='')
if (rownames(mysum$coefficients)[i] != 't') myeq <- paste(myeq, '[t]', sep='')
}
}
myeq <- paste(myeq, ' + e[t]')
a<-table.row.start(a)
a<-table.element(a, myeq)
a<-table.row.end(a)
a<-table.end(a)
table.save(a,file='mytable1.tab')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a,hyperlink('http://www.xycoon.com/ols1.htm','Multiple Linear Regression - Ordinary Least Squares',''), 6, TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'Variable',header=TRUE)
a<-table.element(a,'Parameter',header=TRUE)
a<-table.element(a,'S.D.',header=TRUE)
a<-table.element(a,'T-STAT<br />H0: parameter = 0',header=TRUE)
a<-table.element(a,'2-tail p-value',header=TRUE)
a<-table.element(a,'1-tail p-value',header=TRUE)
a<-table.row.end(a)
for (i in 1:k){
a<-table.row.start(a)
a<-table.element(a,rownames(mysum$coefficients)[i],header=TRUE)
a<-table.element(a,mysum$coefficients[i,1])
a<-table.element(a, round(mysum$coefficients[i,2],6))
a<-table.element(a, round(mysum$coefficients[i,3],4))
a<-table.element(a, round(mysum$coefficients[i,4],6))
a<-table.element(a, round(mysum$coefficients[i,4]/2,6))
a<-table.row.end(a)
}
a<-table.end(a)
table.save(a,file='mytable2.tab')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a, 'Multiple Linear Regression - Regression Statistics', 2, TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'Multiple R',1,TRUE)
a<-table.element(a, sqrt(mysum$r.squared))
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'R-squared',1,TRUE)
a<-table.element(a, mysum$r.squared)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'Adjusted R-squared',1,TRUE)
a<-table.element(a, mysum$adj.r.squared)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'F-TEST (value)',1,TRUE)
a<-table.element(a, mysum$fstatistic[1])
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'F-TEST (DF numerator)',1,TRUE)
a<-table.element(a, mysum$fstatistic[2])
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'F-TEST (DF denominator)',1,TRUE)
a<-table.element(a, mysum$fstatistic[3])
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'p-value',1,TRUE)
a<-table.element(a, 1-pf(mysum$fstatistic[1],mysum$fstatistic[2],mysum$fstatistic[3]))
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'Multiple Linear Regression - Residual Statistics', 2, TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'Residual Standard Deviation',1,TRUE)
a<-table.element(a, mysum$sigma)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'Sum Squared Residuals',1,TRUE)
a<-table.element(a, sum(myerror*myerror))
a<-table.row.end(a)
a<-table.end(a)
table.save(a,file='mytable3.tab')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a, 'Multiple Linear Regression - Actuals, Interpolation, and Residuals', 4, TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'Time or Index', 1, TRUE)
a<-table.element(a, 'Actuals', 1, TRUE)
a<-table.element(a, 'Interpolation<br />Forecast', 1, TRUE)
a<-table.element(a, 'Residuals<br />Prediction Error', 1, TRUE)
a<-table.row.end(a)
for (i in 1:n) {
a<-table.row.start(a)
a<-table.element(a,i, 1, TRUE)
a<-table.element(a,x[i])
a<-table.element(a,x[i]-mysum$resid[i])
a<-table.element(a,mysum$resid[i])
a<-table.row.end(a)
}
a<-table.end(a)
table.save(a,file='mytable4.tab')
if (n > n25) {
a<-table.start()
a<-table.row.start(a)
a<-table.element(a,'Goldfeld-Quandt test for Heteroskedasticity',4,TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'p-values',header=TRUE)
a<-table.element(a,'Alternative Hypothesis',3,header=TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'breakpoint index',header=TRUE)
a<-table.element(a,'greater',header=TRUE)
a<-table.element(a,'2-sided',header=TRUE)
a<-table.element(a,'less',header=TRUE)
a<-table.row.end(a)
for (mypoint in kp3:nmkm3) {
a<-table.row.start(a)
a<-table.element(a,mypoint,header=TRUE)
a<-table.element(a,gqarr[mypoint-kp3+1,1])
a<-table.element(a,gqarr[mypoint-kp3+1,2])
a<-table.element(a,gqarr[mypoint-kp3+1,3])
a<-table.row.end(a)
}
a<-table.end(a)
table.save(a,file='mytable5.tab')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a,'Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity',4,TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'Description',header=TRUE)
a<-table.element(a,'# significant tests',header=TRUE)
a<-table.element(a,'% significant tests',header=TRUE)
a<-table.element(a,'OK/NOK',header=TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'1% type I error level',header=TRUE)
a<-table.element(a,numsignificant1)
a<-table.element(a,numsignificant1/numgqtests)
if (numsignificant1/numgqtests < 0.01) dum <- 'OK' else dum <- 'NOK'
a<-table.element(a,dum)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'5% type I error level',header=TRUE)
a<-table.element(a,numsignificant5)
a<-table.element(a,numsignificant5/numgqtests)
if (numsignificant5/numgqtests < 0.05) dum <- 'OK' else dum <- 'NOK'
a<-table.element(a,dum)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'10% type I error level',header=TRUE)
a<-table.element(a,numsignificant10)
a<-table.element(a,numsignificant10/numgqtests)
if (numsignificant10/numgqtests < 0.1) dum <- 'OK' else dum <- 'NOK'
a<-table.element(a,dum)
a<-table.row.end(a)
a<-table.end(a)
table.save(a,file='mytable6.tab')
}
 





Copyright

Creative Commons License

This work is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 License.

Software written by Ed van Stee & Patrick Wessa


Disclaimer

Information provided on this web site is provided "AS IS" without warranty of any kind, either express or implied, including, without limitation, warranties of merchantability, fitness for a particular purpose, and noninfringement. We use reasonable efforts to include accurate and timely information and periodically update the information, and software without notice. However, we make no warranties or representations as to the accuracy or completeness of such information (or software), and we assume no liability or responsibility for errors or omissions in the content of this web site, or any software bugs in online applications. Your use of this web site is AT YOUR OWN RISK. Under no circumstances and under no legal theory shall we be liable to you or any other person for any direct, indirect, special, incidental, exemplary, or consequential damages arising from your access to, or use of, this web site.


Privacy Policy

We may request personal information to be submitted to our servers in order to be able to:

  • personalize online software applications according to your needs
  • enforce strict security rules with respect to the data that you upload (e.g. statistical data)
  • manage user sessions of online applications
  • alert you about important changes or upgrades in resources or applications

We NEVER allow other companies to directly offer registered users information about their products and services. Banner references and hyperlinks of third parties NEVER contain any personal data of the visitor.

We do NOT sell, nor transmit by any means, personal information, nor statistical data series uploaded by you to third parties.

We carefully protect your data from loss, misuse, alteration, and destruction. However, at any time, and under any circumstance you are solely responsible for managing your passwords, and keeping them secret.

We store a unique ANONYMOUS USER ID in the form of a small 'Cookie' on your computer. This allows us to track your progress when using this website which is necessary to create state-dependent features. The cookie is used for NO OTHER PURPOSE. At any time you may opt to disallow cookies from this website - this will not affect other features of this website.

We examine cookies that are used by third-parties (banner and online ads) very closely: abuse from third-parties automatically results in termination of the advertising contract without refund. We have very good reason to believe that the cookies that are produced by third parties (banner ads) do NOT cause any privacy or security risk.

FreeStatistics.org is safe. There is no need to download any software to use the applications and services contained in this website. Hence, your system's security is not compromised by their use, and your personal data - other than data you submit in the account application form, and the user-agent information that is transmitted by your browser - is never transmitted to our servers.

As a general rule, we do not log on-line behavior of individuals (other than normal logging of webserver 'hits'). However, in cases of abuse, hacking, unauthorized access, Denial of Service attacks, illegal copying, hotlinking, non-compliance with international webstandards (such as robots.txt), or any other harmful behavior, our system engineers are empowered to log, track, identify, publish, and ban misbehaving individuals - even if this leads to ban entire blocks of IP addresses, or disclosing user's identity.


FreeStatistics.org is powered by