Skip to content

Estimate Ratio

Estimate Ratio

estimate_ratio(
object,
intent,
domain_pairing = "all",
include_components = FALSE
)
## S4 method for signature 'PostStratifiedRatioEstimator'
estimate_ratio(
object,
intent,
domain_pairing = c("all", "matched"),
include_components = FALSE
)
  • object: A PostStratifiedRatioEstimator object.
  • intent: A fiaplyr_ratio_intent object, usually created via ratio(tree(...), cond(...)).
  • domain_pairing: Domain pairing strategy, either "all" (default) for all numerator/denominator domain combinations or "matched" to only retain rows where both sides share the same domain columns and values.
  • include_components: Logical; if TRUE, append numerator and denominator component estimates and standard errors (estimate_n, se_n, estimate_d, se_d) to the output.

Functions

estimate_ratio(PostStratifiedRatioEstimator): Estimate ratio for PostStratifiedRatioEstimator