sample from normal distribution, given summary stats

take.samples(summary, sample.size = 10^6)

Arguments

summary

data.frame with values of mean and sd

sample.size

number of samples to take

Value

sample of length sample.size

Examples

# NOT RUN {
## return the mean when stat = NA
take.samples(summary = data.frame(mean = 10, stat = NA))
## return vector of length \code{sample.size} from N(mean,stat)
take.samples(summary = data.frame(mean = 10, stat = 10), sample.size = 10)

# }