Closed tompollard closed 5 years ago
Version 0.5.16 allows number of decimal places to be specified for continuous variables, using the decimals
argument. The number can be specified as a single integer (e.g. decimals=2
) or a dictionary (e.g. decimals = {'age':2, 'weight':3}
. Does not yet address percentages for categorical variables (ref #74).
Support custom precision for variables (e.g., report age to 0dp). This point is highlighted in http://www.equator-network.org/wp-content/uploads/2013/07/SAMPL-Guidelines-6-27-13.pdf
e.g.
format = {age: "{:.0f}"}