Skip to content

cluster_gen() fails if both cat_prop and rho are set #51

Closed
@wleoncio

Description

@wleoncio

MRE

cluster_gen(n = c(5, 2), n_X = 2, n_W = 2, cat_prop = list(c(0.5, 1), c(0.5, 1))) # OK
cluster_gen(n = c(5, 2), n_X = 2, n_W = 2, cat_prop = list(c(0.5, 1), c(0.5, 1)), rho = 0.5) # Fails 

Fixing this might be as simple as adding an else statement here, but the issue should be investigated further for side effects.

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions