Announcement

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

  • Help analyzing data

    Click image for larger version

Name:	stata.png
Views:	1
Size:	30.5 KB
ID:	1456133



    So I am trying to analyse the following data but unsure how to (i'm new to stats). So I'm trying to see if there is an interaction effect between social inclusion and exposure to nature on mental wellbeing.

  • #2
    If you want a hypothesis test for an overall interaction effect between social inclusion and plants, it would be
    Code:
    tesetparm plants#i.socialinclusion
    But better than doing a hypothesis test, is to understand what your interaction actually looks like. For that I recommend:

    Code:
    margins plants#socialinclusion
    followed by

    Code:
    margins socialinclusion, dydx(plants)
    marginsplot
    or
    Code:
    margins plants, dydx(socialinclusion)
    marginsplot
    Note that -marginsplot- accepts nearly all options available in -graph twoway- so you can customize the appearance of these graphs as you please.

    In the future, when showing Stata outpupt, you should also show the code that led to them. For example, it is not possible in your post to determine whether you are showing the result of a fixed or random-effects model. It may well make a difference in some contexts (though not with regard to anything I have said here). And rather than posting a screen shot, which often comes out unreadable (though yours was perfectly readable), it is better to just copy the Stata results from your Results window or log file and paste them here between code delimiters. (If you are not familiar with code delimiters, please read Forum FAQ #12.)

    Comment

    Working...
    X