computeDeduplicationFactors: Computes the deduplication factors for each region.

Description Usage Arguments Value References

View source: R/computeDeduplicationFactors.R

Description

Computes the deduplication factors for each region of the map. For a complete description of these factors an interested reader can consult the description of the methodological framework https://webgate.ec.europa.eu/fpfis/mwikis/essnetbigdata/images/f/fb/WPI_Deliverable_I3_A_proposed_production_framework_with_mobile_network_data_2020_05_31_draft.pdf.

Usage

1
2
3
4
5
6
computeDeduplicationFactors(
  dupFileName,
  regsFileName,
  postLocPrefix,
  postLocPath
)

Arguments

dupFileName

The name of the file with the duplicity probabilities. This file is the output of the deduplication package.

regsFileName

The name of the .csv file defining the regions. It has two columns: tile, region. The first column contains the IDs of each tile in the grid while the second contains the number of a region. This file is defined by the user and it can be created with any text editor.

postLocPrefix

The file name prefix of the files with posterior location probabilities for each device. The whole file name is composed by a concatenation of prefixName, _ and deviceID. The extension of these files is .dt.csv

postLocPath

The path to the location where the posterior location probabilities are stored.

Value

A data.table object with the deduplication factors for each region.

References

https://github.com/MobilePhoneESSnetBigData


bogdanoancea/inference documentation built on Nov. 28, 2020, 9:20 p.m.