uncorassign function

Group assignment independent of anything.

Group assignment independent of anything.

uncorassign(n, return = c("group", "full"))

Arguments

  • n: The sample size.
  • return: Should we just return a list with just the vector of assignment ("group") or a list with the vector of assignments and the vector of latent variables ("full")?

Returns

A list with some or all of the following elements.

  • x: The group assignment. 1L for one group and 0L for the other group.
  • w: The latent assignment vector (only returned if return = "full"). Negative corresponds to one group and positive corresponds to the other group.

Author(s)

David Gerard

  • Maintainer: David Gerard
  • License: GPL-3
  • Last published: 2024-05-15