We have tried to implement a short-run long-run function with the hmmSSF function in order to quickly test multiple initial parameters (short run), pick the best one, and then run a long run. Our goal is to avoid issues with algorithm convergence based on the specific choice of initial parameters.
To achieve this, we used the maxit option in the hmmSSF function. Based on the function's help, it seems we can simply set, for example, maxit = 100 for a maximum of 100 iterations. However, doing so hmmSSF(..., maxit = 100) results in the following error:
Error in hmmSSF(ssf_formula = ssf_formula, n_states = n_states, data = data, :
unused argument (maxit = 100)
Using the following code,hmmSSF(..., optim_opts = list(maxit = 100)), works correctly.
It would be great if you could update the documentation of the hmmSSF function to clarify that the input should be optim_opts as a list with trace and maxit.
Hi,
We have tried to implement a short-run long-run function with the
hmmSSF
function in order to quickly test multiple initial parameters (short run), pick the best one, and then run a long run. Our goal is to avoid issues with algorithm convergence based on the specific choice of initial parameters.To achieve this, we used the
maxit
option in thehmmSSF
function. Based on the function's help, it seems we can simply set, for example,maxit = 100
for a maximum of 100 iterations. However, doing sohmmSSF(..., maxit = 100)
results in the following error:In the
hmmSSF
function code, we can see:Using the following code,
hmmSSF(..., optim_opts = list(maxit = 100))
, works correctly.It would be great if you could update the documentation of the
hmmSSF
function to clarify that the input should be optim_opts as a list with trace and maxit.Thanks a lot!