simData(n, pars, tt, pdfND, fun.density = Voss.density, args.density = list(prec = 3), npars = 5, return.pdf = FALSE)length(pars) must be a multiple of npars.fun.density, aside from tt, pars, and a boundary argument ('upper' or 'lower')fun.density must be evaluated with. If length(pars) > npars each npars values in pars will be seen as the parameter values of a condition.genData returns a list containing the probability density function used and the data, if FALSE genData returns a dataframe with simulated data.return.pdf is TRUE it returns a list where the
first element is the sorted dataframe, the second through the fifth elements are lists
that contain densities used for simulating data.
tt.
The number of conditions is defined as length(pars) / npars.
tt = seq(0, 5, .01)
pdfND = dbeta(tt, 10, 30)
n = 100
pars = c(1, 2, .5, .5, .5)
dat = simData(n, pars, tt, pdfND)
head(dat)
Run the code above in your browser using DataLab