Statalist The Stata Listserver

[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: three tiny queations

From   Xiaoheng Zhang <>
Subject   st: three tiny queations
Date   Thu, 22 Feb 2007 18:48:30 +0000

Dear viewers,

Just three small questions re command in STATA.

1.Could I speicfy a precision level to certain digit for the outcome?Say 4-digit
after decimal point?

2.Could STATA display 0 before decimal point for the outcome?

3.How to use "if" for the string variables.For example,I have a variable
"nationality" having two values-EU or US.How can I construct a condition
started with if,like "if nationality==EU"?I know what I wrote is nonsenese to

Thank you very much if you can help.Seems three small but tricky queations.


Xiaoheng Zhang(Kevin)

*   For searches and help try:

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