Announcement

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

  • Mixed model with interactions

    Hello,

    I have mouse data for 3 treatments including control. Each treatment was given at increasing doses, baseline (0), 1, 2, 3, 4 microliters. Then we measured systolic bp, diastolic bp and body weight. I would like to know how each treatment differs for the outcomes (Sysbp, Diasbp and weight) I would like to create interactions between treatment and doses.

    I created the following code.
    mixed Sysbp weight i.treatment i.group##c.Dose|| ID:

    I get the following table;

    Click image for larger version

Name:	Screen Shot 2022-01-02 at 9.36.08 PM.png
Views:	2
Size:	151.9 KB
ID:	1643376



    Then I write the code for the margins,
    margins treatment, dydx(Dose) pwcompare

    And I get this table

    Click image for larger version

Name:	Screen Shot 2022-01-02 at 9.36.32 PM.png
Views:	1
Size:	97.8 KB
ID:	1643377


    I'm not sure how to interpret the margins. Is this saying that compared to treatment 1, treatment 2 was statistically significant and etc? Thank you in advance.



    Attached Files

  • #2
    May:
    the -margin- outcome tabke is simpy echoing the results of the fixed part of your -mixed- model: just compare the two tables and you will see that all the results concerning the interactions are identical.
    Kind regards,
    Carlo
    (StataNow 18.5)

    Comment

    Working...
    X