Closed ghost closed 6 years ago
For reference I managed to sort out the code. Always check your parameters with the handy function check.rpath.params() it is super useful for guidance. In my case what was wrong was some input NA values as supposed. When setting PB no NA values should be entered for species but always >=0.
For reference I managed to sort out the code. Always check your parameters with the handy function check.rpath.params() it is super useful for guidance. In my case what was wrong was some input NA values as supposed. When setting PB no NA values should be entered for species but always >=0.
Dear all,
I rerun the ecopath example that is provided in the vignettes and everything is fine. However when I reproducing another EwE model the rpath() function does not work.
I have tried both create.rpath.params() and read.rpath.params() with input files in the same format as the object list that rpath creates. I came to the conclusion that must be something about figures with 0 values or NA values in the basic model parameters or diet parameters. Rpath reproduces the same estimations of QB, Biomass and Consumption as EwE with the input data for multistanza groups and individuals (even though I don't introduce values of Production to Biomass for none of my 5 multistanza groups). This suggests that something maybe wrong in the data for the model object and the diet object but I cannot see were or what.
Please any ideas, suggestions or further insights on what could be wrong would be super helpful.
The diagnostic of the error:
Error in svd(X) : infinite or missing values in 'x'
I can also provide anyone with the .Rmd file with the create.rpath.params() function and the .csv files for the read.rpath.params() function.
Thank you very much in advance.
All the best,
Tom.