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