Description Usage Arguments Value Examples
Generate an initial parameter value
1 2 3 4 5 6 7 | initial.value(param, n = 1, seed = NULL)
## Default S3 method:
initial.value(param, n = 1, seed = NULL)
## S3 method for class 'param.fixed'
initial.value(param, n = 1, seed = NULL)
|
param |
An object of type 'param' |
n |
The number of initial values to generate |
seed |
The random seed |
A vector of length n
with valid parameter values
1 2 3 | p <- param.discrete(c('heads', 'tails', 'edge of coin'),
weights=c(0.45, 0.45, 0.1))
initial.value(p, n=10)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.