run_TS: Run Changepoint Model on LDA + TimeSeries Data

Description Usage Arguments Value

View source: R/analysis_TS.R

Description

Run the timeseries model from ldats on LDA models and time-series data.

Usage

1
2
run_TS(data, ldamodels, formulas = c("intercept", "time"),
  nchangepoints = 0:6, weighting = "proportional", control = list())

Arguments

data

The dataset, in the MATSS format. Including covariates & metadata.

ldamodels

The LDA model(s) produced by running run_LDA on the dataset.

formulas

Defaults to NULL. If nothing supplied, ~timename. If supplied, uses that.

nchangepoints

Vector of integers: which numbers of changepoints to try.

weighting

Weight samples equally or proportional to number of individuals captured. Defaults to 'proprotional'; any other value will weight samples equally.

control

A list of parameters to control the fitting of the Time Series model including the parallel tempering Markov Chain Monte Carlo (ptMCMC) controls. Values not input assume defaults set by TS_control.

Value

the changepoint model(s) resulting from running LDATS::TS_on_LDA.


weecology/MATSS-LDATS documentation built on Nov. 5, 2019, 12:07 p.m.