Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down on April 23, and its replacement, statalist.org is already up and running.


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

st: RE: RE: RE: estimate precision in MATA


From   "Martin Weiss" <martin.weiss1@gmx.de>
To   <statalist@hsphsun2.harvard.edu>
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: owner-statalist@hsphsun2.harvard.edu
[mailto:owner-statalist@hsphsun2.harvard.edu] On Behalf Of Marie-Claire
Robitaille-Blanchet
Sent: Mittwoch, 22. September 2010 09:26
To: statalist@hsphsun2.harvard.edu
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: owner-statalist@hsphsun2.harvard.edu
[mailto:owner-statalist@hsphsun2.harvard.edu] On Behalf Of Martin Weiss
Sent: Wednesday, 22 September 2010 3:11 PM
To: statalist@hsphsun2.harvard.edu
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: owner-statalist@hsphsun2.harvard.edu
[mailto:owner-statalist@hsphsun2.harvard.edu] On Behalf Of Marie-Claire
Robitaille-Blanchet
Sent: Mittwoch, 22. September 2010 09:04
To: statalist@hsphsun2.harvard.edu
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–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index