Examples

On this page

phibble

phplyr

  • Filter rows and add columns

    Keep the penguins with a recorded body mass, and add the mass in kilograms and a size label.

  • Summarize groups

    Count the penguins and find the mean and largest body mass for each species, with some masses missing.

  • Join two tables

    Add airport names and altitudes to hourly weather readings from the nycflights13 tables.

  • Pivot between wide and long

    Count penguins per species with one column per study year, then stack the years into rows.

  • Translate an R script

    Translate an R analysis that cleans, reshapes, and models data.

  • Analysis gallery

    Short analyses that combine data pipelines with model fits.

phpolars

juphyter

phit

phiz

CmdStanPHP

  • Fit a Stan model with MCMC

    Estimates the effect of SAT coaching in eight schools from Rubin's published data with a hierarchical model, and checks that the chains converged.

  • Bundled Stan models

    Fit the example models that ship with CmdStanPHP.