Data Cart

Your data extract

0 variables
0 samples
View Cart
MARRYR2
Year of first marriage, categorized

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 Marryr2 : public Editor {

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

    long a = getRecoded();
    switch (dataSet) {
    case dataset_id::il1983a:
      if (IL1983A_0423() == 1)
        a = 30;
      if (IL1983A_0423() == 2)
        a = 31;
      if (IL1983A_0423() == 3)
        a = 32;
      if (IL1983A_0423() == 4)
        a = 33;
      if (IL1983A_0423() == 5)
        a = 34;
      if (IL1983A_0423() == 6)
        a = 35;
      if (IL1983A_0423() == 7)
        a = 36;
      if (IL1983A_0423() == 8)
        a = 37;
      if (IL1983A_0423() == 9)
        a = 38;
      if (IL1983A_0423() == 10)
        a = 39;
      if (IL1983A_0423() == 11)
        a = 40;
      if (IL1983A_0423() == 12)
        a = 41;
      if (IL1983A_0423() == 13)
        a = 42;
      if (IL1983A_0423() == 98)
        a = 98;
      break;
    case dataset_id::il1995a:
      if (IL1995A_0427() == 1)
        a = 50;
      if (IL1995A_0427() == 2)
        a = 51;
      if (IL1995A_0427() == 3)
        a = 52;
      if (IL1995A_0427() == 4)
        a = 53;
      if (IL1995A_0427() == 5)
        a = 54;
      if (IL1995A_0427() == 6)
        a = 55;
      if (IL1995A_0427() == 7)
        a = 56;
      if (IL1995A_0427() == 8)
        a = 98;
      break;
    }

    setData(a);
  }
};