Example data (m.load)

Datasets bundled with BayesForge. only_path=True returns the CSV path instead of a data frame.

m.load.NBDA_events

m.load.NBDA_events(frame=True, only_path=False)

Load NBDA event data (STbayes::event_data format).

m.load.NBDA_network

m.load.NBDA_network(frame=True, only_path=False)

Load NBDA network edge list (STbayes::edge_list format).

m.load.WaffleDivorce

m.load.WaffleDivorce(frame=True, only_path=False)

Load the WaffleDivorce dataset.

Returns bunch : Bunch Dataset with waffle divorce data

m.load.chimpanzees

m.load.chimpanzees(frame=True, only_path=False)

Load the chimpanzees dataset.

Chimpanzee behavioral experiment data.

Returns bunch : Bunch Dataset with chimpanzee behavioral data

m.load.elephants

m.load.elephants(frame=True, only_path=False)

Load the elephants dataset.

Returns bunch : Bunch Dataset with elephant data

m.load.howell1

m.load.howell1(frame=True, only_path=False)

Load the Howell1 dataset.

Demographic data including height, weight, age, and sex.

Returns bunch : Bunch Dataset with 544 samples and 4 features Features: height, weight, age, male

m.load.iris

m.load.iris(frame=True, only_path=False)

Load the iris dataset.

The four morphological features are standardised (zero mean, unit variance). Columns: sepal_length, sepal_width, petal_length, petal_width (scaled), target (int 0-2), species (name). The file carries no index column.

Returns bunch : Bunch Dataset with iris data

m.load.islands_dist_matrix

m.load.islands_dist_matrix(frame=True, only_path=False)

Load the islands distance matrix dataset.

Distance matrix between islands.

Returns bunch : Bunch Dataset with pairwise distances between islands

m.load.kline

m.load.kline(frame=True, only_path=False)

Load the Kline dataset.

Cultural evolution data from Oceanic societies.

Returns bunch : Bunch Dataset with cultural and technological data

m.load.kline2

m.load.kline2(frame=True, only_path=False)

Load the Kline2 dataset.

Extended version of the Kline cultural evolution dataset.

Returns bunch : Bunch Dataset with cultural and technological data

m.load.mastectomy

m.load.mastectomy(frame=True, only_path=False)

Load the mastectomy dataset.

Survival data for mastectomy patients.

Returns bunch : Bunch Dataset with patient survival data

m.load.milk

m.load.milk(frame=True, only_path=False)

Load the milk dataset.

Primate milk composition data.

Returns bunch : Bunch Dataset with milk composition data for various primate species Features: clade, species, kcal.per.g, perc.fat, perc.protein, perc.lactose, mass, neocortex.perc

m.load.panama_ewa

m.load.panama_ewa(frame=True, only_path=False)

Load the Panama EWA social learning dataset (Barrett et al.).

Capuchin monkey foraging data with 7 techniques across 14 days. Columns include technique choice, payoffs, social cues (payoff bias, kin, prestige, cohort, age-of-acquisition), bout index, individual id, and centered age.

m.load.phylo_L_meta

m.load.phylo_L_meta(frame=True, only_path=False)

Load the Cholesky factor of the kinship matrix for Meta-analysis.

m.load.phylo_L_poisson

m.load.phylo_L_poisson(frame=True, only_path=False)

Load the Cholesky factor of the kinship matrix for the Poisson model.

m.load.phylo_L_repeated

m.load.phylo_L_repeated(frame=True, only_path=False)

Load the Cholesky factor of the kinship matrix for the Repeated measurements model.

m.load.phylo_L_simple

m.load.phylo_L_simple(frame=True, only_path=False)

Load the Cholesky factor of the kinship matrix for the Simple Phylogenetic Model.

m.load.phylo_L_slopes

m.load.phylo_L_slopes(frame=True, only_path=False)

Load the Cholesky factor of the kinship matrix for the Varying Slopes model.

m.load.phylo_meta

m.load.phylo_meta(frame=True, only_path=False)

Load data for a Phylogenetic Meta-analysis.

m.load.phylo_poisson

m.load.phylo_poisson(frame=True, only_path=False)

Load simulated data for the Phylogenetic Poisson Model.

m.load.phylo_repeated

m.load.phylo_repeated(frame=True, only_path=False)

Load simulated data for the Repeated Measurements Phylogenetic Model.

m.load.phylo_simple

m.load.phylo_simple(frame=True, only_path=False)

Load simulated data for the Simple Phylogenetic Model (Gaussian).

m.load.phylo_slopes

m.load.phylo_slopes(frame=True, only_path=False)

Load data for the Phylogenetic Varying Slopes Model.

m.load.reedfrogs

m.load.reedfrogs(frame=True, only_path=False)

Load the reedfrogs dataset.

Reed frog predation and survival experiment data.

Returns bunch : Bunch Dataset with experimental data on reed frog survival

m.load.sim_gamma_poisson

m.load.sim_gamma_poisson(frame=True, only_path=False)

Load the simulated Gamma-Poisson dataset.

Simulated data with Gamma-Poisson distribution.

Returns bunch : Bunch Simulated dataset for testing Gamma-Poisson models

m.load.sim_multinomial

m.load.sim_multinomial(frame=True, only_path=False)

Load the simulated multinomial dataset.

Simulated multinomial data.

Returns bunch : Bunch Simulated dataset for testing multinomial models

m.load.sim_multivariate_normal

m.load.sim_multivariate_normal(frame=True, only_path=False)

Load the simulated multivariate normal dataset.

Simulated multivariate normal data.

Returns bunch : Bunch Simulated dataset for testing multivariate normal models

m.load.sim_nested_effects

m.load.sim_nested_effects(frame=True, only_path=False)

Load simulated nested varying-effects dataset.

Simulated data with observations nested in groups, groups nested in regions. Generated with known true parameters for model validation.

DGP parameters N_regions=5, N_groups_per_region=4, N_obs_per_group=20 (400 total obs) mu_a_region=5.0, mu_b_region=-1.0 sigma_a_region=1.0, sigma_b_region=0.5, rho_region=-0.5 sigma_a_group=0.5, sigma_b_group=0.2, rho_group=0.3 sigma_obs=0.5, seed=42

Columns y : float — outcome x : float — continuous predictor (standardised) group_id : int — group index 0..19 region_id : int — region index 0..4

m.load.tulips

m.load.tulips(frame=True, only_path=False)

Load the tulips dataset.

Tulip growth experiment data.

Returns bunch : Bunch Dataset with experimental data on tulip growth

m.load.ucbadmit

m.load.ucbadmit(frame=True, only_path=False)

Load the UC Berkeley admissions dataset.

Famous dataset illustrating Simpson’s paradox.

Returns bunch : Bunch Dataset with UC Berkeley graduate admissions data