Announcement

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

  • Displaying the number of observations

    Dear statalist,

    While running a logistic regression, is it possible to display the number of observations corresponding to each category of an explanatory variable along with the odds ratio and other estimates?

    Thanks in advance,

    Shoummo

  • #2
    Just follow up with

    Code:
    tab1 x1 x2 x3  if e(sample) 
    where x1 x2 x3 should be replaced with your own list of explanatory variables.

    Comment


    • #3
      Originally posted by Nick Cox View Post
      Just follow up with

      Code:
      tab1 x1 x2 x3 if e(sample) 
      where x1 x2 x3 should be replaced with your own list of explanatory variables.
      Thank you...

      Comment

      Working...
      X