nbc4vaData {nbc4va} | R Documentation |
Example of clean data in nbc4va
Description
A random generation of clean verbal autopsy synthetic data for use in demonstrating the nbc4va package.
Usage
nbc4vaData
Format
A dataframe with 100 rows and 102 columns:
id (vectorof char): the case identifiers
cause (vectorof char): the cause of death for each case
symptom1..100 (vectorsof (1 OR 0)): whether the symptom is recorded as present (1) or not (0) for each case (row)
Example:
id cause symptom1 symptom2 symptom3 "a27" "cause10" 1 0 0 "k37" "cause2" 0 0 1 "e57" "cause8" 1 0 0
Source
Random generation using the sample
function with set.seed
set to 1.
Examples
library(nbc4va)
data(nbc4vaData)
[Package nbc4va version 1.2 Index]