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
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 codeOne easy solution that is tested to work is to wrap
*_ra()
call intoas.character()
which is done in this pull request