marginalize_SD: Produce estimates and CIs after marginalizing out a given...

Description Usage Arguments Details

View source: R/marginalize_SD.r

Description

This function requires first running SCOBI_deux with writeBoot = TRUE. An example use is for marginalizing the PBTGroup variable to estimate PBT-derived categories such as PBT-age.

Usage

1
2
3
4
5
6
marginalize_SD(
  estimatesFile = NA,
  bootHier = NA,
  marginalize = "GenParentHatchery",
  alph = 0.1
)

Arguments

estimatesFile

is the Scobi-Deux output "Estim_Totals" or "Estim_Grand_Totals" file that you want to marginalize over.

bootHier

is the "Boot_Hier" file for the corresponding variable in your "Estim_Grand_Totals" file. Note that use of this option requires that you feed the program the "Estim_Grand_Totals" file, not the "Estim_Totals" file

marginalize

is the name of the variable(s) you want to marginalize over. This shoudl be a character vector and can have one or multiple values.

alph

This is the alpha value to use for confidence intervals. So, an alph of .05 will give a 95% CI, with quantiles at .025 and .975.

Details

description2


delomast/fishCompTools documentation built on Jan. 11, 2021, 1:51 a.m.