Skip to content

FAQ: statsmodels for Stata users #1718

Open

Description

@josef-pkt

What are some of the equivalent or almost equivalent functions in statsmodels compared to those in Stata, for some of the related estimation and post-estimation options.

Post-Estimation

estat

margins

Testing

Stata after estimation: test, lincom, lrtest, testnl, suest/hausman? contrasts?

  • test joint hypothesis f_test (RM), wald_test (RM),
    individual hypothesis t_test (RM)
  • lincom t_test (RM)
  • lrtest compare_lr_test (RM)

Prediction

  • predict predict (RM)
  • cached attributes: fittedvalues, resid, ...

(RM) = method of results instance

Activity

  1. josef-pkt commented on Apr 7, 2022

    @josef-pkt
    MemberAuthor

    this hasn't been updated in a very long time

    current availability and WIP for main models outside tsa is in
    #7707

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions