define_mpi_specs {mpindex} | R Documentation |
Define MPI specifications: dimensions, indicators, and weights
Description
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.
Usage
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
)
Arguments
Value
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')'.
See Also
Examples
# 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()
[Package mpindex version 0.2.1 Index]