Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding animal orgs #2

Open
wants to merge 18 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 26 additions & 0 deletions attempt_6_animals/get_repeated_vars.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
cat simple-reference-animals.squiggle |
sed "s|^//.*||g" | # delete lines starting with //
sed 's|^/\*.*||g' | # delete lines starting with /*
sed 's|.*\*/$||g' | # delete lines ending with */
sed -e 's/\s/\n/g' | # transform spaces into newlines
sort | #
uniq -c | # get unique words, with count
sort -nr | # sort by number of repeats
awk '{if($1 > 2) printf $0 "\n"}' | # only choose words which have been mention more than thrice:
# one to define, one to use, and one repeat which should be correlated
grep -vE "[012\(\{\)\}+\[\:-]" # delete some symbols which are not going to be variables

cat simple-reference-animals.squiggle |
sed "s|^//.*||g" |
sed 's|/\*.*||g' |
sed -e 's/\s/\n/g' |
sort |
uniq -c |
sort -nr | # ^same as above
grep "\." | # select words with a dot in them
awk '{if($1 > 0) printf $0 "\n"}' | # have a threshold of 2 mentions
# 0: definition which will not have a dot
# 1: first usage
# 2: second usage
grep -vE "[012\(\{\)\}+\[\:-]"

41 changes: 37 additions & 4 deletions attempt_6_animals/plans.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,38 @@
- [ ] Do a model for a few animal QALYs
- [ ] Do a model for a few animal foods
## Initial plans

- [x] Do a model for a few animal QALYs
- [x] Do a model for a few animal foods
- [ ] Have a version of foodimpacts
- [ ] Do a model for some animal charities
- [ ] Do a model for all ACE charities
- [x] Do a model for some animal charities
- [-] Do a model for all ACE charities
- [x] Add skeleton for all ACE charities
- [x] Add very rudimentary estimates for all ACE charities
- [x] Transform whatever needs to be transformed to sample sets so that correlations are preserved.
- [x] Take care of positive/negative sign value

## Plans after a bit more thinking

- Estimate a few animal QALYs & foods
- [x] Cow
- [x] Pigs
- [x] Chicken
- [x] Fish
- Estimate the value of a few animal charities, corresponding to helping the four animals above:
- Orgs chosen:
- [ ] Beyond Meat (cows)
- [ ] Something for pigs?
- [x] Fish Welfare Initiative (fish)
- [x] The Humane League: Open Wings Alliance (chickens)
- Add budget and therefore cost-effectiveness
- Specify the timeline value estimates apply to
- Make these estimates valuable
- [ ] Whip them into shape for the relative values project
- [ ] Add some explanations, and send them to ACE

## Discarded plans & notes

I also considered a few other orgs, particularly from [ACE top charities](<https://animalcharityevaluators.org/donation-advice/recommended-charities/>), but discarded because they would require more work, or because they would require more assumptions. Below the orgs and reasons:

- [-] Faunalytics: Too meta, postpone until later.
- [-] Wild Animal Initiative: Unclear what the cost-effectiveness of a wild animal intervention would be, and therefore unclear what the value of redirecting funding would be. Postpone
- [-] The Good Food Institute: $55M: too many programmes. Maybe try to get ACE to estimate a few of their more important programmes.
Loading