Status:Closed    Asked:Oct 20, 2016 - 09:55 AM

Will the Stata Kdensity, cv, and sd estimation work with frequency weights instead of probability weights?

Many stata functions do not work with probability weights, or svy commands, but will work with frequency weights. Can I converty pweights to fweights? What do I lose if I just specificy the pweights as fweights? Only standard errors being too small, or will point estimates be off also?

I'm intersted in income for the population as a whole over time and for specific subpopulations defined by education, occupation, race and sex. I'm worried that the flat file may be too small and would like to use the full weighted file, but probability weights are not allowed for many functions in stata (they will take frequency weights).

I'm intersted in

Kernel desnity plots


Standard Deviation

Cofficient of Variation (SD / M)

And Percentiles

Do you have the same question? Follow this Question


As kernel densities do not produce standard errors, you can run them with [aw] or [fw]; I suspect that [fw] may not run if weights aren't integers. Don't forget to make the grimace of disgust as you do so, knowing that these should be [pweights].

The moment-based measures can all be estimated appropriately with svy.

generate x2 = x*x

svy : mean x x2

nlcom (stdev : sqrt( _b[x2] - _b[x]*_b[x]) ) (cv: sqrt( _b[x2]/ _b[x]*_b[x] - 1) )

Finally, the percentiles are estimable with -epctile- that I wrote a few years back; -findit epctile-.


Oct 20, 2016 - 10:01 AM

Report it


The degree of disability in Indonesia 2010 census has three levels but the ta...
Occupation by MSA
Besides the variable for limitations with IADL, are there any other variables...
CPS Volunteer Supplement 2002-2015 - Differences between vlstatus and vlhallo...
When did IPUMS-CPS start like the way (easily downloadable way) like now?
Replicate weights for use with CPS-TUS
Login   |   Register

Recently Active Members

View More »

Share |