missDeaths (version 2.7)

md.data: md.data

Description

Creates information of covariates that are copies of covariates from an existing data set. This function call must be added to the md.simparams object.

Usage

md.data(data, randomsample = FALSE)

Arguments

data

data.frame

randomsample

controls whether the rows of the dataset are randomly sampled (with replaceent) or simply copied

Examples

Run this code
# NOT RUN {
# }
# NOT RUN {
library(missDeaths)

sim = md.simparams() +
   md.data(data) 
# }

Run the code above in your browser using DataCamp Workspace