create_matching_probabilities_table: Creates a table storing matching probabilities

Description Usage Arguments Value Author(s) Examples

Description

Creates a table storing matching probabilities

Usage

1

Arguments

data

a data frame containing matching probabilities

norm

if TRUE, will normalize the table so the totals sum up to one (defaults to TRUE)

Value

a matching probability table ready to be used for usage with matching.prepare

Author(s)

Samuel Thiriot <samuel.thiriot@res-ear.ch>

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
dwellings_households.pij <- create_matching_probabilities_table(
               data.frame(
                   'surface=1'=c(0.2, 0.1, 0.05, 0.025),
                   'surface=2'=c(0.0375, 0.125, 0.1, 0.05),
                   'surface=3'=c(0.0125, 0.025, 0.1, 0.175),
                   row.names=c("size=1", "size=2", "size=3", "size=4"),
                   check.names=FALSE
                   )
               )
print(dwellings_households.pij)

samthiriot/gosp.dpp documentation built on May 18, 2019, 3:44 p.m.