AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |
Back to Blog
Stata regress if not12/5/2023 ![]() ![]() It is not uncommon for new users to confuse these, and even experienced users sometimes mistakenly use one where the other is called for. But it does something different and the syntax is different. Stata also has a different construct that is called an if statement or if command. ![]() But if you can show me an example to the contrary, I'll try to troubleshoot it.įinally, a pointer on Stata terminology The -if var = 1- construct is not called an if statement. Or, alternatively, perhaps the commands actually used are not quite as you show them. Most likely, there was some discrepancy in the starting data. My bottom line is that if you both started from the exact same data and used the commands you show, you should have gotten the same results. (Be sure to read the Forum FAQ, especially #12, so you use the proper approaches to showing this information.) I suggest that you post some example data, perhaps the very data set used in the assignment, along with all the commands your friend and you used in setting up the problem (including those that preceded what you show in #1) and the output you each received. There is no reason I can see why this should have happened, and I cannot replicate the phenomenon with any examples I have tried. So I'll respond, but I caution you that, in general, you should not post school assignments here. ![]() Your post is a borderline case: it appears you have actually done the assignment, and are trying to go a bit beyond and understand farther. It is the general policy here not to provide assistance with school assignments. ![]()
0 Comments
Read More
Leave a Reply. |