Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge cran with ph2simon admissible edit #21

Merged
merged 1 commit into from
Dec 7, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: clinfun
Title: Clinical Trial Design and Data Analysis Functions
Version: 1.1.5
Version: 1.1.6
Depends: R (>= 3.0.0), graphics, stats
Imports: mvtnorm
Suggests: knitr, rmarkdown, survival
Expand Down
4 changes: 4 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# clinfun 1.1.6 (12/06/2023)

* moved twostage.admissible call from print method to ph2simon; added reference

# clinfun 1.1.5 (10/19/2023)

* clarified one-sided vs two-sided futility boundary for gsdesign functions
Expand Down
3 changes: 2 additions & 1 deletion R/ph2simon.R
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ ph2simon <- function(pu, pa, ep1, ep2, nmax = 100) {
ph2$beta <- ep2
ph2$out <- ph2out
ph2$nmax <- nmax
ph2$xopt <- twostage.admissible(ph2)
class(ph2) <- "ph2simon"
ph2
}
Expand All @@ -53,7 +54,7 @@ print.ph2simon <- function(x, ...) {
nopt <- ((1:n)[xout[,5]==min(xout[,5])])[1]
#xopt <- xout[c(nopt,1),]
#dimnames(xopt)[[1]] <- c("Optimal","Minimax")
xopt <- twostage.admissible(x)
xopt <- x$xopt
cat("\n Simon 2-stage Phase II design \n\n")
cat("Unacceptable response rate: ",x$pu,"\n")
cat("Desirable response rate: ",x$pa,"\n")
Expand Down
4 changes: 4 additions & 0 deletions man/ph2simon.Rd
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,10 @@ ph2simon(pu, pa, ep1, ep2, nmax=100)
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, Lee T, Kim K, and George, SL. (2004). Admissible two-stage
designs for phase II cancer clinical trials. \emph{Statistics in
medicine} 23(4), 561-569.
}

\seealso{
Expand Down