powered by
Produces a random sample of k groups drawn from the same distribution with different parameters.
generateSample(N, k, distr = "gaussian")
sample size
number of groups
type of distribution from c("norm", "exp", "beta")
c("norm", "exp", "beta")
list with two fields: numeric variable response and factor variable factor.
list
response
factor
# NOT RUN { generateSample(100, 2) generateSample(100, 2, "exp") # }
Run the code above in your browser using DataLab