powered by
Samples a dataset based on inputs for either the rtnorm, rbeta or 'rnorm' distributions
sampler_hd( dat, mode = "rtnorm", n = NULL, mean = NULL, sd = NULL, lower = 0, upper = NULL )
a vector of samples values from the distribution
= A decimal value. The SD value to test (from the UI) - if not available in the UI, then do not create a distribution
= A string. Either 'rtnorm', 'rbeta' or 'rnorm' to determine which distribution to generate
An integer value. The number of samples to generate
A decimal value. The mean for the truncated normal distribution
A decimal value. The standard deviation of the distribution to simulate
A decimal value. The lower limit for the distribution
A decimal value. The upper limit for the distribution
sampler_hd(dat=0.1, mode='rtnorm', n=100, mean=9, sd=0.1)
Run the code above in your browser using DataLab