View source: R/define-mpi-specs.R
| define_mpi_specs | R Documentation |
Use to define MPI dimensions, indicators and its corresponding weights using any of the accessible file types: .xlsx (Excel), .json, .csv, or .txt (TSV). You can also set the poverty cutoff or list of poverty cutoffs (to achieve gradient list of MPIs) that will be used in the computation of MPI.
define_mpi_specs(
.mpi_specs_file = NULL,
.indicators = NULL,
.poverty_cutoffs = 1/3,
.unit_of_analysis = NULL,
.aggregation = NULL,
.uid = NULL,
.source_of_data = NULL,
.names_separator = ">",
.save_as_global_options = TRUE
)
MPI specifications data frame required in compute_mpi function. As as side effect, a global option named ‘mpi_specs' will be saved for efficiency. See 'getOption(’mpi_specs')'.
compute_mpi
# Use sample specs file included in the package
specs_file <- system.file(
"extdata",
"global-mpi-specs.csv",
package = "mpindex"
)
# To see other sample specs file (with different supported file format)
system.file("extdata", package = "mpindex") |>
list.files()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.