For example: Regress var1 var2, if (post931) Regards. Can I use -if- Already generated dummy variable: post93 (year>1993). You may of course need something more elaborate. 1 -if- regression, 00:18 Dear Statalists, I need to run a regression for specific range of year (94-96). Using -c_local- (no it's not documented) or using s-class results is natural here.Ģ. It may be better to write a small subroutine that does the processing for you and returns the -if- element. syntax- zaps whatever is in the local macros it might create. Cross-referencing the documentation When reading this manual, you will nd references to other Stata manuals, for example, U 27 Overview of Stata estimation commands R regress andD reshape. Thus in this case the principle is shown byġ. syntax- works on whatever is in local macro 0. This is just the title that Stata gives, even when. Although it's not emphasised very much (that I can recall), -syntax- doesn't require the context of a previous -program- call, although that is its natural habitat. You are in the correct place to carry out the multiple regression procedure. You may find it easiest to push the command through -syntax. St: RE: Isolate the 'if statement' from a regression command Consider the following example, using list instead of regress. Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at . Because you are working with lags, your keep followed by regress (or any other command) with an if condition is not the same as the full condition all being on the regress command line.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |