Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.


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

st: a program that can define variable used


From   Zhi Su <[email protected]>
To   statalist <[email protected]>
Subject   st: a program that can define variable used
Date   Wed, 6 Jul 2011 16:06:33 -0400

Dear Statalists,

  I want to write my own ado file.
  program define NHreg, rclass
  .
  .
  .
  regress Y X,robust
  end

  I want the NHreg.ado to be used in the way that I can change the
independent variable "Y" in the program. For example, if I type
  NHreg T1
  then the program return results from command "regress T1 X, robust"

  If I type
  NHreg T2
  then the program return results from command "regress T2 X, robust"

  How can I make it?

  Thank you!

-- 
Zhi Su
348 Holmes Hall
Northeastern University
360 Huntington Avenue
Boston, MA 02115
Office:1-617-373-2316
email:[email protected]
*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/


© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index