Hi everyone,

I am working on an assignment for a STATA beginner course, based on the journal article of Burde and Linden, "Bringing Education to Afghan Girls: A Randomized Controlled Trial of Village-Based Schools" from 2013.

I understand the purpose of randomized trials and on having a treatment group vs a control group. Now, what I struggle with is finding the commands to build a table on the demographic characteristics by research group. See table below:

Array

I have all the raw data and I am supposed to only replicate the first main two columns: all children and tested children. "Tested children" referred to the children that were first identified and surveyed.
I looked up different sources on YouTube, this forum etc, but I can't really find any clear answer.
I just would like to understand what command to use to come up with those two columns. Thanks a lot!