BinaryToCensoring(is.censored=c(0, 1, 1, 0, NA))
BinaryToCensoring(is.uncensored=c(1, 0, 0, 1, NA)) #the same
if (FALSE) {
BinaryToCensoring(c(0, 1)) #error because the input must be named
}
Run the code above in your browser using DataLab