Rev 7872 | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed
EPreliminary time-series package for R======================================This is a preliminary version of a time-series package.Functions in base R:-------------------ts Create a (univariate or multivariate) ts object[.ts Subsetting method for ts objects.as.ts, is.ts Coercion and membership functionsplot, lines, print methodsaggregate Computes summaries (e.g. sum) over disjoint time intervalsdiff Lagged differences of a time seriesend Time of last observationfrequency Number of observations per unit of timedeltat Return time interval between observationstime Create time series giving the times of observationscycle Create time series giving the positions in a cycleof a time seriesstart Time of first observationtsp, tsp<- Get and set time-series attributeswindow Subset to a time windowFunctions in package ts:-----------------------acf Autocovariance and autocorrelation functionar Wrapper for autoregression estimation functionsar.burg Estimate autoregression model by Burg's methodar.ols Estimate autoregression model by ordinary least squaresar.mle Estimate autoregression model by maximum likelihoodar.yw Estimate autoregression model by solving Yule-Walker equationsarima0 ARIMA modelling -- provisional versionBox.test Box-Pierce and Ljung-Box tests of independencecbind.ts cbind method for time series (aligns time bases)ccf Cross-covariance and cross-correlations for two seriescpgram Plot cumulative periodogram of univariate time seriesdiffinv Discrete integration, the inverse of diff()embed Embedding a time seriesfilter Linear filtering on a time serieskernapply Apply kernel smootherskernel Smoothing kernel objects (and (modified) Daniell, Fejer andDirichlet kernels)lag Compute lagged version of time seriesna.contiguous Find longest contiguous stretch of non-NAsna.omit.ts na.omit method for time series: omits at ends onlyOps.ts arithmetic (such as + - * /) for time seriespacf Partial autocorrelation functionplot.acf Plot autocorrelation functionplot.spec Plot spectral density estimate, coherency and phase.PP.test Phillips-Perron test for unit rootspredict methods for ar and arima0spec.ar Estimate spectral density by autoregressionspec.pgram Estimate spectral density from periodogramspec.taper Taper by cosine bellspectrum Wrapper for spectral density estimation functionsstl Seasonal decomposition using loesstoeplitz Generate Toeplitz matrixts.intersect Bind time series as multivariate ts over the common time basets.plot Plot several time series with different time basests.union Bind time series as multivariate ts over their total time baseIn some cases the visual output will closer to that of S(-PLUS) ifoptions(ts.S.compat=TRUE) has been set.Datasets in base R:------------------airmiles Passenger-Miles on US Airlines 1937-1960co2 Moana Loa Atmospheric CO2 Concentrationsnhtemp Yearly Average Temperatures in New Haven CTpresidents Quarterly Approval Ratings for US Presidentssunspots Monthly Mean Relative Sunspot Numbers 1749-1983uspop Populations Recorded by the US CensusDatasets in package ts:----------------------beavers time series of body temperatures of two beaversBJsales sales data with leading indicator from Box & JenkinsEuStockMarkets daily closing prices of major European stock indices, 1991-8LakeHuron level of Lake Huron 1875-1972lh dataset on luteinizing hormone from Diggle (1990)lynx Annual Canadian Lynx trappings 1821-1934nottem monthly time-series of temperatures in Nottingham, 1920-1939sunspot yearly sunspot data, 1700-1988monthly sunspot data, 1749-1997treering yearly tree ring data, -6000-1979UKDriverDeaths time series on UK road deaths of drivers from Harvey (1989)UKLungDeaths time-series on UK lung deaths 1974-9 from Diggle (1990)USAccDeaths US accidental deaths 1973-8