Announcement

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

  • Comparing average age over time period, what test should I use?

    Hello, I am new to Stata and statistical analysis in general. I am comparing average age of a group over a time period of 5 years, what is the best test to use? I didn't think logistic would be appropriate considering age is a continuous variable. I appreciate the help.
    So far I've been using "logistic age year", but I don't believe this is correct.

    Thanks

  • #2
    No, -logistic age year- isn't going to get you anything meaningful.

    But perhaps you should explain your problem differently. If you are following a group of people over 5 years, you don't need any statistical test to know that they are 5 years older at the end of that period than they were at the start. So if that's what you're trying to do, just forget about it and move on to something more substantive. If that's not what your question is about, then please explain better what it is you do want to do.

    Comment


    • #3
      I apologize for not being more clear. I'm looking at the mean age in people with a certain condition. We essentially want to know if the mean age of people with this condition has changed over a time period.

      Comment


      • #4
        Originally posted by Gabriel Bouz View Post
        We essentially want to know if the mean age of people with this condition has changed over a time period.
        Code:
        quietly anova age year
        quietly margins year
        marginsplot, level(50) ylabel( , angle(horizontal) nogrid) ytitle(Mean Age)

        Comment


        • #5
          Thank you for your help. Is this code just telling me that the mean ages of individuals with Condition A in year 1, year 2, year 3, year 4, year 5 are significantly different from each other? Instead of addressing whether an increase in years (from 1 to 5) resulted in a decrease in mean age of those with Condition A?

          Comment

          Working...
          X