fit_fp_c | R Documentation |
Fits the family planning estimation model and returns samples and bias adjusted observations for respective run. Please see fit_fp_csub
for additional argument default settings
fit_fp_c(population_data = NULL, is_in_union, ...)
population_data |
‘Data.frame’ Population count data such as |
is_in_union |
‘Character’ "Y" if women are in union. |
division_numeric_code |
‘Numeric’ A number associated with the country. See the data from |
first_year |
‘Numeric’ The first year of model estimates in output. The model will be fit to all data, including dates before this date if available. |
last_year |
‘Numeric’ The last year of model estimates in output. The model will be fit to all data, including dates after this date if available. |
surveydata_filepath |
‘Character’ Path to survey data. Survey data should be a .csv with the following format |
service_stats_filepath |
‘Character’ |
subnational |
'‘Logical’ If TRUE runs the sub national model. |
diagnostic |
'‘Logical’ If TRUE saves the full jags output. |
‘List’
posterior_samples ‘Numeric array’ An array of samples of dimension chains x samples x years x proportions.
core_data ‘Data.frame’ The processed data associated with the model run from core_data
.
https://github.com/FPcounts/FPEM
See the reposiotry url in references for detailed examples
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.