QUESTION 3 - ANSWER

Conditional on being older than 25, what is the average age of married respondents in the sample??

Answer:  The average age of married respondents over the age of 25 is 43.84.

To obtain this answer we again need to use the means command to produce the average value of the age variable, in addition to a qualifier, which will restrict the calculation to married respondents that are over the age of 25. To do this we type the following in Stata:

means age if marstat == 1 & age > 25 & age~=.

The above command produces the following table:

    Variable |    Type        Obs        Mean       [95% Conf. Interval]
-------------+----------------------------------------------------------
         age | Arithmetic     563    43.84192         43.0164   44.66743 
             |  Geometric     563    42.68772           41.87   43.52142 
             |   Harmonic     563     41.5261        40.71983   42.36494 
------------------------------------------------------------------------
 

From the table we can see that the average age of married respondents over the age of 25 in the sample is 44 years old.

Back to Questions