drplot                package:titecrm                R Documentation

_D_o_s_e-_R_e_s_p_o_n_s_e _C_u_r_v_e _P_l_o_t_t_i_n_g

_D_e_s_c_r_i_p_t_i_o_n:

     Function for plotting a dose-response curve of an ``mtd'' object
     or an ``sim'' object.

_U_s_a_g_e:

     drplot(x,n=length(x$level),include=n) 

_A_r_g_u_m_e_n_t_s:

       x: The object to be plotted.  Either an ``mtd'' or ``sim''
          object.

       n: Sample size of the trial in the object.

 include: A vector of patient numbers indicating which curve(s) to be
          plotted.  Its length cannot be greater than 'n'.  The default
          is set as ``n''.  That is, plot the curve based on all
          patients in the trial.

_D_e_t_a_i_l_s:

     Can also use the generic function 'print' for plotting an ``mtd''
     or ``sim'' object.

_E_x_a_m_p_l_e_s:

     PI <- c(0.10,0.20,0.40,0.50,0.60,0.65)
     prior <- c(0.05,0.10,0.20,0.35,0.50,0.70)
     target <- 0.2
     # Generate a trial of size 24
     foo <- titesim1(PI,prior,target,24,obswin=6,rate=4,accrual="poisson")
     drplot(foo)  # Plot the dose-toxicity curve based on all 24 patients

