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

st: RE: Sqaure root

From   "Nick Cox" <>
To   <>
Subject   st: RE: Sqaure root
Date   Thu, 7 Oct 2004 11:03:01 +0100

Other people provided the syntax answer. 

Perhaps you just made this example up, but 

* in any case I would always recommend
using appropriate variable names. "square" 
is not a good name for a square root variable. 

* I don't know what meaning is to be attached
to the square root of a diameter. 

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

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