1

I have a repeated measures of BMI over 50K people who took BMI measurements on different timepoints. What I want to know is the number of people who took only 1 measurement as well as for only 2 measurements and onwards. How get it in a table with cumulative frequency like PROC FREQ from SAS?

I don't know how to do to get those mutually exclusive numbers in a table format.

James Z
  • 12,209
  • 10
  • 24
  • 44
Ko Htut
  • 33
  • 4
  • 3
    `table(YOUR_TABLE$COL_WITH_ID)` – Jon Spring Nov 05 '22 at 06:09
  • 1
    It's easier to help you if you include a simple reproducible example: with sample input and desired output that can be used to test and verify possible solutions. – TarJae Nov 05 '22 at 06:10
  • I'm sorry as I am a beginner user of R. So, I do not know how to create a sample dataset for the longitudinal data. It's like each individual has a unique ID and the dataset is in long format based on the number of body weights they had taken. Some have only one row whereas others have 5 observations whey they took 5 body weight measurements. Thank you. – Ko Htut Nov 05 '22 at 21:28

0 Answers0