Description Usage Arguments Value Examples
Deifine a Discrete Parameter
1 2 |
choices |
A vector of valid choices. Can be any type. |
initial |
The initial value (must be one of |
weights |
Probability weights for each choice (must be of same length as |
ordered |
TRUE if order matters, FALSE otherwise. |
... |
Additional arguments to be used in optimisation methods |
An object of type 'param.discrete'
1 2 3 4 5 6 7 8 | # regular discrete parameter
param.discrete(c("inside", "outside", "I don't care"))
# ordered discrete parameter
param.discrete(c("disagree", "somewhat agree", "agreee"), ordered=TRUE)
# create a parameter that is a loaded coin
param.discrete(c(TRUE, FALSE), weights=c(0.75, 0.25))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.