Skip to content

Conversation

@gerasy1987
Copy link

@gerasy1987 gerasy1987 commented Mar 10, 2022

When using multi-arm design conduct_conditional_ra() function is being called. In this function when permuted treatment vector for two conditions (which is a factor produced by *_ra()) is plugged into existing assignment vector (which is character vector) factor converts into numeric values first and then into character, e.g. in this chunk of code

assignment_vec_new[assignment_vec %in% conditions] <-
        simple_ra(
          N = sum(assignment_vec %in% conditions),
          prob_each = prob_each_local,
          conditions = conditions,
          check_inputs = FALSE
        )

One easy solution that is tested to work is to wrap *_ra() call into as.character() which is done in this pull request

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant