scipy / stats : quantiles using sample weights from survey data

  • Thread starter Christopher Barrington-Leigh
  • Start date
C

Christopher Barrington-Leigh

There is a function scipy.stats.mstats.mquantiles that returns
quantiles for a vector of data.
But my data should not be uniformly weighted in an estimate of the
distribution, since they are from a survey and come with estimated
sampling weights based on the stratification used in sampling.

Is there a routine to calculate these quantiles taking into account
the survey weights? I can find nothing, so maybe you have had the
same problem and written something.

Thanks!
 
A

Aahz

There is a function scipy.stats.mstats.mquantiles that returns
quantiles for a vector of data.
But my data should not be uniformly weighted in an estimate of the
distribution, since they are from a survey and come with estimated
sampling weights based on the stratification used in sampling.

Is there a routine to calculate these quantiles taking into account
the survey weights? I can find nothing, so maybe you have had the
same problem and written something.

You should ask on the scipy mailing list.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,228
Members
46,817
Latest member
AdalbertoT

Latest Threads

Top