Commit graph

409 commits

Author SHA1 Message Date
71d02ff8dd
feat(script): Add source note to exclusion term table 2024-02-17 16:16:11 +01:00
86610803d4
feat(data): Update extraction matrix 2024-02-16 18:01:59 +01:00
74a9d201b5
fix(script): Suppress bibtex warning on import
When first importing bibtex entries, if there are e.g. double entries,
the library gives an 'unsuppressable' warning which will always
appear in the manuscript otherwise. This simply ensures no warning
is displayed by turning off logging for the duration of their use.
2024-02-16 18:01:45 +01:00
eaaba00755
fix(data): Fix discrepancies of raw data and findings summaries
Fixed especially citation keys that were entered wrong or carried the wrong year.
2024-02-16 17:59:57 +01:00
e032a5c192
refactor(code): Extract internal validity ranking keywords
Extracted keywords into dict which can be extended with either keywords
or rankings as needed, providing more flexibility.
2024-02-16 17:59:09 +01:00
4e865ee2b5
feat(code): Warn if findings studies do not match available
Since we add the studies that bring findings for the finding tables manually,
this ensures that we spot any mistakes when entering them, or similar
discrepancies on the other side of the raw data.
2024-02-16 17:58:02 +01:00
8cd6dc790d
refactor(code): Move zotero live citations to quarto ext
Instead of it lying in the src directory (where, reasonably, only python
data extraction, processing and modelling code should lie), I turned
the retorque filter into a simple quarto extension.
Could reasonably be repackaged separately from this repo since I believe
other people could profit off it.
2024-02-16 12:06:43 +01:00
fac7d4c86a
refactor(code): Split validity calc and matrix extract
Validity calculation belongs to the modelling, so we put it into the
validity module.

Extracting our matrix is a processing step so we made its own matrix
module and put it in their.
Should hopefully provide better separation of concerns going forward.
2024-02-16 11:25:19 +01:00
8333bbe9be
refactor(code): Rename validity module
From strength of findings to the more general validity module, which can then
in turn contain the 'add_to_findings' function which unsurprisingly adds
validities to findings. Makes more sense to me.
2024-02-16 10:24:31 +01:00
5f9f3a1370
feat(data): Make docx table style left-aligned
Though it does not seem to work on its own.
2024-02-15 20:22:00 +01:00
a05f274a16
chore(script): Add descriptive labels to all compute cells 2024-02-15 20:21:19 +01:00
58ef7f84a0
feat(script): Add agency-based findings table 2024-02-15 20:11:38 +01:00
d29dd03a22
feat(script): Add structural findings table
Added main findings for structural policies. Moved environmentally-focused
infrastructure projects into structural (infrastructure) policies since
they are not in fact institutional policies.
2024-02-15 18:50:47 +01:00
a63d6c4a12
refactor(script): Move Cieplinski to social protection 2024-02-15 16:37:36 +01:00
0d7bdb119b
refactor(script): Move Adams2015 to all relevant policy areas
Moved to be represented in regulatory systems, trade lib and education.
2024-02-15 16:37:01 +01:00
f8abe295e0
feat(script): Add note to institutional findings table 2024-02-15 16:36:05 +01:00
d4aa40b277
fix(code): Ensure all studies are part of intervention df
Some studies were missing crucial fields (prelim studies mostly) which means they
are dropped from being counted in 'by_intervention' aggregation. While
ultimately those will have to have their fields filled correctly, for now we can
simply ensure all studies are aggregated correctly per intervention.
2024-02-15 16:35:37 +01:00
62e3fc94a2
refactor(script): Move intervention type vis to synthesis 2024-02-15 16:34:10 +01:00
953720ce54
refactor(code): Move finding table validities into model module
All findings tables can use the validities functionality to add strength of
evidence (internal/external) to themselves. Generalized the function to
work for any main findings csv (to dataframe) table not just institional
findings.
2024-02-15 16:32:46 +01:00
5e405e05d7
feat(data): Add labour regulation findings 2024-02-15 16:30:23 +01:00
8dba61fefe
fix(script): Only enable live zotero filter for docx format
Since we only make use of the live zotero citations in docx format, we should
also only enable the filter there. This commit fixes that.
2024-02-15 10:53:59 +01:00
d058759f49
feat(script): Display strength of findings evidence in binned format
- for weak evidence, + for substantiated evidence, ++ for strong evidence.

Currently separates between internal and external, and uses the bins:
0.0-2.9 for weak
3.0-5.9 for substantiated
6.0-... for strong evidence
2024-02-15 10:52:52 +01:00
1441845d4d
chore(data): Unify spelling of direct transfers intervention 2024-02-15 10:50:23 +01:00
004c2f7410
feat(script): Add findings table as computation 2024-02-14 22:36:00 +01:00
588cf4a3c9
fix(code): Differentiate between national and census data 2024-02-14 22:35:35 +01:00
a51d55e3a5
chore(data): Update justified template document 2024-02-14 22:34:55 +01:00
0a92f0bca0
fix(data): Add citation information to prelim studies 2024-02-14 22:34:36 +01:00
cc472acdee
fix(code): Add logistic regression to regressions 2024-02-14 20:35:10 +01:00
bf83812ef1
fix(data): Update representativeness and designs of studies 2024-02-14 19:14:19 +01:00
227adb33f8
feat(script): Begin using validities for visualization 2024-02-14 17:30:04 +01:00
41b2d651a6
fix(code): Fix live zotero gen with quarto 1.4
Quarto 1.4 does not like a bare 'zotero' metadata frontmatter key with
sub keys for the filter options. This commit updates the zotero-live
citations filter plugin by retorque and changes its configuration so
it takes settings either through the 'zotero' key or, if that one is
not found, through the 'zoterolive' key. Same options.
2024-02-14 17:29:27 +01:00
1804b08c3f
feat(data): Add internal and external validity to extracted 2024-02-14 16:21:42 +01:00
157d437611
chore(code): Fix setting with copy warning 2024-02-14 16:18:40 +01:00
72e11a67d7
chore(code): Format code 2024-02-14 16:02:42 +01:00
b0f7f49ebc
feat(code): Add docx landscape shortcodes 2024-02-14 16:01:52 +01:00
092b8d29c8
feat(script): Add institutional summary of findings 2024-02-14 16:01:18 +01:00
6554b0f8e9
feat(script): Use new in-text computation interpolations
Can now access python variables directly from markdown text in-flow.
We can make use of this to dynamically update the numbers for scoping
review steps in the descriptive part.
2024-02-14 15:53:42 +01:00
2de93d506f
fix(data): Fix representativeness of local studies
Studies that have a non-subnationally representative underlying
dataset.
2024-02-14 15:50:00 +01:00
0e7e5e25b3
fix(data): Fix study date format 2024-02-14 15:49:06 +01:00
a0794c6d09
feat(code): Add validity calculation 2024-02-14 15:48:47 +01:00
0c596e2f43
fix(data): Fix docx template table line height 2024-02-13 20:58:02 +01:00
5369a12de6
fix(script): Move synthesis study order 2024-02-13 20:56:13 +01:00
6c28fd70b2
feat(script): Add simple validity data prep 2024-02-13 20:55:50 +01:00
e69f741197
chore(script): Change table organization 2024-02-13 20:55:00 +01:00
2b9103ba70
feat(notes): Add data validity ranking documentation 2024-02-13 16:13:56 +01:00
a9062e9984
feat(notes): Begin creating data for main findings tables 2024-02-13 16:13:42 +01:00
1f116dedef
fix(data): Fix wrong data entries, improve wording 2024-02-13 16:13:16 +01:00
14878c571e
feat(data): Add previous Miguel study
Useful for ranking of validities
2024-02-13 16:12:46 +01:00
d364cd5117
feat(code): Add notebook to rank study validities 2024-02-13 16:12:08 +01:00
dfd16ed7a2
feat(notes): Add validity explanation link 2024-02-09 16:55:53 +01:00