The collapse (percent) command is supposed to yield the percentage of nonmissing observations. However, it doesn't seem to:
Is this a bug, or am I misunderstanding the documentation?
Code:
sysuse auto count if missing(rep78) count gen constant = 1 collapse (percent) rep78, by(constant) list rep78
Comment