| |
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]
st: Saving (tabulate, row) results in presence of weights.
Hi,
I'd like to know if there is any way to save row
percentages (44.55 and 55.45) in "tabulate ..., row" in presence of
weights. I want to loop because I have a number
of indicators and many datasets.
The command is not returning desired saved results.
I tried to compute it manually (by counting number
of occurences and dividing by total population
in each category) but this is not taking into account
the weights.
Is there another way?
Best regards.
Amadou.
ta car urb [aw=wei] if car, row nof
| Place of
| residence
Has car | Urban Rural | Total
--------------------+----------------------+----------
Yes | 44.55 55.45 | 100.00
--------------------+----------------------+----------
Total | 44.55 55.45 | 100.00
. ret li
scalars:
r(N) = 502
r(r) = 1
r(c) = 2
*
* For searches and help try:
* http://www.stata.com/support/faqs/res/findit.html
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/