decimal places in output

Posted on
Picture of user. Dorothy Bishop Joined: 02/04/2010
I tried setting outputs from OpenMx to standard numerical format with 4 decimal places as follows:
options(scipen=999) # gets rid of scientific notation!
options(digits=4)

The first command worked, but the second didn't.
Is there an option to cut down the N decimal places in the output?
Currently I get nine.

Replied on Sun, 09/04/2011 - 11:11
Picture of user. tbates Joined: 07/31/2009

hi dorothy,
Output from what?

from the mxCompare help file:

"Use options(‘digits’=N) to set the minimum number of significant digits to be printed in values."

so
oldopt = options('digits'); options('digits'=3)
mxCompare(fit9,fit10)
base comparison ep minus2LL df AIC diffLL diffdf p
1 drop_a53 37 52273 10286 31701 NA NA NA
2 drop_a53 drop_a64 36 52287 10287 31713 14.2 1 0.000163
options('digits'=oldopt)

That's the minimum significant digits, not rounding. round() will help for that.
Also, there are numerous Openmx options. Try this to see:

options("mxOptions")

This might not get you what you want.