Open steffilazerte opened 6 years ago
I think that's a good idea! Also if you think there's a better way to fill in the missing values, please feel free to suggest it.
I hadn't really looked into dealing with missing values, the only reason I came up with this idea, is because I ran into the code 1 convergence warning :) I'll let you know if anything comes to me, though.
makeWellTS returns a message indicating any problems with convergence (also, perhaps that should be
message()
rather thanprint()
?).Code 1 reflects the fact that the maximum number of iterations have been reached before convergence (According to the
optim
documentation). What about an argument allowing the user to pass options viaoptim.control
in the call toStructTS
? This should allow users to increase the maximum number of iterations if they need to.