benjaminrich / table1

78 stars 26 forks source link

How to change the number of observations in Table 1 #117

Open ghost opened 7 months ago

ghost commented 7 months ago

My data has multiple rows of data per person. When I generate table1, the column number (N) is counting the number of observations and not the number of individuals. How can I fix this?

benjaminrich commented 7 months ago

You will have to subset your data so that there is one row per person. There are several ways of doing that. If you want more help, you will have to post some data and explain what result you are trying to achieve.