You are here

decimal places in output

3 posts / 0 new
Last post
Dorothy Bishop's picture
Joined: 02/04/2010 - 02:20
decimal places in output

I tried setting outputs from OpenMx to standard numerical format with 4 decimal places as follows:
options(scipen=999) # gets rid of scientific notation!

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.

tbates's picture
Joined: 07/31/2009 - 14:25
output from what?

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."

oldopt = options('digits'); options('digits'=3)
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

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


This might not get you what you want.

Dorothy Bishop's picture
Joined: 02/04/2010 - 02:20
output from what?

I was trying to get sensibly formatted output from summary

e.g. summary(modelCfit)

and hoped I could limit decimal places by a generic command earlier on.

Log in or register to post comments