Comments (3)
Ok, here's the deal:
In natalie's original code, she calculates mean worker mass as the mean of the predicted masses of the hypothetical workers (~0.148)
wkr_mass_mean <- mean(wkr_mass_f(wkr_size_1))
She uses the same mean mass for calculating pollen needed to produce 1 gram of worker
poln_per_wkrmass <- poln_per_cell / wkr_mass_mean
AND larval recruitment
wkr_larv <- daily_poln_return / (poln_per_wkrmass * wkr_mass_mean)
Meaning that the mean worker mass just canceled out in this equation. Then, after a phone conversation, Natalie told me that the mean worker mass should be the observed mean mass, not the mean mass of hypothetical workers. The observed mean is ~0.125.
I think that observed mean is only for the pollen per gram of worker estimation not for the larval recruitment calculation. So, new equation:
poln_per_wkrmass <- poln_per_cell / 0.1254111
Now, the other confusion that I have is why isn't the worker mass in the denominator of the larval recruitment equation a vector of worker masses of different sizes?
The equation in the manuscript is written as:
fx = p / pwg * yx
where p is daily pollen return, pwg is the amount of pollen needed to make 1 gram of worker mass, and yx is the mass of the worker of size x.
In the code, p (daily_poln_return
) is a vector of pollen returned by old workers of size i. pwg (poln_per_wkrmass
) is a constant, as is yx (wkr_mass_mean
). Shouldn't daily pollen return be a constant and yx be a vector?
from bumbl.
In natalie's updated manuscript the new larval recruitment equation is:
Where is the pollen cost per worker (equivalent to pwg above?).
from bumbl.
I think at this point, I probably am not going to be including Natalie's IPM in this package.
from bumbl.
Related Issues (20)
- Add column for convergence HOT 1
- Implicit assumption of colony ID column name in bumbl() HOT 1
- Handle dates correctly HOT 1
- Remove `.nb` versions of bumbl() and brkpt()
- Add contributions.md
- Add a timeline to README
- Warning when number of time steps >> number of tau values HOT 1
- Column name conflicts with covariates when agument = TRUE
- Should plots be marginal effects plots? HOT 1
- Citation should include Eric as a co-author HOT 1
- allow user to supply vector of tau, one value per colony HOT 2
- use optim() for finding optimal value of switchpoint HOT 1
- Fit switchpoint model with all colonies and covariates (rework bumbl() internals) HOT 3
- Inconsistency between vignette and code: should time column be edited to be tau when time > tau? HOT 3
- Add Zenodo DOI to package citation
- bumbl() assumes there is a switchpoint, doesn't test for one
- hex logo HOT 1
- remove `broom` dependency
- Convergence errors with `brkpt()` using OpenBLAS HOT 1
- Release bumbl 1.0.3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bumbl.