take.samples.Rd
sample from normal distribution, given summary stats
take.samples(summary, sample.size = 10^6)
summary | data.frame with values of mean and sd |
---|---|
sample.size | number of samples to take |
sample of length sample.size
# 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) # }