Announcement

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

  • Understanding the McCrary Density Test

    Hi,

    I am using the McCrary Density Test but am having trouble understanding the outcome of the test. I use the command DCdensity, and the results I am getting are the scalars r(theta) and r(se). How can I get the pvalue to know if the running variable I am analyzing passes the manipulation test?

    DCdensity running, breakpoint(0) generate(Xj Yj r0 fhat se_fhat) b(1) h(5)


    Click image for larger version

Name:	WhatsApp Image 2024-11-13 at 7.07.59 PM.jpeg
Views:	1
Size:	20.6 KB
ID:	1767575


    Click image for larger version

Name:	WhatsApp Image 2024-11-13 at 7.06.58 PM.jpeg
Views:	1
Size:	102.8 KB
ID:	1767576


    Thanks,

    Tessa

  • #2
    Perhaps:

    Code:
    .
    
    scalar pval = 2*(1-normal(abs(r(theta)/r(se))))
    display "P-value = " pval

    Comment

    Working...
    X