Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.
From | jayamini <jayamini1987@gmail.com> |
To | statalist@hsphsun2.harvard.edu |
Subject | st: Can I use “iw” intead of “pw” in quantiles command? |
Date | Tue, 6 Aug 2013 22:21:36 -0700 (PDT) |
Hi Team, I’m working with Household income and expenditure data. I want to find 5 quantiles of the per capita income. I’m using sampling weights. Eg: Following table represent the example for my weights. Sampling Unit Weight 1 41.42092 2 224.9696 3 211.7713 4 131.9084 5 160.3988 6 475.2353 7 217.6984 First I installed the user written command : ssc install quantiles Then use following command for my data. quantiles ym[pw=s_weight], gen(ym_decile) n(5) k(hh_code) ym – per capita income variable ym_decile – new categorical variable hh_code – Identifying code for each household But stata says “pw” not allowed for this command. But “iw” is allowed. So my question is Can I use “iw” intead of “pw” here? Thank You. Jayamini – Institute of Policy Studies, Sri Lanka -- View this message in context: http://statalist.1588530.n2.nabble.com/Can-I-use-iw-intead-of-pw-in-quantiles-command-tp7580407.html Sent from the Statalist mailing list archive at Nabble.com. * * For searches and help try: * http://www.stata.com/help.cgi?search * http://www.stata.com/support/faqs/resources/statalist-faq/ * http://www.ats.ucla.edu/stat/stata/