Creates information of a normally distributed numeric covariate with the specified mean and standard deviation. This function call must be added to the md.simparams object.
md.simparams
md.norm(name, mean = 0, sd = 1)
name of the covariate
mean and standard deviation
# NOT RUN { # } # NOT RUN { library(missDeaths) sim = md.simparams() + md.norm("X", 0, 1) # } # NOT RUN { # }
Run the code above in your browser using DataCamp Workspace