Hi All,
Quick question about using tabstat with format option. I managed to summarize two variables:
and the result was like:

Apparently, the startdate value was not formatted, then I add the format option as below:
Unexpectedly, it also formatted the number of observations.

Could anyone please advise how should I modify the code? Many thanks.
Quick question about using tabstat with format option. I managed to summarize two variables:
- Group variable: pt15a
- Date variable: startdate (need to identify the earliest date)
Code:
tabstat startdate, by(pt15a) stats(count min)
Apparently, the startdate value was not formatted, then I add the format option as below:
Code:
tabstat startdate, by(pt15a) stats(count min) nototal format(%tdDD/NN/CCYY)
Could anyone please advise how should I modify the code? Many thanks.
Comment