Skip to content

Allow customization of reporting style in apa_print() #506

@crsh

Description

@crsh

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:

  1. A general purpose version of apa_print(), e.g. typeset() or report(), that accesses a set of global preferences that define the reporting style.
  2. 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.

  1. Formatting of specific statistics (leading zeros, number of digits, etc.)
  2. Typesetting of statistics (I'm thinking of degrees of freedom for t-tests, e.g. $t_{15}$ rather than $t(15)$
  3. 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

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions