Skip to content

datenpunk-ch/meerkats

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Meerkats Against Patriarchy

This repository contains the project materials for “Meerkats Against Patriarchy” (data-journalism / thesis-based portfolio project).

What’s in here

  • Project page (HTML): meerkats-against-patriarchy.html
  • Project text (Markdown): meerkats-against-patriarchy.md
  • Figure outputs: figures/ (includes figures/CallProportions.png)
  • Photos: pics/
  • Data: data/ (RDS files used by the plotting script)
  • Scripts: scripts/

Preview locally

From the repository root:

python -m http.server 8000

Then open:

  • http://localhost:8000/meerkats-against-patriarchy.html

Regenerate the call-proportions figure

The page includes figures/CallProportions.png, generated from a fitted brms model and PROP_data.

1) Requirements

  • R installed
  • A working Stan backend (this project used CmdStanR originally)

Install required R packages:

install.packages(c("brms", "dplyr", "tidyr", "tidybayes", "ggplot2", "ggdist"))

2) Provide the fitted model locally

Large fitted model files are ignored by git:

  • models/*.rds is in .gitignore

To regenerate the figure you need the model file available locally at:

  • models/B_prop.rds

3) Run the script

From the repo root:

Rscript scripts/b_prop_interactive.R

This will write:

  • figures/CallProportions.png

Generate milestone-age figures (SEMI / PEAK DIG / FULL)

If you have the three milestone models available locally:

  • models/SEMI_anova.rds
  • models/DIG_PEAK_anova.rds
  • models/FULL_anova.rds

You can generate milestone figures (by treatment × sex) with:

Rscript scripts/milestones_figures.R

Outputs:

  • figures/Milestone_SEMI.png
  • figures/Milestone_DIG_PEAK.png
  • figures/Milestone_FULL.png
  • figures/Milestones_Combined.png

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages