資源描述:
《a-little-book-of-r-for-time-series.pdf》由會員上傳分享,免費在線閱讀,更多相關(guān)內(nèi)容在學(xué)術(shù)論文-天天文庫。
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、?rstneedtoinstalltheRprogramonyourcomputer.1.2.1HowtocheckifRisinstalledonaWindowsPCBeforeyouinstallRonyourcomputer,the?rstthingtodoistocheckwhetherRisalreadyinstalledonyourcomputer(forexample,byaprevioususer).TheseinstructionswillfocusoninstallingRonaWindowsPC.How
6、ever,Iwillalsobrie?ymentionhowtoinstallRonaMacintoshorLinuxcomputer(seebelow).IfyouareusingaWindowsPC,therearetwowaysyoucancheckwhetherRisalreadyisntalledonyourcomputer:1.Checkifthereisan“R”icononthedesktopofthecomputerthatyouareusing.Ifso,double-clickonthe“R”icont
7、ostartR.Ifyoucannot?ndan“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