NEWS.md
rankp0 argument and output from the seamless design functions and simulators, which now always select the most promising treatment at the end of phase 2getNFromNeventsAndFollowup and its C++ backend in lrstat.cpp for accrual duration calculations under target-event and follow-up constraintsfadjpduncpp (used by fadjpdun) from 1.0 to positive infinity so that ratios exceeding 1 are properly accounted for when computing intersection p-valuessimulate parameter to the lrschoenfeld function, and added a half-count correction for extreme simulated powersctbonferroni to lrsim_bmTrtSel
fwer to the output of lrsim_bmTrtSel
byMethod result from lrsim_bmTrtSel and to the run_scenario output data framelrsim_bmTrtSel through the totalNumberOfEvents target, while retaining studyDurationPhase3 for fixed-duration analyseslrsim_bmTrtSel from response-status-stratified hazards to a copula-based approach, with the latent biomarker response variable correlated directly with the TTE endpointlrsim_bmTrtSel by precalculating the sample size based nominal time stage boundaries once before data generationexitprob_seamless under equal treatment effects by evaluating the phase-2 selected-arm probabilities once and using arm symmetry for the remaining armsfPCStagewise input parameters stg1_inthyp_nr and stg2_elemhyp to stg1_inthyp_nr_idx and stg2_elemhyp_idx, respectively, to make their index semantics explicit and align them with the output names and related adaptive-testing interfaceslrsim_bmTrtSel testing method identifiers to lowercase, including inputs, returned methods and byMethod names, and sumdataTTE rejection indicator columnssumdataBIN and sumdataTTE summary datasets to lrsim_bmTrtSel, including zBiomarker in sumdataBIN and all individual and pooled stage 1 log-rank Z statistics in sumdataTTE to allow derivation of rejection decisions for all methods, along with optional subject-level rawdataBIN and rawdataTTE datasets controlled by maxNumberOfRawDatasets
rmvnorm and related multivariate-normal sampling helpers for drawing correlated random vectors from a covariance matrix via Cholesky-based generation and seeded overloadspordmvnormr to compute lower- and upper-tail probabilities for order statistics of multivariate normal random variables, with analytic shortcuts for nonnegative compound-symmetry covariance structures and inclusion-exclusion over reduced-dimensional orthant probabilities for general covariance matricesmvtnorm from Suggests
corrEfficacyToxicity in lrsim_bmTrtSel_cpp() from 0.5 to 0
collapse argument typo in print.nbpower
.format_spending() helper, preserving the existing printed outputstandardized C++ pointer/reference declaration style across src with a project-level .clang-format (80-column, 2-space indent, type *name and type &name alignment) and aligned headers/sources to that convention
excluded .clang-format from package build artifacts via .Rbuildignore
corrected conditional Type I error calculations in adaptDesign, adaptDesign_multiarm, adaptDesign_seamless, getCP, getCP_multiarm, and getCP_seamless to use normalized post-adaptation information rates consistently, including when the Muller and Schafer method is selected
added finthyp to construct the intersection-hypothesis indicator matrix for a given number of elementary hypotheses, matching the row order used by fwgtmat and fDefaultWgtmat, for use when migrating custom weight matrices to the new fadjpbon/fadjpsim/fadjpdun interfaces
reduced per-iteration buffer allocation in fadjpsim’s Simes p-value adjustment by reusing preallocated vectors instead of allocating new ones for each family block
avoided recomputing the transform gradient for each probability in survQuantile, computing it once per event time instead
simplified graphical and adaptive multiple-testing p-value adjustment interfaces by making p-values the first argument and automatically supplying equal intersection weights, a single family, and default within-family correlations when these inputs are omitted
added public R wrappers with nthreads controls for the multi-arm and seamless design, conditional power, and confidence interval functions
simplified one-active-arm getBound_multiarm and getBound_seamless calculations by delegating to getBound
added rank-adjusted and conditional-error-updated TSSSD methods to lrsim_bmTrtSel (TSSSD.k, TSSSD.uk, TSSSD.k.rank, TSSSD.uk.rank, TSSSD.k.ce, TSSSD.uk.ce, TSSSD.k.rank.ce, TSSSD.uk.rank.ce) and improved TSSSD boundary computation efficiency, including cached single-arm boundaries and precomputed CE nominal boundaries
replaced the lpSolve dependency in getDesignAgreement with a native C++17 simplex solver exposed through Rcpp, preserving the documented design results and adding regression tests for the agreement constraints
added lrsim_bmTrtSel and print.lrsim_bmTrtSel for simulation and summary output of phase 2/3 seamless design selecting one dose at the end of phase 2 based on the posterior benefit-risk tradeoff of correlated binary efficacy and toxicity endpoints, and comparing the closed testing procedures with inverse normal combination, the conditional error rate method, the two-stage seamless design boundaries, and the unadjusted tests for the confirmatory analysis of the long-term endpoint
added unit tests for the adaptive two-stage multiple testing functions
allowed alpha1 = 0 in fCERStageBound when no stage 1 efficacy stopping is planned
set the stage 2 boundary to infinity in fCERNewBound when the conditional error rate exceeds 1
used struct output to reduce overhead of returning multiple values for exitprobcpp, exitprob_seamless_cpp and exitprob_multiarm_cpp
allowed the retesting of an active hypothesis if its weight has increased due to the rejection of another hypothesis in fseqbon
added getDesign2 for futility boundary under the null hypothesis for group sequential designs
renamed mams to multiarm for more informative description
added rdsim_seamless for simulation of phase 2/3 seamless design for risk difference
updated lrsim_seamless and rdsim_seamless to use rank-based phase-2 selection naming and outputs, including rankp0 in the wrapper inputs, overview output, and print methods
updated seamless_design.cpp related functions to use rank-based treatment selection with rankp0 throughout seamless design, conditional power, confidence interval, and print outputs
added rdsim_multiarm for simulation of multi-arm multi-stage design for risk difference
added lrsim_mcpmod and print.lrsim_mcpmod for simulation and summary output of MCPMod design using the log-rank test
updated mvnormr to support positive semidefinite covariance matrix via minimal diagonal stabilization during factorization
used seed = 314159 as the default for pmvnormr and qmvnormr to ensure the same random numbers are generated and results are reproducible across different runs
added the selection to Stage 2 probability in lrsim_seamless
fixed liferegr to handle empty optional variable inputs (stratum, covariates, weight, offset, id) without triggering a formula parse error from an empty right-hand side
updated fadjpbon, fadjpsim, and fadjpdun to add the local p-values and the incidence matrix for the intersection hypotheses
updated fadjpdun for calculating the local p-values for the intersection hypotheses
updated ftrunc, fstdmix, and fmodmix to return a list with padj and pinter components instead of a bare matrix/vector of adjusted p-values
New features
Bug fixes
New features
Bug fixes