res_id: Identify sales residency

Description Usage Arguments Functions See Also

Description

The intended use is to prioritize residency identification using 3 different methods: (1) by license type, (2) by other sales by the same customer, and (3) based on customer address.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
res_id_type(
  sale,
  lic,
  var = "lic_res",
  caption = "Identification: by license type"
)

res_id_other(
  sale,
  caption = "Identification: other sales by the same customer"
)

res_id_cust(
  sale,
  cust,
  var = "cust_res",
  caption = "Identification: by customer address"
)

res_id_summary(sale, caption = "")

Arguments

sale, cust, lic

license data frames

var

variable name that holds reference residency variable

caption

text to be printed above identification summary

Functions

See Also

Other finalize production data: cust_dup_demo_plot(), cust_dup_demo(), cust_dup_identify(), cust_dup_nomissing(), cust_dup_pct(), cust_dup_pull(), cust_dup_samp(), cust_dup_year()


southwick-associates/salicprep documentation built on Oct. 6, 2020, 12:03 p.m.