Open marcus-campbell opened 7 years ago
great -- thanks @marcus-campbell! I hear you w/r/t the problem of having only one estimate per temperature and nutrient level. I agree it would be good to discuss that later...
Do the relative magnitudes of the r and K estimates across temperatures and nutrient levels make sense to you?
The previous code was modified in order to group the observational data by treatment group (8 combinations of different temperatures and phosphorus treatments)
A bug was found (which was also present in the previous, non-grouped script), which caused the initial model conditions to be set incorrectly. This likely reduced the accuracy of the density estimates, but also probably negatively affected the quality of parameter estimation for r. This bug has since been resolved, and also corrected in older scripts.
Currently the code is configured to provide parameter estimates for both r and K, as well as to show how the simulated dynamics compare to the actual experimental data. The latter is a new feature, and is useful for judging the quality of the fitting.
I feel much more confident about the quality of the parameter estimates for the grouped treatments. The fitting algorithm "has much more to work with", and having multiple observations at each time point also allows us to employ a few additional functions that could possibly aid with the fittings.
However, when trying to estimate the activation energies, this method suffers from having a small "sample size". Using the old method, we had 24 parameter estimates per resource treatment, whereas now we have 4. Consequently the confidence intervals are very large. I'd like to discuss this issue further in person.
The initial commit is below; further optimization has occurred since then. SHA: b304e77513f94b44bee27619adbf51513c718950
Most recent commit: SHA: c3be60e60129675c8ad7e5eb5467bd018e3c54bc