R/kickoffControl.R

Defines functions kickoffControl

Documented in kickoffControl

#' @import ggplot2
#' @import rstan
#' @import methods
#' @import stats
#' @import graphics
#' @import grDevices
#' @import stats4
#' @export
kickoffControl <-
function(tox, currentDose, cohortSize, nbDoses){
    nbTox <- which(tox %in% 1)
    newDose <- NA
    
    kickofftemp<- FALSE
    if(length(nbTox) != 0|nbDoses == currentDose){
        kickofftemp <-TRUE
    }else{
        newDose <- min(currentDose + 1, nbDoses)
    }
    return(list(kickofftemp,newDose))
}

Try the dfped package in your browser

Any scripts or data that you put into this service are public.

dfped documentation built on May 2, 2019, 8:36 a.m.