Skip to content

FAQ/ENH: weighted sums Stata's total #2851

Open

Description

@josef-pkt

What's the pandas/statsmodels equivalent of Stata's total function?

http://www.stata.com/manuals14/rtotal.pdf

(I just saw this while looking for other things related to weights #2849 and didn't look at details.)

It's mainly useful for survey probabilities and weighted population means and totals. This is standalone and maybe similar to stats weighted statistics with more types of weights.

The related usage in models is for predict_at and margins with frequency or probability weights. (open question and not checked for freq_weights in models in #2849. )

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions