Hi,
I have an unbalanced panel dataset (N=2976, T=13), using survey responses.
My dependent variable is the household's ability to save (saving=1 if able to save, 0 otherwise).
hhid is the Household's unique identifier, and the data is yearly.
I would like to calculate the attrition rate.
Please could you help me to calculate the Frequencies in the table below?
With Frequency, I wanted to show how many of the respondents who were first interviewed in 2004 were then interviewed in 2016.
The same for 2005, 2006,...,2015.
I wanted to create a table as such:
Please let me know if further clarification is required.
Thanks in advance
I have an unbalanced panel dataset (N=2976, T=13), using survey responses.
My dependent variable is the household's ability to save (saving=1 if able to save, 0 otherwise).
hhid is the Household's unique identifier, and the data is yearly.
Code:
. xtset hhid year panel variable: hhid (unbalanced) time variable: year, 2004 to 2016, but with gaps delta: 1 unit . . xtdes hhid: 6, 21, ..., 89972 n = 2976 year: 2004, 2005, ..., 2016 T = 13 Delta(year) = 1 unit Span(year) = 13 periods (hhid*year uniquely identifies each observation) Distribution of T_i: min 5% 25% 50% 75% 95% max 1 1 1 3 7 13 13 Freq. Percent Cum. | Pattern ---------------------------+--------------- 224 7.53 7.53 | ...........11 206 6.92 14.45 | 1111111111111 166 5.58 20.03 | ............1 145 4.87 24.90 | 1............ 94 3.16 28.06 | ..........111 81 2.72 30.78 | ..........1.. 77 2.59 33.37 | .1........... 72 2.42 35.79 | 11........... 62 2.08 37.87 | ......1...... 1849 62.13 100.00 | (other patterns) ---------------------------+--------------- 2976 100.00 | XXXXXXXXXXXXX
Please could you help me to calculate the Frequencies in the table below?
With Frequency, I wanted to show how many of the respondents who were first interviewed in 2004 were then interviewed in 2016.
The same for 2005, 2006,...,2015.
I wanted to create a table as such:
Code:
Year of 1st Interview | Frequency | Percent | Cumulative Percent 2004 | --- | --- | --- 2005 | --- | --- | --- 2006 | --- | --- | --- ....... | --- | --- | --- 2015 | --- | --- | 100.0 Total --- 100.0
Please let me know if further clarification is required.
Thanks in advance
Comment