资源描述:
《a-little-book-of-r-for-time-series.pdf》由会员上传分享,免费在线阅读,更多相关内容在学术论文-天天文库。
1、ALittleBookofRForTimeSeriesRelease0.2AvrilCoghlanDecember10,2012CONTENTSiiiALittleBookofRForTimeSeries,Release0.2ByAvrilCoghlan,ParasiteGenomicsGroup,WellcomeTrustSangerInstitute,Cambridge,U.K.Email:alc@sanger.ac.ukThisisasimpleintroductiontotimeseriesanalysisusing
2、theRstatisticssoftware.Thereisapdfversionofthisbookletavailableathttps://media.readthedocs.org/pdf/a-little-book-of-r-for-time-series/latest/a-little-book-of-r-for-time-series.pdf.Ifyoulikethisbooklet,youmayalsoliketocheckoutmybookletonusingRforbiomedicalstatistics
3、,http://a-little-book-of-r-for-biomedical-statistics.readthedocs.org/,andmybookletonusingRformultivariateanalysis,http://little-book-of-r-for-multivariate-analysis.readthedocs.org/.Contents:CONTENTS1ALittleBookofRForTimeSeries,Release0.22CONTENTSCHAPTERONEHOWTOINST
4、ALLR1.1IntroductiontoRThislittlebooklethassomeinformationonhowtouseRfortimeseriesanalysis.R(www.r-project.org)isacommonlyusedfreeStatisticssoftware.Rallowsyoutocarryoutstatisticalanalysesinaninteractivemode,aswellasallowingsimpleprogramming.1.2InstallingRTouseR,you
5、firstneedtoinstalltheRprogramonyourcomputer.1.2.1HowtocheckifRisinstalledonaWindowsPCBeforeyouinstallRonyourcomputer,thefirstthingtodoistocheckwhetherRisalreadyinstalledonyourcomputer(forexample,byaprevioususer).TheseinstructionswillfocusoninstallingRonaWindowsPC.How
6、ever,IwillalsobrieflymentionhowtoinstallRonaMacintoshorLinuxcomputer(seebelow).IfyouareusingaWindowsPC,therearetwowaysyoucancheckwhetherRisalreadyisntalledonyourcomputer:1.Checkifthereisan“R”icononthedesktopofthecomputerthatyouareusing.Ifso,double-clickonthe“R”icont
7、ostartR.Ifyoucannotfindan“R”icon,trystep2instead.2.Clickonthe“Start”menuatthebottomleftofyourWindowsdesktop,andthenmoveyourmouseover“AllPrograms”inthemenuthatpopsup.Seeif“R”appearsinthelistofprogramsthatpopsup.Ifitdoes,itmeansthatRisalreadyinstalledonyourcomputer,an
8、dyoucanstartRbyselecting“R”(orRX.X.X,whereX.X.XgivestheversionofR,eg.R2.10.0)fromthelist.Ifeither(1)or(2)abovedoessucceedinstartingR,itmeansthatR