Finds the set of variance component proportions within a specified distance from a starting proportion

find_candidate_states(h2s_matrix, step_size, old_state)

Arguments

h2s_matrix

Mxl matrix of all valid variance component proportions for M random effects

step_size

value measuring the maximum euclidean distance to a new set of variance component proportions

old_state

index in h2s_matrix of the current value of the variance component proportions

Value

vector of indices of h2s_matrix giving new candidate variance component proportions