Welcome to ClientVPS Mirrors

Simple Simulation

Simple Simulation

library(MPI)
library(kableExtra) 

Loading Data

MPI::examplePovertydf is a simulation poverty data frame contains 16 indicators column which 1 means deprived and 0 means not deprived, and simulated forth-level administrative division of France.

data(examplePovertydf)
Access to health care Child Mortality Access to clean source of water Access to an improve sanatation Electricity Asset ownership Cooking Fuel Housing Materials School lag School attendance Years of education Region
1 0 1 0 1 1 1 0 0 0 1 Olmeto
0 0 1 1 0 0 0 0 1 1 1 Olmeto
1 0 1 1 1 1 1 0 0 0 0 Olmeto

Calculation

For calculating MPI using AF_Seq for sequential run or AF_Par for parallel run.

Input will be

out_seq <- AF_Seq(examplePovertydf, g = "Region", k = 3)

Output will be list of lists separated into group, and each list contains

## [1] "Bastia"
## [1] 2
## [1] 2
## [1] 1
## [1] 0.4090909
## [1] 0.4090909

Need a high-speed mirror for your open-source project?
Contact our mirror admin team at info@clientvps.com.

This archive is provided as a free public service to the community.
Proudly supported by infrastructure from VPSPulse , RxServers , BuyNumber , UnitVPS , OffshoreName and secure payment technology by ArionPay.