Learn R Programming

Robyn: Continuous & Semi-Automated MMM

The Open Source Marketing Mix Model Package from Meta Marketing Science

Project Robyn aims to radically change Marketing Mix Modelling (MMM) practice by utilizing automation, ground-truth calibration, and incorporating AI in an open-source approach. While demystifying the use of these techniques, Robyn helps to reduce and minimize human bias in MMM, ensuring that the results are based on objective and validated statistical analysis. The AI algorithms & ground-truth calibration used in Robyn aim to minimize the potential for subjective interpretations and decision making. This leads to a more accurate representation of the impact of marketing investments, enabling organizations of all sizes to make impartial data-driven decisions. Project Robyn, along with strong community support, represents a step towards the future of MMM, where the use of AI and automation will become the norm, providing unbiased and reliable results every time. By creating an open-source platform, Project Robyn is democratizing access to underlying technology, enabling organizations of all sizes to benefit from unbiased MMM analysis either as final end-users or agencies & consultancies building their own businesses upon Robyn. The data science, the code, and various business case studies are available for everyone to learn from and use.

R Quick Start

  • Install Robyn latest package version:
## CRAN VERSION
install.packages("Robyn")

## DEV VERSION
# If you don't have remotes installed yet, first run: install.packages("remotes")
remotes::install_github("facebookexperimental/Robyn/R")
  • If it's taking too long to download, you have a slow or unstable internet connection, and have issues while installing the package, try setting options(timeout=400).

  • Robyn requires the Python library Nevergrad. If encountering Python-related

error during installation, please check out the step-by-step guide to get more info.

  • For Windows, if you get openssl error, please see instructions

here and here to install and update openssl.

License

Meta's Robyn is MIT licensed, as found in the LICENSE file.

Copy Link

Version

Install

install.packages('Robyn')

Monthly Downloads

5,336

Version

3.12.1

License

MIT + file LICENSE

Issues

Pull Requests

Stars

Forks

Maintainer

Bernardo Lares

Last Published

July 2nd, 2025

Functions in Robyn (3.12.1)

dt_simulated_weekly

Robyn Dataset: MMM Demo Data
robyn_response

Response and Saturation Curves
prophet_decomp

Conduct prophet decomposition
adstock_geometric

Adstocking Transformation (Geometric and Weibull)
robyn_write

Import and Export Robyn JSON files
robyn_update

Update Robyn Version
robyn_inputs

Input Data Check & Transformation
robyn_mmm

Core MMM Function
dt_prophet_holidays

Robyn Dataset: Holidays by Country
robyn_outputs

Evaluate Models and Output Results into Local Files
transformations

Michaelis-Menten Transformation
set_holidays

Detect and set date variable interval
robyn_refresh

Build Refresh Model
hyper_limits

Check hyperparameter limits
saturation_hill

Hill Saturation Transformation
robyn_save

Export Robyn Model to Local File [DEPRECATED]
set_default_hyppar

Set default hyperparameters
robyn_train

Train Robyn Models
df_curve_reach_freq

Robyn Dataset: Reach & frequency simulated dataset
robyn_calibrate

Robyn Calibration Function - BETA
robyn_run

Robyn Modelling Function
robyn_clusters

Clustering to Reduce Number of Models based on ROI and Errors
robyn_converge

Check Models Convergence
robyn_allocator

Budget Allocator
hyper_names

Get correct hyperparameter names
Robyn

Robyn MMM Project from Meta Marketing Science