Skip to content

Eric D. DeRosia, Ph.D.

Personal Web Repository

Tag: Stata

Posted on August 1, 2019

Stata code for performing the Preacher and Hayes bootstrapped test of mediation

The well-known Preacher and Hayes macros for performing a bootstrapped test of mediation are designed to work only with SPSS or SAS. Those statistics packages are fine, but I prefer Stata. In this post, I provide Stata code for performing the Preacher and Hayes test. Continue reading “Stata code for performing the Preacher and Hayes bootstrapped test of mediation”

Posted on May 1, 2019

Searching through Strings in Stata

In Stata, I needed to search some string values. I couldn’t use regular expressions because the strings I’m working with happen to contain regexp control characters. The following Stata code accomplishes the task without regular expressions: Continue reading “Searching through Strings in Stata”

  • HOME
  • Curriculum Vitae
  • Academic Research
    • Consumer Psychology of Trademark Law
    • Advertising to Consumers
    • Managerial Cognition
  • Research Methods and Tools
    • Statistical Analysis
    • Data and File Processing
    • Internet-based Questionnaires (incl. Qualtrics)
    • Legal Research Tools
    • Mechanical Turk
    • Graph Templates
    • Miscellaneous Research Methods and Tools
  • Independent Consulting
    • Expert Witness in Trademark Infringement
      and False Advertising
    • DeRosia Consulting
  • Programming Languages
    • VBA
    • Javascript
    • CSS/HTML
    • Stata
    • Python
    • Miscellaneous Programming Languages
  • Visual Stimuli Creation
    • Photoshop
    • Blender (3D Modeling)
    • Premiere (Video Editing)
  • Teaching
    • Marketing Research
    • Consumer Behavior
    • Miscellaneous Teaching
  • About Me
Proudly powered by WordPress