Skip to content

Automate permutation strategy #17

Description

@kylebittinger

For an experiment with repeated measures, the adonisplus() function should be able to determine a sensible permutation strategy from the data:

  • Character vectors or factors that are constant within each subject should be shuffled between subjects.
  • Character vectors or factors that vary within subject should be shuffled within subjects.
  • Numerical vectors should have a free permutation.

With this in mind, we might change adisonisplus() to select the most obvious permutation strategy, while allowing the user to override if it's needed. To implement this, we would:

  • Set the default value of rep_meas_var to NULL, so the function knows to guess the permutation strategy when the user supplies a value here.
  • When rep_meas_var is not NULL, set up the permutions as above.
  • When shuffle is not NULL, override the variables that are specified.
  • Add an attribute to the output object providing info on the permutations.
  • Add info on permutations when printing the object.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions