Announcement

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

  • Whether paired variable reduction is difference between groups

    I have two variables, triglyceride before and after treatment.

    So I run the paired t test to see if triglyceride reduction is significant after treatment.

    Then I run the test in different genders. The significance exists in both men and women.

    Is there a test in Stata, which I can run to determine if the triglyceride reduction is significantly different between men and women?

    Thank you very much.



  • #2
    Cheng:
    you can calculate the pre vs post treatment difference in triglyceride and then go OLS:
    Code:
    diff_trig i.gender
    Kind regards,
    Carlo
    (Stata 18.0 SE)

    Comment


    • #3
      Originally posted by Carlo Lazzaro View Post
      Cheng:
      you can calculate the pre vs post treatment difference in triglyceride and then go OLS:
      Code:
      diff_trig i.gender
      I can't find diff_trig in Stata 13.
      Could you lead me to some information on the method?

      Thank you

      Comment


      • #4
        Cheng:
        sorry for the mistake.
        I should have written:
        Code:
        reg diff_trig i.gender
        where -diff_trig- is the regressand and -i-gender- the predictor.
        Kind regards,
        Carlo
        (Stata 18.0 SE)

        Comment


        • #5
          Originally posted by Carlo Lazzaro View Post
          Code:
          reg diff_trig i.gender
          So I generate another variable to represent the difference of triglyceride before and after treatment in each observation,
          and use this variable to run regression.

          Do I understand what you said correctly?

          You don't know how much I appreciate you help. Thank you very much, Carlo.

          Comment


          • #6
            Cheng:
            yes, you did.
            Kind regards,
            Carlo
            (Stata 18.0 SE)

            Comment

            Working...
            X