Description Usage Arguments Details Value References See Also Examples
Isolate trend component from mean sea level records.
1 2 
file 
csv format input file with no header row of annual average water levels. This file must contain 2 columns with the first column the time period (in years) and the second column annual average ocean water levels (in millimetres). Missing data must be denoted by “NA”. Missing data and maximum missing data gap are limited to 15% and 5%, respectively, of the data record. The minimum length data record processed by the package is 80 years. Warning: If input data files do not conform to these preconditions, the analysis will be terminated. It should be further noted that the existence of quasi 60 year oscillations in global mean sea level have been well recognised in the literature. Therefore, in order to be effective for climate change and sea level research, only input files with a minimum length exceeding 80 years have been considered in order that the package can identify and isloate such signals. 
station_name 
character string, providing the name of the data record. Note: This field can be left blank, however, it is retained for use in banner labelling of all plotting and pdf outputs. 
fillgaps 
numeric, provides 3 alternative gap filling procedures for
missing data. The default procedure (fillgaps = 1) is based on iterative gap
filling using Singular Spectrum Analysis (refer Note: Gap filled portions of the time series are denoted in red on the default screen plot. This is done specifically to provide ready visual observation to discern if the selected gap filling method provides an appropriate estimate within the gaps in keeping with the remainder of the historical record. Depending on the nature of the record and extent of gaps, some trial and error between alternatives might be necessary to optimise gap filling. 
iter 
numeric, enables a user defined number of iterations for bootstrapping to determine error margins. The user range is [500 to 10000] where 10000 is the default setting. Warning: Although the default setting provides a more accurate basis for estimating error margins, the degree of iterations slows the analysis and can take several minutes to run. 
plot 
logical, if ‘TRUE’ then the original time series is plotted to the screen along with the trend component and the result of gap filling (where necessary). 95% confidence intervals have also been applied. Default = TRUE. 
This is the key entry point to the package. This function deconstructs annual average time series data into a trend and associated realtime velocities and accelerations, filling necessary internal structures to facilitate all other functions in this package. The trend is isloated using Singular Spectrum Analysis, in particular, aggregating components whose low frequency band [0 to 0.01] exceed a threshold contribution of 75%. Associated velocities and accelerations are determined through the fitting of a cubic smoothing spline to the trend with 1 degree of freedom per every 8 years of record length. Refer Watson (2016a,b) for more detail.
An object of class “msl.trend” is returned with the following elements:
the name of the data record.
a summary data frame of the relevant attributes relating to the trend and the inputted annual average data set, including:
$Year: input data;
$MSL: input data;
$Trend: mean sea level trend;
$TrendSD: standard deviation of the determined mean sea level trend;
$Vel: velocity (or first derivative) of mean sea level trend (mm/year);
$VelSD: standard deviation of the velocity of the mean sea level trend;
$Acc: acceleration (or second derivative) of mean sea level trend (mm/year/year);
$AccSD: standard deviation of the acceleration of the mean sea level trend;
$Resids: time series of uncorrelated residuals; and
$FilledTS: gapfilled time series (where necessary).
outputs of the peak velocity and the year in which it occurred.
outputs of the peak acceleration and the year in which it occurred.
outputs details of the start, end and length of the input data set.
outputs the extent of missing data (years) in the original record and the gap filling method used (where necessary).
outputs the number of iterations used to generate the respective standard deviations for error margins.
outputs the number and time at which changepoints in the variance of the uncorrelated residuals occur (if any). Where changepoints are identified, block bootstrapping procedures are used with residuals quarantined between changepoints.
Watson, P.J., 2016a. Identifying the best performing time series analytics for sealevel research. In: Time Series Analysis and Forecasting, Contributions to Statistics, ISBN 9783319287256, Springer International Publishing (in press).
Watson, P.J., 2016b. How to improve estimates of realtime acceleration in the mean sea level signal. In: VilaConcejo, A., Bruce, E., Kennedy, D.M., and McCarroll, R.J. (eds.), Proceedings of the 14th International Coastal Symposium (Sydney, Australia). Journal of Coastal Research, Special Issue, No. 75. Coconut Creek (Florida), ISSN 07490208 (in press).
msl.forecast
, msl.plot
,
msl.pdf
, summary
, Balt
, s
.
1 2 3 4 5 6 7 8 9 10  # 
# Isolate trend from Baltimore record, filling gaps with spline interpolation and
# 500 iterations. Use raw 'Balt.csv' data file. Note: ordinarily user would call
# 'File.csv' direct from working directory using the following sample code:
# s < msl.trend('Balt.csv', fillgaps = 3, iter = 500, 'BALTIMORE, USA') # DONT RUN
# 
data(s) # msl.trend object from abovementioned example
str(s) # check structure of msl.trend object
msl.plot(s, type=2) # check screen output of gapfilling and trend estimate

Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.