Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • pystata - getting coefficient by name

    Hello,

    I am using pystata on Jupyter notebook and I want to get regression coefficient by name (using stata API is preferred)

    I know that in pystata, we can use "
    Code:
    pystata.stata.sfi.Matrix.get('e(b)')
    " which returns the columns of coefficients in array. However, this is inconvenient for me to index by integer. I am looking for a way to get coefficient, p-values by name as in stata we can use command `
    _b[_cons
    ]'

    Thank you
    Phan
Working...
X