combine.s2bak: Combine SO, S2 and BaK objects

View source: R/s2bak_fit.R

combine.s2bakR Documentation

Combine SO, S2 and BaK objects

Description

Combines separately fitted SO, S2 and BaK models into a single S2BaK object. The output will be identical to running the entire process in fit.s2bak function, and can be used in the same situations.

Models can be partially provided, for instance only SO and BaK, in which case the use of s2bak predict functions will not apply S2 but instead only run predictions with sightings-only and BaK adjustment.

Components of s2bak models can be added or replaced using the replace.s2bak function.

Usage

combine.s2bak(so = NA, s2 = NA, bak = NA)

Arguments

so

output from fit.s2bak.so or fit.s2bak.s2 without survey data.

s2

output from fit.s2bak.s2 function

bak

output from fit.s2bak.bak function

Value

Object of class s2bak, equivalent to having run fit.s2bak

Examples

## See ?fit.s2bak


leung-lab/s2bak documentation built on March 1, 2023, 9:10 a.m.