Open simoncarrignon opened 9 months ago
"Another example, when copying from in-laws: if only one in-law is still alive, the most logical thing would be that traits sexually biased toward the sex of the in-law should be adopted ; the other traits should remain the same"
This is still not the case given the actual implementation of drawFromPool
That has been a big problem for age, it roughly work more or less but it still not perfect: https://github.com/simoncarrignon/mixed-transmission/blob/8af5cdaaae6df1a401e1caee83d442791a4e7ee3/R/socialLearning.R#L114-L120
One aspect is that when some people from the other sex aren't represent ; or when only one individual is available; we may need to return NA, that should be replaced by the traits of the person learning (ie if pool is empty/not 'valid', keep my traits)
Another example, when copying from in-laws: if only one in-law is still alive, the most logical thing would be that traits sexually biased toward the sex of the in-law should be adopted ; the other traits should remain the same .
Need to write a couple of test to illustrate/try that.