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 at the end of May, and its replacement, statalist.org is already up and running.


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

st: Re: use a Stata package like moremata via adopath?


From   Christopher Baum <kit.baum@bc.edu>
To   Arie ten Cate <A.ten.Cate@cpb.nl>
Subject   st: Re: use a Stata package like moremata via adopath?
Date   Fri, 22 Mar 2013 14:16:35 +0000

<>
Arie,

Your problem is not one of access to the routine, but in calling it. Mata functions must be called as functions, not like Stata commands. Remember, everything in Mata is a function (or a directive).

. mata:mm_collapse
                 <istmt>:  3499  mm_collapse not found
r(3499);

. mata:mm_collapse()
           mm_collapse():  3001  expected 3 to 14 arguments but received 0
                 <istmt>:     -  function returned error
r(3001);

I have moremata installed, and can reproduce your error message. But if I call mm_collapse as a function, it clearly knows that it is available.

Generally, as long as you place materials on the adopath, they are accessible. My BC econometrics students use Stata on a Citrix server, and cannot install items on that server, but they can use -ssc install- to install items in one of their own directories, which is PLUS on their adopath.

Thanks
Kit

On Mar 22, 2013, at 10:04 AM, Arie ten Cate <A.ten.Cate@cpb.nl>
 wrote:

> Dear Christopher,
>  
> Is it possible to run packages like moremata (required for GSAMPLE) when running Stata over a network, without write access to the software on the server?
>  
> I stored all unzipped files from moremata.zip in my adopath, but this seems not to work.
> I tested this with the command:     mata: mm_collapse
> This gave:   <istmt>:  3499  mm_collapse not found
>  
> Thanks for any reply,
>  
>    Arie ten Cate
>  
> Dit bericht kan informatie bevatten die niet voor u is bestemd. Indien u niet de geadresseerde bent of dit bericht abusievelijk aan u is toegezonden, wordt u verzocht dat aan de afzender te melden en het bericht te verwijderen. De Staat aanvaardt geen aansprakelijkheid voor schade, van welke aard ook, die verband houdt met risico's verbonden aan het elektronisch verzenden van berichten.
> 
> This message may contain information that is not intended for you. If you are not the addressee or if this message was sent to you by mistake, you are requested to inform the sender and delete the message. The State accepts no liability for damage of any kind resulting from the risks inherent in the electronic transmission of messages.
> 



Kit Baum   |   Boston College Economics & DIW Berlin   |   http://ideas.repec.org/e/pba1.html
                             An Introduction to Stata Programming  |   http://www.stata-press.com/books/isp.html
  An Introduction to Modern Econometrics Using Stata  |   http://www.stata-press.com/books/imeus.html
                                                                                                      http://www.crup.com.cn/Item/111779.aspx     


*
*   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