Generates a grid of parameter values to evaluate over.
Arguments
- M
an integer.
- rval
a numeric vector with parameter values for the grid. If not provided, it will be generated by dividing [0, 1] into
nr
equal intervals.- nr
an integer. Ignored if
rval
is provided.
Examples
reval <- generateReval(M = 2, nr = 1e2)
dim(reval)
#> [1] 2 5151