redo_sfilter: redo_sfilter

Description Usage Arguments Details

Description

redo_sfilter() iteratively re-fits the state-space model to tracks that have failed to converge. It iteratively adjusts the values for span and nu and makes tries = n attempts before giving up.

Usage

1
2
redo_sfilter(ssm_obj, data, s.inc = 0.1, n.inc = 1, tries = 5,
  common.tau = FALSE)

Arguments

ssm_obj

output from sfilter() - a tibble grouped by id or is and stage

data

data object provided by prefilter()

s.inc

increment for span argument

n.inc

increment for nu argument

tries

number of attempts to successfully filter all convergence failures before giving up

common.tau

(logical) fit SSM with a single SD for measurement error in both lon & lat

Details

redo ssm filter for tracks that failed to converge, trying incrementally different span & nu values. Up to tries re-filter attemps are made. If common.tau = TRUE, function then searches for cases where hat(gamma) > 0.9, deployment < 30 d, device_type == PTT & refits sfilter. This may reduce over-smoothing of these short & typically sparsely observed tracks


ianjonsen/duckConfit documentation built on May 30, 2019, 4:36 p.m.