check_initial | R Documentation |
This function is for internal use only.
check_initial(initial, nchains)
initial |
Either a vector or matrix,. |
nchains |
Integer scalar. Number of chains. |
When initial
is a vector, the values are recycled to form a matrix of
size nchains * length(initial)
.
A named matrix.
init <- c(.4, .1)
check_initial(init, 1)
check_initial(init, 2)
init <- matrix(1:9, ncol=3)
check_initial(init, 3)
# check_initial(init, 2) # Returns an error
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.