Data Preparation

This section explains how to prepare X and y for PanelMMM. It covers the required columns, how panel rows are organised when you use dims or a named FE or CRE estimator, and how AMMM3 scales channels and the target before fitting.

Pages

  • Input Data Requirements — Required X and y inputs, column roles, alignment rules, and common input errors.
  • Panel Data Layout — How to structure rows for named FE and CRE panels, no panel dims, one dim such as geo, or multiple dims such as geo and brand.
  • Scaling and Preprocessing — What AMMM3 scales automatically, how Scaling works, and what to preprocess yourself.