simAdmissionData: Admission data simulation function

View source: R/simAdmissionData.R

simAdmissionDataR Documentation

Admission data simulation function

Description

Simulate admission data

Usage

simAdmissionData(n, m = 5, diagnoses, startDate = "1995-01-01")

Arguments

n

Number of patients

m

Maximal number of admission dates per patient

diagnoses

List of diagnoses. Defaults to all possible ICD10 codes: http://www.icd10data.com/ICD10CM/Codes

startDate

starting date

Details

Simulate admission data alike the Danish medical registry

Author(s)

Helene Charlotte Rytgaard hely@sund.ku.dk, Thomas Alexander Gerds tag@biostat.ku.dk

Examples

## a single subject
set.seed(1)
simAdmissionData(1)
## 7 subjects
set.seed(28)
simAdmissionData(7)


tagteam/heaven documentation built on Oct. 24, 2024, 7:40 p.m.