get_posterior_probability_from_cutoff_target: Get posterior probability from proportion or population

get_posterior_probability_from_cutoff_targetR Documentation

Get posterior probability from proportion or population

Description

Get posterior probability from proportion or population

Usage

get_posterior_probability_from_cutoff_target(
  posterior_samples,
  population_count_year = 1,
  population_count_relative_to_year = 1,
  indicator,
  year,
  relative_to_year = NULL,
  above,
  cutoff
)

Arguments

posterior_samples

‘Array’ The samples array from fit_fp_csub.

indicator

'integer' Indicator index (1 = modern, 2 = traditional, 3 = unmet)

year

'integer' Year index

above

‘logical' If FALSE then it’s below

cutoff

'numeric' Cutoff proportion or population

population_count

'integer' Number of individuals in the sample population (1 to calculate from proportion)

Value

'numeric' Posterior probability


FPRgroup/FPEMcountry documentation built on April 24, 2023, 4:32 p.m.