set_prop_family {isotracer}R Documentation

Set the distribution family for observed proportions

Description

Set the distribution family for observed proportions

Usage

set_prop_family(nm, family, quiet = FALSE)

Arguments

nm

A networkModel object (output from new_networkModel).

family

Allowed values are "gamma_cv", "beta_phi", "normal_cv", and "normal_sd".

quiet

Boolean, if FALSE print a message indicating which distribution family is used for proportions.

Value

A networkModel object.

Examples

library(magrittr)

m <- new_networkModel() %>%
  set_topo(links = "NH4, NO3 -> epi -> pseph, tricor")
m <- m %>% set_prop_family("beta_phi")
m
attr(m, "prop_family")


[Package isotracer version 1.1.5 Index]