Announcement

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

  • YouTube continuous by continuous

    This StataCorp video needs updating. It shows a neat profiler plot, but states at the end that the pattern is indicative of an interaction. The model clearly did not have an interaction earlier in the video. Or I need a new prescription for my glasses.

    https://www.youtube.com/watch?v=QFROtui_OyM

  • #2
    From 2:08 in the video:
    screen.png


    Comment


    • #3
      I meant the included interaction term was not significant.

      Comment


      • #4
        Interestingly, I had written some code using those data (probably in reference to the video). It seems to be the case!


        Code:
        use "http://www.stata-press.com/data/r12/nhanes2.dta" , clear
        reg bpsystol c.age##c.bmi
        sum age if e(sample) == 1
        sum bmi if e(sample) == 1
        loc min = round(r(min),1)
        di `min'
        loc max = round(r(max),1)
        di `max'
        
        margins, dydx(age) at(bmi=(`min'(1)`max')) vsquish
        
        marginsplot
        Nathan E. Fosse, PhD
        [email protected]

        Comment


        • #5
          Yes, that was an unfortunate oversight on my part. I was more focused on demonstrating the mechanics and I liked the way the final graph looked. I should have chosen an example where the interaction term was statistically significant. I apologize for any confusion and I'll re-record the video at some point.

          Comment


          • #6
            I enjoy your videos!

            Comment


            • #7
              Thanks - glad you find them useful!

              Comment


              • #8
                Chuck was overlooked again in the Oscars. Shame.

                Comment

                Working...
                X