Hi all,
I have a multi-state capture recapture model incorporating a structural equation model (code attached). The model builds fine when I use calculate=F, however, when I use RModel$calculate() to check the initialization, I get the following error: Error in parse(text = x) : negative length vectors are not allowed.
I found a post about a similar error here in the google group which seemed to be related to the initial values, but I cannot find my mistake in the initial values. If I run RModel$initializeInfo() I got the following message:
# Missing values (NAs) or non-finite values were found in model variables: alive.
# This is not an error, but some or all variables may need to be initialized for
# certain algorithms to operate properly. For more information on model initialization,
# see help(modelInitialization).
Alive is the initial state matrix that indeed has NAs for the occasions before the first capture. As far as I found in other multi-state examples, that should not cause the error about the negative length vectors?!
Next, when I compile the RModel I get the following warnings:
#compiling... this may take a minute. Use 'showCompilerOutput = TRUE' to see C++ compilation details.
#Warning: R object of different size than NimArrDouble. R obj has size 1 but NimArrDbl has size 1574.
#Warning: R object of different size than NimArrDouble. R obj has size 1 but NimArrDbl has size 1574.
#Warning: R object of different size than NimArrDouble. R obj has size 1 but NimArrDbl has size 1574.
#Warning: R object of different size than NimArrDouble. R obj has size 1 but NimArrDbl has size 1574.
#Warning: R object of different size than NimArrDouble. R obj has size 1 but NimArrDbl has size 1574.
#compilation finished.
May this be related to the above mentioned error?
Thank you very much!
Magali
--
You received this message because you are subscribed to the Google Groups "nimble-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nimble-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/nimble-users/04f829b7-01e6-409e-980c-be7050236728n%40googlegroups.com.