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

Re: st: _gcorr.ado question

From   Nick Winter <>
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

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?


*   For searches and help try:
Nicholas J. G. Winter 607.255.8819 t
Assistant Professor 607.255.4530 f
Department of Government e
Cornell University w
308 White Hall
Ithaca, NY 14853-4601

* For searches and help try:

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