Announcement

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

  • Table of comparative summary statistics

    Hi.

    I am looking to table of momparative summary statistics.
    I have 3 categorical variables. The HEATHL variable is 1"Excellent" 2"Poor“. Gender is coded as 1"Male" 2"Female". Language is coded as 1"English" 2"Other".
    I use table command.
    table (var) (GENDER HEATHL), statistic (fvpercent LANGUAGE_2GR) statistic (fvfrequency LANGUAGE_2GR) nformat(%6.1f fvpercent) nformat(%6.0f fvfrequency)
    I have this dataset in frequency and percent.
    BUT the idea is to show this table only in percent and by condition if cells frequency less at 100, then replace percent with „ .. „.
    I am therefore wondering if anyone could help me with finding some ways for this solution. Thanks.

  • #2
    Natalja:
    welcome to this forum.
    Have you already taken a look at the -table- entry in Stata 17 .pdf manual?
    Kind regards,
    Carlo
    (Stata 19.0)

    Comment


    • #3
      Hello, yes, i taken a look, but can not find good solution.

      Comment

      Working...
      X