Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

Re: st: Stata can not find my function


From   Chris Rohlfs <[email protected]>
To   [email protected]
Subject   Re: st: Stata can not find my function
Date   Thu, 4 Sep 2003 09:12:03 -0500 (CDT)

oleksandr,

stata looks for *.ado files in all the directories specified in
adopath.  to add a new folder to this list, simply type:

adopath + "your folder name"

chris

On Thu, 4 Sep 2003, Oleksandr Shepotylo wrote:

> Dear statalist users,
> 
> I want to estimate logit regression for a variable that takes values in
> range [0,1], so I wrote a program:
> 
> program define nlshares
> 
> if "`1'"=="?" {
> 
> global S_1 "B0 B1 B2"
> 
> global B0=1000
> 
> global B1=30
> 
> global B2=0
> 
> 
> replace
> `1'=exp(B0*indincome+B1*age+B2*i9gender)/(1+exp(B0*indincome+B1*age+B2*i9gen
> der))
> 
> end
> 
> Now, when I type
> 
> nl shares lshare indincome age gender
> 
> Stata says that it can not find my function. I guess that the problem is
> that  I connect to Stata through terminal server. I use Stata8.
> 
> Where should I place my programs so Stata can find it?  Also, can I add a
> directory of my choice to place my programs there?
> 
> Oleksandr.
> 
> 
> *
> *   For searches and help try:
> *   http://www.stata.com/support/faqs/res/findit.html
> *   http://www.stata.com/support/statalist/faq
> *   http://www.ats.ucla.edu/stat/stata/
> 

*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/



© Copyright 1996–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index