-
Notifications
You must be signed in to change notification settings - Fork 135
Description
This PR by @JeffreyRStevens has prompted me again to think about adding a layer of abstraction to apa_print() that allows customization of the reporting style. Jeffrey's usecase is to allow leading zeros for p values, but there are many other things that users might want to adjust (e.g., the number of digits, order of reported statistics, etc.).
I think if we decide to go down this path it would make sense to split the package further:
- A general purpose version of
apa_print(), e.g.typeset()orreport(), that accesses a set of global preferences that define the reporting style. - A package specifically geared towards reporting in APA style (including
apa_print()).
(I remember discussing something like the general purpose package with other developers at a repository that, I think, has since been moved to GitLab, but I can't seem to find it now.)
So, I think it's worth briefly thinking about how much flexibility we need and then see if we can find a nice way to implement that.
- Formatting of specific statistics (leading zeros, number of digits, etc.)
- Typesetting of statistics (I'm thinking of degrees of freedom for t-tests, e.g.
$t_{15}$ rather than$t(15)$ - Order of statistics?
To be honest, I'm not very familiar with a lot of other style guides, so any input here would be greatly appreciated.
So what we would need is a set of arguments passed to print_num() for each statistic and the option to customize the lookup tables and glues we use to put together the colums names and reporting strings?
This seems doable. What else am I missing? @mariusbarth