Announcement

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

  • Bonferroni code ttest

    Hello, I am looking for the Stata code for bonferroni to perform a ttest analysis. I am fairly new to using Stata so any detail you can provide would be helpful

    Any assistance you can provide would be greatly appreciated.

    Best
    Rokhaya
    Last edited by Rokhaya Fall; 14 May 2023, 20:00.

  • #2
    Run the following code to see how to adjust for multiple comparisons with pairwise Student's t-testing.

    (The illustration uses the "auto" example dataset that is installed with Stata.)
    Code:
    sysuse auto, clear
    
    regress mpg i.rep78
    pwcompare i.rep78, mcompare(bonferroni) pveffects

    Comment


    • #3
      Thank you so much Joseph. Will work on that and pray it works!

      Comment

      Working...
      X