How to aggregate data in R - summarize data by groups

Поділитися
Вставка

КОМЕНТАРІ • 4

  • @mendie4008
    @mendie4008 2 роки тому

    great video

  • @mendie4008
    @mendie4008 2 роки тому

    thank u so much

  • @robinmatyar2497
    @robinmatyar2497 Рік тому

    Great Video. How can I achieve the same result but with a time dimension i. e. panel data?

    • @Parsimony
      @Parsimony  Рік тому

      Thanks! You'll first want to make sure that your dataset is structured in the long format where you have your time variable as a column (like this: images.app.goo.gl/KJXEkscZGx2PCTwt7 ). Then it works in the same way as in the video. You can aggregate by time points alone or by time points and other variables also (e.g., aggregating by time and race/ethnicity).