Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
st: Using 9 figure numbers in Stata
From
George Chioran <[email protected]>
To
[email protected]
Subject
st: Using 9 figure numbers in Stata
Date
Sun, 25 Jul 2010 09:49:19 -0700 (PDT)
Dear Statalisters,
I am trying to input some numbers in stata which are higher than 1 million. To
this, stata does not show the full figure only "1.00e+12". If I try to add 2
collums of these numbers, then I get a figure which does not seem usable.
Does anyone know how to make stata show numbers which are higher than 1 million?
Thank you,
George
----- Original Message ----
From: Nick Cox <[email protected]>
To: [email protected]
Sent: Mon, June 14, 2010 10:14:52 PM
Subject: st: RE: RE: Making a local with no assigned value zero
4.
local x1 = `y1' + `x1'
(doesn't fit all problems, but might fit yours)
Nick
[email protected]
Nick Cox
There are various fixes. Here are some:
1.
if "`y1'" == "" local y1 = 0
local x1 = `x1' + `y1'
2.
local x1 = cond("`y1'" != "", `x1' + `y1', `x1')
3.
if "`y1'" != "" local x1 = `x1' + `y1'
Nick
[email protected]
George Chioran
My code goes like
this: local x1 = `x1’ + `y1’. I get the `y1’ variable through repeated loops
and sometimes `y1’ is not assigned any value.
When `y1’ does not
have any value, the line local x1 = `x1’ + `y1’ stops my program and I get an
invalid
syntax error.
My question is: Could
I somehow make the local `y1’ to be equal to zero, or not to be taken into
consideration in my sum in case `y1’ is not assigned any value?
*
* For searches and help try:
* http://www.stata.com/help.cgi?search
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/
*
* For searches and help try:
* http://www.stata.com/help.cgi?search
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/