Data Cart

Your data extract

0 variables
0 samples
View Cart

Codes and Frequencies



An 'X' indicates the category is available for that sample

1BangkokXXXX
2Central region (exclude Bangkok )XXXX
3Northern regionXXXX
4Northeastern regionXXXX
5Southern regionXXXX

Explore how IPUMS created this variable

Download


      class Regnth : public Editor {

public:
  Regnth(VarPointer varInfo) : Editor(varInfo) {}
  void edit() {

    long a = getRecoded();
    switch (dataSet) {
    case dataset_id::th1970a: {
      if (TH1970A_0032(0) == 17 || TH1970A_0032(0) == 32)
        a = 1;
    } break;
    }

    setData(a);
  }
};