ricd10: Return a random icd10 code.

Description Usage Arguments Value See Also

View source: R/example_analysis__hes_ip.R

Description

Return a random icd10 code.

Usage

1
2
3
ricd10(n = 1024, mix_type = c("5050aalen34mix", "5050salen34mix",
  "5050uclen34mix", "5050aclen34mix", "len3", "len4", "len34", "aa_only",
  "sa_only", "uc_only", "ac_only"), nmultiple = 1)

Arguments

n

(integer) number of records to return

mix_type

(character) Specify code mix - len3:all Xnn, len4:all Xnnn, len34:any Xnn/Xnnn, aa_only:only alcohol attributable related, or 5050aalen34mix a 50/50 mix of aa_only and len34

nmultiple

(integer) return up to this many codes separated by ";" in each record. Default 1 (and no ";").

Sampling from generated code space used, however for 50/50 mix due to problme space the icd10 codesa re generated randomly on-the-fly rather than sampled from full generated pattern space. Still random but might not be the same random ... but probably is.

Value

(character vector) n records of 1 to nmultiple (varying) icd10-like codes.

See Also

Other examples_of_analysis: ab_labels_from_breaks, create__dummy_hesip, create_lu_ageband, create_lu_gender, examples_of_analysis, gen_codes, main__example_analysis__aa_morbidity, main__example_analysis__ac_morbidity, main__example_analysis__sa_morbidity, main__example_analysis__uc_morbidity, main__examples_analysis


ianbatesncc/aafractions.ncc documentation built on May 3, 2019, 3:34 p.m.