-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updating the cran branch to reflect all changes upto 1.1.3 already in…
… CRAN
- Loading branch information
Showing
49 changed files
with
187 additions
and
194 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,11 @@ | ||
Package: clinfun | ||
Title: Clinical Trial Design and Data Analysis Functions | ||
Version: 1.1.1 | ||
Version: 1.1.3.990 | ||
Depends: R (>= 3.0.0), graphics, stats | ||
Imports: mvtnorm | ||
Suggests: | ||
knitr, | ||
rmarkdown, | ||
survival | ||
Suggests: knitr, rmarkdown, survival | ||
Author: Venkatraman E. Seshan [aut, cre], Karissa Whiting [aut] | ||
Authors@R: | ||
Authors@R: | ||
c(person(given = "Venkatraman E.", family = "Seshan", role = c("aut", "cre"), email = "[email protected]"), | ||
person(given = "Karissa", family = "Whiting", role = "aut")) | ||
Description: Utilities to make your clinical collaborations easier if not | ||
|
@@ -19,5 +16,3 @@ Maintainer: Venkatraman E. Seshan <[email protected]> | |
License: GPL (>= 2) | ||
NeedsCompilation: yes | ||
VignetteBuilder: knitr | ||
RoxygenNote: 7.2.3 | ||
Encoding: UTF-8 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,78 +1,73 @@ | ||
% Generated by roxygen2: do not edit by hand | ||
% Please edit documentation in R/ph2simon.R | ||
\name{ph2simon} | ||
\title{Simon's 2-stage Phase II design} | ||
\alias{ph2simon} | ||
\alias{print.ph2simon} | ||
\alias{plot.ph2simon} | ||
\title{Simon's two-stage Phase II design} | ||
\keyword{design} | ||
\description{ | ||
Calculates Optimal and Minimax 2-stage Phase II designs given by | ||
Richard Simon | ||
} | ||
\usage{ | ||
ph2simon(pu, pa, ep1, ep2, nmax = 100) | ||
\method{print}{ph2simon}(x, ...) | ||
\method{plot}{ph2simon}(x, ...) | ||
ph2simon(pu, pa, ep1, ep2, nmax=100) | ||
\method{print}{ph2simon}(x, \dots) | ||
\method{plot}{ph2simon}(x, \dots) | ||
} | ||
\arguments{ | ||
\item{pu}{unacceptable response rate; baseline response rate that needs to | ||
be exceeded for treatment to be deemed promising} | ||
\item{pa}{response rate that is desirable; should be larger than pu} | ||
\item{ep1}{threshold for the probability of declaring drug promising under | ||
pu (target type 1 error rate); between 0 and 1} | ||
\item{ep2}{threshold for the probability of declaring the drug not | ||
promising under pa (target type 2 error rate); between 0 and 1} | ||
\item{nmax}{maximum total sample size (default 100; can be at most 1000)} | ||
\item{x}{object returned by ph2simon} | ||
\item{...}{arguments to be passed onto plot and print commands} | ||
\item{pu}{unacceptable response rate; baseline response rate that needs to | ||
be exceeded for treatment to be deemed promising} | ||
\item{pa}{response rate that is desirable; should be larger than pu} | ||
\item{ep1}{threshold for the probability of declaring drug desirable | ||
under pu (target type 1 error rate); between 0 and 1} | ||
\item{ep2}{threshold for the probability of rejecting the drug under | ||
pa (target type 2 error rate); between 0 and 1} | ||
\item{nmax}{maximum total sample size (default 100; can be at most 1000)} | ||
\item{x}{object returned by ph2simon} | ||
\item{...}{arguments to be passed onto plot and print commands called | ||
within} | ||
} | ||
\value{ | ||
ph2simon returns a list with pu, pa, alpha, beta and nmax (as defined above) | ||
and: \item{out}{matrix of best two-stage designs for each value of total | ||
sample size n. The 6 columns in the matrix are: \tabular{rl}{ r1 \tab | ||
number of responses needed to exceeded in first stage \cr n1 \tab number of | ||
subjects treated in first stage \cr r \tab number of responses needed to | ||
exceeded at the end of trial \cr n \tab total number of subjects to be | ||
treated in the trial \cr EN(pu) \tab expected number pf patients in the | ||
trial under pu \cr PET(pu) \tab probability of stopping after the first | ||
stage under pu } } | ||
ph2simon returns a list with pu, pa, alpha, beta and nmax as above | ||
and: \item{out}{matrix of best 2 stage designs for each value of total | ||
sample size n. The 6 columns in the matrix are: | ||
\tabular{rl}{ | ||
r1 \tab number of responses needed to exceeded in first stage \cr | ||
n1 \tab number of subjects treated in first stage \cr | ||
r \tab number of responses needed to exceeded at the end of trial \cr | ||
n \tab total number of subjects to be treated in the trial \cr | ||
EN(pu) \tab expected number pf patients in the trial under pu \cr | ||
PET(pu) \tab probability of stopping after the first stage under pu | ||
}} | ||
Trial is stopped early if <= r1 responses are seen in the first stage and | ||
treatment is considered desirable only when >r responses seen. | ||
} | ||
\description{ | ||
Calculates the sample size and decision rules for Optimal and Minimax | ||
two-stage Phase II designs given by Richard Simon. The trial proceeds to | ||
the second stage only if a minimal number of responses is observed at the | ||
end of the first stage. | ||
Trial is stopped early if <= r1 responses are seen in the first stage | ||
and treatment is considered desirable only when >r responses seen. | ||
} | ||
\section{Methods (by generic)}{ | ||
\itemize{ | ||
\item \code{print(ph2simon)}: formats and returns the minimax and optimal designs | ||
\item \code{plot(ph2simon)}: plots the expected sample size against the maximum sample size ass in Jung et al., 2001 | ||
\itemize{ | ||
\item \code{print(ph2simon)}: formats and returns the minimax, | ||
optimal and any admissible designs. | ||
\item \code{plot(ph2simon)}: plots the expected sample size against | ||
the maximum sample size as in Jung et al., 2001 | ||
} | ||
} | ||
}} | ||
\examples{ | ||
ph2simon(0.2, 0.4, 0.1, 0.1) | ||
ph2simon(0.2, 0.35, 0.05, 0.05) | ||
ph2simon(0.2, 0.35, 0.05, 0.05, nmax=150) | ||
} | ||
\references{ | ||
Simon R. (1989). Optimal Two-Stage Designs for Phase II | ||
Clinical Trials. \emph{Controlled Clinical Trials} 10, 1-10. | ||
Simon R. (1989). Optimal Two-Stage Designs for Phase II Clinical | ||
Trials. \emph{Controlled Clinical Trials} 10, 1-10. | ||
Jung SH, Carey M and Kim KM. (2001). Graphical Search for Two-Stage Designs | ||
for Phase II Clinical Trials. \emph{Controlled Clinical Trials} 22, | ||
367-372. | ||
Jung SH, Carey M and Kim KM. (2001). Graphical Search for Two-Stage | ||
Designs for Phase II Clinical Trials. \emph{Controlled Clinical | ||
Trials} 22, 367-372. | ||
} | ||
\seealso{ | ||
\code{\link{twostage.inference}}, \code{\link{oc.twostage.bdry}} | ||
\code{\link{twostage.inference}}, \code{\link{oc.twostage.bdry}} | ||
} | ||
\keyword{design} |
Empty file.
Empty file.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.