Bookmark and Share

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: RE: RE: RE: estimate precision in MATA


From   "Martin Weiss" <[email protected]>
To   <[email protected]>
Subject   st: RE: RE: RE: estimate precision in MATA
Date   Wed, 22 Sep 2010 09:29:30 +0200

<>


Ok, but this is a very peculiar notion of precision ("display precision").
-format- does nothing to the underlying value that Stata sees, it simply
changes your view onto the data when you display them.


HTH
Martin


-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Marie-Claire
Robitaille-Blanchet
Sent: Mittwoch, 22. September 2010 09:26
To: [email protected]
Subject: st: RE: RE: estimate precision in MATA

Hi Martin,

Thanks for taking time to answer.

Let say I want to sum two variables. I can use format to increase the number
of digits after the decimal point for the new variable = old_variable_1 +
old_variable_2. 

I'm looking for the equivalent but when I sum matrixes in MATA. So I want to
increase the number of digit after the decimal point for the new matrix I'm
creating from already existing matrixes. And, if possible, I would prefer
the entry in the new matrix to be in the data type: double.

Hope my question makes more sense now!

Marie-claire 

-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Martin Weiss
Sent: Wednesday, 22 September 2010 3:11 PM
To: [email protected]
Subject: st: RE: estimate precision in MATA


<>

Just to be sure, Marie, how does the -format- command increase precision?
Maybe you really meant to say "data type", as in -help data_types-?


HTH
Martin

-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Marie-Claire
Robitaille-Blanchet
Sent: Mittwoch, 22. September 2010 09:04
To: [email protected]
Subject: st: estimate precision in MATA

Dear all,

I would like to increase the estimate precision in MATA. So I'm basically
looking for the MATA equivalent of the "format" command in Stata. Which
command should I use?

Thanks in advance,

Marie-Claire

*
*   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/

*
*   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/


© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index