proxySmooth: This function uses a Monte Carlo aproach to repetedly fit a...

View source: R/proxySmooth.r

proxySmoothR Documentation

This function uses a Monte Carlo aproach to repetedly fit a smoothing model to some proxy data incorperating the model uncertanties in age

Description

This function uses a Monte Carlo aproach to repetedly fit a smoothing model to some proxy data incorperating the model uncertanties in age

Usage

proxySmooth(
  proxy,
  proxySD = rep(0, length(proxy)),
  agePredictOutput,
  grid,
  method = c("spline", "movingAverage"),
  smoothParameter = 1,
  probability = 0.95
)

Arguments

proxy

Vector proxy compostions. must be numeric

proxySD

optional vector of 1 sigma uncertanties for proxy. Must be the same length as proxy

agePredictOutput

Output from agePredict for the stratigraphic positions of proxy

grid

vector of positions to evaluate the smoothing model at

method

Smoothing method to use. currently supported methods are 'spline', 'movingAverage' and 'polynomial'

smoothParameter

parameter to use for smoothing. If method = 'spline' smoothParameter should be between 0 and 1. see smooth.spline for details. If method = 'movingAverage' smoothParameter is the width of the smoothing window in units of time used by the age-depth model. If method = 'polynomial' smoothParameter is the degree of polynomial to fit

probability

desired probability interval to return. Must be between 0 and 1


robintrayler/modifiedBChron documentation built on April 16, 2023, 6:28 p.m.