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

Re: st: _gcorr.ado question


From   Nick Winter <nw53@cornell.edu>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: _gcorr.ado question
Date   Fri, 23 Sep 2005 12:29:47 -0400

Without knowing what--exactly--you typed, it is impossible to be sure.

But this works for me:

 . sysuse auto
 . egen newvar = corr(mpg price)

What are you typing?

Note, by the way, I'm now at nw53@cornell.edu

At 11:59 AM 9/23/2005, you wrote:
Hi Nick,

I was using your _gcorr.ado program file. I loaded the ado file properly into
stata (which recognizes the program). I then try to run the command using the
syntax you specified on  the stata listserve [by varlist:] egen newvar = var1
var2 [if exp] [in exp] [ ,covariance ].

But, unfortunately, I received a r198 error, indicating that the syntax is not
correct.  Do you have any idea why I am receiving this message?

Thanks,
Jacob

*
*   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/
________________________________________________________
Nicholas J. G. Winter 607.255.8819 t
Assistant Professor 607.255.4530 f
Department of Government nw53@cornell.edu e
Cornell University falcon.arts.cornell.edu/nw53 w
308 White Hall
Ithaca, NY 14853-4601

*
* 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–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index