Cluster Dynamics Measure: C_motion [0] Users must cite two following papers: ​Paper #1. Min Jung Kim, Myles Shaver, and Russell Funk. Forthcoming. "From Mass to Motion: Conceptualizing and Measuring the Dynamics of Industry Clusters," Strategic Management Journal Paper #2. Jushan Bai and Pierre Perron. 2003. "Computation and Analysis of Multiple Structural Change Models," Journal of Applied Econometrics, (18) 1-22. (For those who use Code #1 only, cite Paper #1 only) [1] Code #1 - Input file #1 (for line 8): Total number of population in a year-region. A csv file should have three columns that represent year, casa (or any region identifier), and population, respectively. Before running this code, please ensure that the data is sorted in ascending order by cbsa and, within each cbsa, by year (i.e., as if you ran sort cbsa year in Stata). - Input file #2 (for line 26): Total number of the focal industry establishments (or employees) in a year. A csv file should have two columns that represent year and the focal industry establishments (or employees), respectively. - Input file #3 (for line 57): Total number of the focal industry establishments (or employees) in a year-region. An excel file should have three columns that represent year, casa (or any region identifier), and the focal industry establishments (or employees), respectively. - In this MATLAB code, the number of repetitions for the Monte Carlo simulation (variable S) is set to 200 by default (see line 29). However, the appropriate number of repetitions may vary depending on your research context. You may adjust the value of S as needed. [2] Code #2 - Users must download both "Clulster_dynamics.m.zip" and "Supp_files.zip," and then unzip and place them in the same folder.  - Input file #1 (for line 13): zscores of the focal industry establishments (or employees) in a year-region (This file is the same with the output file from Code #1) [3] NOTE: As code #1 is a simulation-based calculation, the resulting outputs (i.e., zscores, and cluster dynamics values based on the scores) would be slightly different each time a simulation is run). ====================================== kminjung@korea.ac.kr May 23, 2025