Data Cart

Your data extract

0 variables
0 samples
View Cart
AGEDEADDAY
Last child's age at death, days

Codes and Frequencies



Loading Frequency Data...

Can't find the category you are looking for? Try the Detailed codes

Explore how IPUMS created this variable

Download


      class Agedeadday : public Editor {

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

    long a = getRecoded();
    switch (dataSet) {
    case dataset_id::mx2010a:
      if (MX2010A_0478() == 99 &&
          ((MX2010A_0479() >= 1 && MX2010A_0479() <= 12) ||
           (MX2010A_0480() >= 1 && MX2010A_0480() <= 99)))
        a = 90;
      break;
    case dataset_id::mx2020a:
      if (MX2020A_0482() == 99 &&
          ((MX2020A_0483() >= 1 && MX2020A_0483() <= 97) ||
           (MX2020A_0484() >= 1 && MX2020A_0484() <= 65)))
        a = 90;
      break;
    }

    setData(a);
  }
};