bam_data: Preprocess data for BAM estimation

Description Usage Arguments

View source: R/dataprep.R

Description

Produces a bamdata object that can be passed to bam_estimate function

Usage

1
bam_data(w, s = NULL, dA = NULL, Qhat, max_xs = 30L, seed = NULL)

Arguments

w

Matrix (or data frame) of widths: time as columns, space as rows

s

Matrix of slopes: time as columns, space as rows

dA

Matrix of area above base area: time as columns, space as rows

Qhat

Vector of Q estimates. Needed to create prior on Q.

max_xs

Maximum number of cross-sections to allow in data. Used to reduce sampling time. Defaults to 30.

seed

RNG seed to use for sampling cross-sections, if nx > max_xs.


markwh/bamr documentation built on Aug. 7, 2020, 11:52 p.m.