Skip to content

Preparing data for estimation

Alberto Cottica edited this page Jan 31, 2018 · 1 revision
  1. Start with JSON output: posts, comments, users.
  2. Run them through edgesense. This results in another JSON network.min.json.
  3. Run the script json2CSV. This accepts network.min.json as an input and produces a CSV file, panelData.csv. The CSV file is a flattened representation of panel data. Each row is an observation. The first two columns denote the node ID and the time period. The other columns describe the state of the relevant variables referring to that node and that time period.
  4. Launch Stata and open panelData.csv with it, then save it in Stata format.
Clone this wiki locally