Uploaded August 2021 | Updated September 2026, 2 weeks ago
This video demonstrates a few of the basics of setting up a small dataset in Stata using the command line. I demonstrate the 'input' command, how to input a string variable, how to affix value labels for variables, and how to use the 'drop' command.
A Powerpoint file containing the dataset I generated can be obtained here:
drive.google.com/file/d/1ffGp8Tv5IQPnUMyeUybBJhOQUlFnGclk/view
This video demonstrates a few of the basics of setting up a small dataset in Stata using the command line. I demonstrate the 'input' command, how to input a string variable, how to affix value labels for variables, and how to use the 'drop' command.
A Powerpoint file containing the dataset I generated can be obtained here:
drive.google.com/file/d/1ffGp8Tv5IQPnUMyeUybBJhOQUlFnGclk/view







![Testing a single mediator model involving binary dependent variable in Stata (Version 17)
This video demonstrates an approach that Ive developed that should allow you to test mediation models involving a single continuous mediator and a single binary dependent variable. [The IV can be continuous or binary; but it cannot be treated as a factor variable using the i. prefix.] The approach involves using a do-file that I have created for performing the analysis and that can be used with some fairly minor modifications to generate results with your own data.
A copy of the do-file can be downloaded here: https://drive.google.com/file/d/1SePPwS7-jYiwJkrrFlti7wNqVHJEhvyq/view
A copy of the data used in the video can be downloaded here: https://drive.google.com/file/d/1BnVre_zkSC8EJ15hbCgxNP4UuwrS6Bud/view
A copy of the supplemental Powerpoint file can be downloaded here:
https://drive.google.com/file/d/1l2Zbi8Ux6HhVJQ6qmBhVnk9MhxpsohIu/view Testing a single mediator model involving binary dependent variable in Stata (Version 17)](https://i.ytimg.com/vi/dShrmLlZ-Xc/mqdefault.jpg)


