Announcement

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

  • T-statistics

    Hi,
    I want to run t-statistics test for all of my control variables with two groups (one having females & otherwise)?
    Here are my variables: SIZE, CAPEX, Z_Score, LEVERAGE, & WOMEN (to separate the sample)

    Thanks in advance.

    Irfan

  • #2
    is your question "how do I get a t statistic comparing these groups"? if yes,
    Code:
    help ttest
    and here is a possible example:
    Code:
    ttest SIZE, by(WOMEN) une
    if this is not your question, please clarify

    under any condition, please read the FAQ

    Comment


    • #3
      If you have several variables, maybe you wish a loop. Please see the example below:

      Code:
      sysuse auto
      foreach var of varlist price mpg headroom gear_ratio {
      ttest `var', by(foreign)
      }
      Best regards,

      Marcos

      Comment

      Working...
      X