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

Re: st: Sqaure root


From   "Eldin A. Leighton" <eleighton@cox.net>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: Sqaure root
Date   Wed, 06 Oct 2004 23:08:36 -0400

Try using parentheses around the "diameter", instead of braces.

flanagan@uchicago.edu wrote:
I am a beginning stat major, and I am trying to figure out how to command the stata program to take the square root of a data set, after I have already infiled some data.

I typed:

gen square = sqrt{diameter}

but it doesnt work
it says sqrt not found.

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