Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down on April 23, and its replacement, statalist.org is already up and running.


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

st: macro issue


From   "Dherani, Mukesh" <M.K.Dherani@liverpool.ac.uk>
To   "'statalist@hsphsun2.harvard.edu'" <statalist@hsphsun2.harvard.edu>
Subject   st: macro issue
Date   Wed, 6 Mar 2013 12:49:08 +0000

Dear all,
I am new to macro.  I am trying to carryout logistic regression with a number of options using if option, however, I am not getting my command being carried out. Below is what I am trying to do

If I use
local x var1 var2 varn
logistic y `x'   // when both of the rows are selected and run simultaneously in do file then command proceeds,

otherwise it returns without any results as below:

local x var1 var2 varn  // first ran this command

logistic y `x'   // then this. Result is blank..

I am using stata 10.
what is my mistake? I tried looking at FAQ but cannot simplify my query and=  got a number of answers not related to my issue.  thank you in advance.


Dr. Mukesh Dherani
Research Fellow
The University of Liverpool,
Division of Public Health,
Waterhouse Building,
Liverpool, L69 3GB

Tel: +44(0) 151 7955348
Email: dheranim@liv.ac.uk<mailto:dheranim@liv.ac.uk>


*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/faqs/resources/statalist-faq/
*   http://www.ats.ucla.edu/stat/stata/


© Copyright 1996–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index