Hello,
I'm running multi-session models (described in my last post) with high levels of variation between sessions (near trap saturation in summer, very low densities in winter) and need to include starting values. I've tried using a previously fitted model but always recieve the error message
Error: length(start) == NP is not TRUE
I then moved on to trying the starting values as an object. I used "start1<- c(log(77),logit(0.14),log(7.7),.....)" . When printed the values were transformed and everything looked fine. But when run in the model (myCH, model = list(D ~ session, g0 ~ session, sigma ~ session), start = "start1",...), I received the same error message. Finally I was able to get the model to run by entering the transformed values directly (myCH, model = list(D ~ session, g0 ~ session, sigma ~ session), start = c(1.9,-0.85, 0.88,...), even though input was the exact same as the object. Any idea why this might be?
Also, while I believe I understand how to input values for a simple model like above, I'm having trouble finding examples of proper syntax for more complicated ones. What if I want to try a learned or Markov trap response (D ~ session, g0 ~ b, sigma ~ session)? Would it be right to assume that now I require a 4th parameter and my model should look like this :(myCH, model = list(D ~ session, g0 ~ b, sigma ~ session), start = c(1.9,-0.85, 0.88,-1,...)? Just as important, how would this change if i wanted to look at just sigma (D ~ session, g0 ~ session, sigma ~ b) or both?
Thanks in advance for any help, it's always greatly appreciated!
Greg