Announcement

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

  • Precise p values oneway scheffe

    Is there a way to obtain precise p values after one way scheffe test? I’m only getting 0.0000 which is of course enough to write p<0.001 but I need to report precise p values.
    Code:
    oneway continuous categorical, scheffe

  • #2
    Apparently, return list does not even provide a p-value so you need do compute it manually.

    Code:
    oneway ...
    di %20.18f chi2tail(`r(df_bart)', `r(chi2bart)')
    Best wishes

    (Stata 16.1 MP)

    Comment


    • #3


      Code:
      oneway ...
      di %20.18f chi2tail(`r(df_bart)', `r(chi2bart)')
      [/QUOTE]

      Thanks for feedback. I think the code you gave is displaying p value for bartlett’s test for equal variances and not F test (I’m using binary dummy variable for each contrast)

      Comment


      • #4
        Originally posted by Senor Massao View Post

        Code:
        oneway ...
        di %20.18f chi2tail(`r(df_bart)', `r(chi2bart)')
        Thanks for feedback. I think the code you gave is displaying p value for bartlett’s test for equal variances and not F test (I’m using binary dummy variable for each contrast)
        How about this:

        Code:
        di %20.18f Ftail(r(df_m), r(df_r), r(F))

        Comment


        • #5
          Sorry, I picked the wrong statistic to report. As you see, the principle is the same for the actual p-value of the test. The only difference is that you need to use the suitable distribution function of the statistic, as Fei Wang did here (Ftail instead of chi2tail).
          Best wishes

          (Stata 16.1 MP)

          Comment


          • #6
            Code:
            di %20.18f Ftail(r(df_m), r(df_r), r(F))
            [/QUOTE]

            Many thanks, yes, that works :-)

            Comment

            Working...
            X