Announcement

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

  • How double data in row?

    Click image for larger version

Name:	for forum.png
Views:	1
Size:	145.3 KB
ID:	1525636

    Hello! Help, please. I have a table showing how many people are at a certain age (column "number"), i.e. in the table data of 12 people, not 4 people. How to make statistics appear for all 12 people, and not for 4 people? It may be necessary to increase the number of rows, duplicating them using the data of the column "number"?
    Last edited by Svetlana Bondar; 20 Nov 2019, 15:13.

  • #2
    Code:
    expand number
    drop number

    In the future, when showing data examples, please use the -dataex- command to do so. If you are running version 16 or a fully updated version 15.1 or 14.2, -dataex- is already part of your official Stata installation. If not, run -ssc install dataex- to get it. Either way, run -help dataex- to read the simple instructions for using it. -dataex- will save you time; it is easier and quicker than typing out tables. It includes complete information about aspects of the data that are often critical to answering your question but cannot be seen from tabular displays or screenshots. It also makes it possible for those who want to help you to create a faithful representation of your example to try out their code, which in turn makes it more likely that their answer will actually work in your data.


    Comment


    • #3
      Originally posted by Clyde Schechter View Post
      Code:
      expand number
      drop number

      In the future, when showing data examples, please use the -dataex- command to do so. If you are running version 16 or a fully updated version 15.1 or 14.2, -dataex- is already part of your official Stata installation. If not, run -ssc install dataex- to get it. Either way, run -help dataex- to read the simple instructions for using it. -dataex- will save you time; it is easier and quicker than typing out tables. It includes complete information about aspects of the data that are often critical to answering your question but cannot be seen from tabular displays or screenshots. It also makes it possible for those who want to help you to create a faithful representation of your example to try out their code, which in turn makes it more likely that their answer will actually work in your data.

      Thank you very much for your reply and hint! They are very helpful.

      Comment

      Working...
      X