smoothSeries: smoothSeries

View source: R/Module_SmoothSeries.R

smoothSeriesR Documentation

smoothSeries

Description

function to calculate a smoothed version of an input vector (calculate the running geometric mean of log_e transformed data)

Usage

smoothSeries(
  vec.in,
  gen,
  filter.sides = 2,
  log.transform = TRUE,
  out.exp = TRUE,
  na.rm = FALSE
)

Arguments

vec.in

vector with numeric values

gen

generation time (i.e. number of years to average)

filter.sides

time window for gen avg (1 = past values only, 2= centered)

out.exp

if TRUE, then convert the output back from log space)

na.rm

if FALSE, then any gen avg including NA values will be NA

convergence.check

if TRUE, do an automated convergence check


SOLV-Code/MetricsCOSEWIC documentation built on Nov. 3, 2022, 8:59 p.m.