powered by
This function is for internal use only.
check_initial(initial, nchains)
A named matrix.
Either a vector or matrix,.
Integer scalar. Number of chains.
When initial is a vector, the values are recycled to form a matrix of size nchains * length(initial).
initial
nchains * length(initial)
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
Run the code above in your browser using DataLab