Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

plot-DataDual-ModelEff-method

Plot of the fitted dose-efficacy based with a given pseudo efficacy model and data without samples


Description

Plot of the fitted dose-efficacy based with a given pseudo efficacy model and data without samples

Usage

## S4 method for signature 'DataDual,ModelEff'
plot(x, y, ..., xlab = "Dose level",
  ylab = "Expected Efficacy", showLegend = TRUE)

Arguments

x

the data of DataDual class object

y

the model of the ModelEff class object

...

not used

xlab

the x axis label

ylab

the y axis label

showLegend

should the legend be shown? (default)

Value

This returns the ggplot object for the dose-efficacy model plot

Examples

##plot the dose-efficacy curve given a pseudo efficacy model using data without samples
##data must be of 'DataDual' class 
##define the data 
data<-DataDual(x=c(25,50,50,75,100,100,225,300),y=c(0,0,0,0,1,1,1,1),
               w=c(0.31,0.42,0.59,0.45,0.6,0.7,0.6,0.52),
               doseGrid=seq(25,300,25),placebo=FALSE)
##model must be from 'ModelEff' class e.g 'Effloglog' class model
##define the model (see Effloglog example)
Effmodel<-Effloglog(Eff=c(1.223,2.513),Effdose=c(25,300),nu=c(a=1,b=0.025),data=data,c=0)
## plot the dose-efficacy curve
## 'x' is the data and 'y' is the model in plot
plot(x=data,y=Effmodel)

crmPack

Object-Oriented Implementation of CRM Designs

v1.0.0
GPL (>= 2)
Authors
Daniel Sabanes Bove [aut], Wai Yin Yeung [aut], Giuseppe Palermo [aut, cre], Thomas Jaki [aut]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.