Man pages for crmPack
Object-Oriented Implementation of Dose Escalation Designs

and-StoppingAll-Stopping-methodCombine a Stopping List and an Atomic Stopping Rule with AND
and-Stopping-StoppingAll-methodCombine an Atomic Stopping Rule and a Stopping List with AND
and-Stopping-Stopping-methodCombine Two Stopping Rules with AND
approximateApproximate posterior with (log) normal distribution
assertionsAdditional Assertions for 'checkmate'
biomarkerGet the Biomarker Levels for a Given Dual-Endpoint Model,...
check_equalCheck if All Arguments Are Equal
check_formatCheck that an argument is a valid format specification
check_lengthCheck if vectors are of compatible lengths
check_probabilitiesCheck if an argument is a probability vector
check_probabilityCheck if an argument is a single probability value
check_probability_rangeCheck if an argument is a probability range
check_rangeCheck that an argument is a numerical range
CohortSize-class'CohortSize'
CohortSizeConst-class'CohortSizeConst'
CohortSizeDLT-class'CohortSizeDLT'
CohortSizeMax-class'CohortSizeMax'
CohortSizeMin-class'CohortSizeMin'
CohortSizeOrdinal-class'CohortSizeOrdinal'
CohortSizeParts-class'CohortSizeParts'
CohortSizeRange-class'CohortSizeRange'
crmPackObject-oriented implementation of CRM designs
CrmPackClass'CrmPackClass'
crmPackExampleOpen the Example PDF for crmPack
crmPackHelpOpen the Browser with Help Pages for crmPack
DADesign-class'DADesign'
DALogisticLogNormal-class'DALogisticLogNormal'
dapplyApply a Function to Subsets of Data Frame.
DASimulations-class'DASimulations'
Data-class'Data'
DataDA-class'DataDA'
DataDual-class'DataDual'
DataGrouped-class'DataGrouped'
DataMixture-class'DataMixture'
DataOrdinal-class'DataOrdinal'
DataParts-class'DataParts'
Design-class'Design'
DesignGrouped-class'DesignGrouped'
DesignOrdinal-class'DesignOrdinal'
dinvGammaCompute the Density of Inverse Gamma Distribution
DLTLikelihoodLikelihood of DLTs in each interval
doseComputing the Doses for a given independent variable, Model...
doseFunctionGetting the Dose Function for a Given Model Type
dose_grid_rangeGetting the Dose Grid Range
DualDesign-class'DualDesign'
DualEndpointBeta-class'DualEndpointBeta'
DualEndpoint-class'DualEndpoint'
DualEndpointEmax-class'DualEndpointEmax'
DualEndpointRW-class'DualEndpointRW'
DualResponsesDesign-class'DualResponsesDesign.R'
DualResponsesSamplesDesign-class'DualResponsesSamplesDesign'
DualSimulations-class'DualSimulations'
DualSimulationsSummary-class'DualSimulationsSummary'
EffFlexi-class'EffFlexi'
efficacyComputing Expected Efficacy for a Given Dose, Model and...
efficacyFunctionGetting the Efficacy Function for a Given Model Type
Effloglog-class'Effloglog'
enable_loggingVerbose Logging
examineObtain Hypothetical Trial Course Table for a Design
fitFit method for the Samples class
fitGainGet the fitted values for the gain values at all dose levels...
fitPEMGet the fitted DLT free survival (piecewise exponential...
FractionalCRM-class'FractionalCRM'
gainCompute Gain Values based on Pseudo DLE and a Pseudo Efficacy...
GeneralData-class'GeneralData'
GeneralModel-class'GeneralModel'
GeneralSimulations-class'GeneralSimulations'
GeneralSimulationsSummary-class'GeneralSimulationsSummary'
getEffExtracting Efficacy Responses for Subjects Categorized by the...
get_result_listHelper Function to Obtain Simulation Results List
get-Samples-character-methodGet specific parameter samples and produce a data.frame
h_all_equivalentComparison with Numerical Tolerance and Without Name...
h_barplot_percentagesConvenience function to make barplots of percentages
h_blind_plot_dataHelper Function to Blind Plot Data
h_calc_report_label_percentageHelper function to calculate percentage of true stopping...
h_check_fun_formalsChecking Formals of a Function
h_convert_ordinal_dataConvert a Ordinal Data to the Equivalent Binary Data for a...
h_convert_ordinal_modelConvert an ordinal CRM model to the Equivalent Binary CRM...
h_convert_ordinal_samplesConvert a Samples Object from an ordinal Model to the...
h_covr_helpersHelpers for stripping expressions of 'covr'-inserted trace...
h_default_if_emptyGetting the default value for an empty object
h_determine_dltsHelper function to determine the dlts including first...
h_find_intervalFind Interval Numbers or Indices and Return Custom Number For...
h_format_numberConditional Formatting Using C-style Formats
h_get_formatted_dosegridFormat a 'doseGrid' for Printing
h_get_min_inf_betaHelper for Minimal Informative Unimodal Beta Distribution
h_get_quantiles_start_valuesGet Starting Values for Quantiles Optimization
h_group_dataGroup Together Mono and Combo Data
h_info_theory_distCalculating the Information Theoretic Distance
h_in_rangeCheck which elements are in a given range
h_is_positive_definiteTesting Matrix for Positive Definiteness
h_jags_add_dummyAppending a Dummy Number for Selected Slots in Data
h_jags_extract_samplesExtracting Samples from 'JAGS' 'mcarray' Object
h_jags_get_dataGetting Data for 'JAGS'
h_jags_get_model_initsSetting Initial Values for 'JAGS' Model Parameters
h_jags_join_modelsJoining 'JAGS' Models
h_jags_write_modelWriting JAGS Model to a File
h_knit_format_funcUsed to obtain expected format.
h_model_dual_endpoint_betaUpdate certain components of 'DualEndpoint' model with regard...
h_model_dual_endpoint_rhoUpdate 'DualEndpoint' class model components with regard to...
h_model_dual_endpoint_sigma2betawUpdate certain components of 'DualEndpoint' model with regard...
h_model_dual_endpoint_sigma2wUpdate 'DualEndpoint' class model components with regard to...
h_next_best_eligible_dosesGet Eligible Doses from the Dose Grid.
h_next_best_mg_ciCredibility Intervals for Max Gain and Target Doses at...
h_next_best_mg_doses_at_gridGet Closest Grid Doses for a Given Target Doses for...
h_next_best_mg_plotBuilding the Plot for 'nextBest-NextBestMaxGain' Method.
h_next_best_mgsamples_plotBuilding the Plot for 'nextBest-NextBestMaxGainSamples'...
h_next_best_ncrm_loss_plotBuilding the Plot for 'nextBest-NextBestNCRMLoss' Method.
h_next_best_td_plotBuilding the Plot for 'nextBest-NextBestTD' Method.
h_next_best_tdsamples_plotBuilding the Plot for 'nextBest-NextBestTDsamples' Method.
h_null_if_naGetting 'NULL' for 'NA'
h_obtain_dose_grid_rangeHelper Function Containing Common Functionality
h_plot_data_cohort_linesPreparing Cohort Lines for Data Plot
h_plot_data_dfPreparing Data for Plotting
h_plot_doses_triedHelper Function to Create Doses Tried Plot
h_plot_simulation_trajectoryHelper Function to Create Trajectory Plot
h_prepare_labelsCheck That Labels Are Valid and Useful
h_prepare_unitsAppend Units to a Numeric Dose
h_pseudo_sim_fit_summaryHelper Function to Calculate Fit Summary
h_pseudo_sim_inverse_doseHelper Function to Calculate Inverse Dose
h_quantiles_target_functionTarget Function for Quantiles Optimization
h_rapplyRecursively Apply a Function to a List
h_simulations_output_formatHelper Function to create return list for Simulations output
h_slotsGetting the Slots from a S4 Object
h_summarize_add_statsHelper function to calculate average across iterations for...
h_test_named_numericCheck that an argument is a named vector of type numeric
h_this_truthHelper Function to call truth calculation
h_unpack_stopitHelper function to recursively unpack stopping rules and...
h_validate_combine_resultsCombining S4 Class Validation Results
h_validate_common_data_slotsHelper Function performing validation Common to Data and...
Increments-class'Increments'
IncrementsDoseLevels-class'IncrementsDoseLevels'
IncrementsHSRBeta-class'IncrementsHSRBeta'
IncrementsMaxToxProb-class'IncrementsMaxToxProb'
IncrementsMin-class'IncrementsMin'
IncrementsOrdinal-class'IncrementsOrdinal'
IncrementsRelative-class'IncrementsRelative'
IncrementsRelativeDLT-class'IncrementsRelativeDLT'
IncrementsRelativeDLTCurrent-class'IncrementsRelativeDLTCurrent'
IncrementsRelativeParts-class'IncrementsRelativeParts'
knit_printRender a 'CohortSizeConst' Object
LogisticIndepBeta-class'LogisticIndepBeta'
LogisticKadaneBetaGamma-class'LogisticKadaneBetaGamma'
LogisticKadane-class'LogisticKadane'
LogisticLogNormal-class'LogisticLogNormal'
LogisticLogNormalGrouped-class'LogisticLogNormalGrouped'
LogisticLogNormalMixture-class'LogisticLogNormalMixture'
LogisticLogNormalOrdinal-class'LogisticLogNormalOrdinal'
LogisticLogNormalSub-class'LogisticLogNormalSub'
LogisticNormal-class'LogisticNormal'
LogisticNormalFixedMixture-class'LogisticNormalFixedMixture'
LogisticNormalMixture-class'LogisticNormalMixture'
logitShorthand for Logit Function
match_within_toleranceHelper Function for Value Matching with Tolerance
maxDoseDetermine the Maximum Possible Next Dose
maxSize"MAX" Combination of Cohort Size Rules
mcmcObtaining Posterior Samples for all Model Parameters
McmcOptions-class'McmcOptions'
MinimalInformativeConstruct a Minimally Informative Prior
minSize"MIN" Combination of Cohort Size Rules
ModelEff-class'ModelEff'
ModelLogNormal-class'ModelLogNormal'
ModelParamsNormal-class'ModelParamsNormal'
ModelPseudo-class'ModelPseudo'
ModelTox-class'ModelTox'
myBayesLogitMCMC Sampling for Bayesian Logistic Regression Model
names-Samples-methodThe Names of the Sampled Parameters
nextBestFinding the Next Best Dose
NextBest-class'NextBest'
NextBestDualEndpoint-class'NextBestDualEndpoint'
NextBestEWOC-class'NextBestEWOC'
NextBestInfTheory-class'NextBestInfTheory'
NextBestMaxGain-class'NextBestMaxGain'
NextBestMaxGainSamples-class'NextBestMaxGainSamples'
NextBestMinDist-class'NextBestMinDist'
NextBestMTD-class'NextBestMTD'
NextBestNCRM-class'NextBestNCRM'
NextBestNCRMLoss-class'NextBestNCRMLoss'
NextBestOrdinal-class'NextBestOrdinal'
NextBestProbMTDLTE-class'NextBestProbMTDLTE'
NextBestProbMTDMinDist-class'NextBestProbMTDMinDist'
NextBestTD-class'NextBestTD'
NextBestTDsamples-class'NextBestTDsamples'
NextBestThreePlusThree-class'NextBestThreePlusThree'
ngridNumber of Doses in Grid
OneParExpPrior-class'OneParExpPrior'
OneParLogNormalPrior-class'OneParLogNormalPrior'
or-StoppingAny-StoppingCombine a Stopping List and an Atomic Stopping Rule with OR
or-Stopping-StoppingCombine Two Stopping Rules with OR
or-Stopping-StoppingAnyCombine an Atomic Stopping Rule and a Stopping List with OR
pinvGammaCompute the Distribution Function of Inverse Gamma...
pipePipe operator
plot-DataHelper Function for the Plot Method of the Data and...
plot-DataDA-missing-methodPlot Method for the 'DataDA' Class
plot-DataDual-missing-methodPlot Method for the 'DataDual' Class
plot-DataDual-ModelEff-methodPlot of the fitted dose-efficacy based with a given pseudo...
plot-Data-ModelTox-methodPlot of the fitted dose-tox based with a given pseudo DLE...
plotDualResponsesPlot of the DLE and efficacy curve side by side given a DLE...
plot-DualSimulations-missing-methodPlot 'DualSimulations'
plot-DualSimulationsSummary-missing-methodPlot Dual-Endpoint Design Simulation Summary
plotGainPlot the gain curve in addition with the dose-DLE and...
plot-GeneralSimulations-missing-methodPlot 'GeneralSimulations'
plot-GeneralSimulationsSummary-missing-methodPlot 'GeneralSimulationsSummary'
plot.gtablePlot 'gtable' Objects
plot-PseudoDualFlexiSimulations-missing-methodPlot 'PseudoDualFlexiSimulations'
plot-PseudoDualSimulations-missing-methodPlot 'PseudoDualSimulations'
plot-PseudoDualSimulationsSummary-missing-methodPlot 'PseudoDualSimulationsSummary'
plot-PseudoSimulationsSummary-missing-methodPlot 'PseudoSimulationsSummary'
plot-Samples-DALogisticLogNormal-methodPlotting dose-toxicity model fits
plot-Samples-DualEndpoint-methodPlotting dose-toxicity and dose-biomarker model fits
plot-Samples-GeneralModel-methodPlotting dose-toxicity model fits
plot-Samples-ModelEff-methodPlot the fitted dose-efficacy curve using a model from...
plot-Samples-ModelTox-methodPlot the fitted dose-DLE curve using a 'ModelTox' class model...
plot-SimulationsSummary-missing-methodPlot Model-Based Design Simulation Summary
positive_number'positive_number'
printVignettePrint Vignette
probComputing Toxicity Probabilities for a Given Dose, Model and...
probFunctionGetting the Prob Function for a Given Model Type
probitShorthand for Probit Function
ProbitLogNormal-class'ProbitLogNormal'
ProbitLogNormalRel-class'ProbitLogNormalRel'
PseudoDualFlexiSimulations-class'PseudoDualFlexiSimulations'
PseudoDualSimulations-class'PseudoDualSimulations'
PseudoDualSimulationsSummary-class'PseudoDualSimulationsSummary'
PseudoSimulations-class'PseudoSimulations'
PseudoSimulationsSummary-class'PseudoSimulationsSummary'
qinvGammaCompute the Quantile Function of Inverse Gamma Distribution
Quantiles2LogisticNormalConvert Prior Quantiles to Logistic (Log) Normal Model
rinvGammaRandom Generation for the Inverse Gamma Distribution
RuleDesign-class'RuleDesign'
RuleDesignOrdinal-class'RuleDesignOrdinal'
SafetyWindow-class'SafetyWindow'
SafetyWindowConst-class'SafetyWindowConst'
SafetyWindowSize-class'SafetyWindowSize'
Samples-class'Samples'
saveSampleDetermining if this Sample Should be Saved
set_seedHelper Function to Set and Save the RNG Seed
show-DualSimulationsSummary-methodShow the Summary of Dual-Endpoint Simulations
show-GeneralSimulationsSummary-methodShow the Summary of the Simulations
show-PseudoDualSimulationsSummary-methodShow the Summary of 'PseudoDualSimulations'
show-PseudoSimulationsSummary-methodShow the Summary of 'PseudoSimulations'
show-SimulationsSummary-methodShow the Summary of Model-Based Design Simulations
simulate-DADesign-methodSimulate outcomes from a time-to-DLT augmented CRM design
simulate-DesignGrouped-methodSimulate Method for the 'DesignGrouped' Class
simulate-Design-methodSimulate outcomes from a CRM design
simulate-DualDesign-methodSimulate outcomes from a dual-endpoint design
simulate-DualResponsesDesign-methodSimulate dose escalation procedure using both DLE and...
simulate-DualResponsesSamplesDesign-methodSimulate dose escalation procedure using DLE and efficacy...
simulate-RuleDesign-methodSimulate outcomes from a rule-based design
simulate-TDDesign-methodSimulate dose escalation procedure using DLE responses only...
simulate-TDsamplesDesign-methodSimulate dose escalation procedure using DLE responses only...
Simulations-class'Simulations'
SimulationsSummary-class'SimulationsSummary'
sizeSize of an Object
StartingDose-class'StartingDose'
StoppingAll-class'StoppingAll'
StoppingAny-class'StoppingAny'
Stopping-class'Stopping'
StoppingCohortsNearDose-class'StoppingCohortsNearDose'
StoppingExternal-class'StoppingExternal'
StoppingHighestDose-class'StoppingHighestDose'
StoppingList-class'StoppingList'
StoppingLowestDoseHSRBeta-class'StoppingLowestDoseHSRBeta'
StoppingMaxGainCIRatio-class'StoppingMaxGainCIRatio'
StoppingMinCohorts-class'StoppingMinCohorts'
StoppingMinPatients-class'StoppingMinPatients'
StoppingMissingDose-class'StoppingMissingDose'
StoppingMTDCV-class'StoppingMTDCV'
StoppingMTDdistribution-class'StoppingMTDdistribution'
StoppingOrdinal-class'StoppingOrdinal'
StoppingPatientsNearDose-class'StoppingPatientsNearDose'
StoppingSpecificDose-class'StoppingSpecificDose'
StoppingTargetBiomarker-class'StoppingTargetBiomarker'
StoppingTargetProb-class'StoppingTargetProb'
StoppingTDCIRatio-class'StoppingTDCIRatio'
stopTrialStop the trial?
summary-DualSimulations-methodSummarize Dual-Endpoint Design Simulations
summary-GeneralSimulations-methodSummarize the 'GeneralSimulations', Relative to a Given Truth
summary-PseudoDualFlexiSimulations-methodSummarize 'PseudoDualFlexiSimulations'
summary-PseudoDualSimulations-methodSummarize 'PseudoDualSimulations'
summary-PseudoSimulations-methodSummarize 'PseudoSimulations'
summary-Simulations-methodSummarize Model-Based Design Simulations
TDDesign-class'TDDesign'
TDsamplesDesign-class'TDsamplesDesign'
tidyTidying 'CrmPackClass' objects
TITELogisticLogNormal-class'TITELogisticLogNormal'
update-DataDA-methodUpdating 'DataDA' Objects
update-DataDual-methodUpdating 'DataDual' Objects
update-Data-methodUpdating 'Data' Objects
update-DataOrdinal-methodUpdating 'DataOrdinal' Objects
update-DataParts-methodUpdating 'DataParts' Objects
update-ModelPseudo-methodUpdate method for the 'ModelPseudo' model class. This is a...
Validate'Validate'
v_cohort_sizeInternal Helper Functions for Validation of 'CohortSize'...
v_data_objectsInternal Helper Functions for Validation of 'GeneralData'...
v_designInternal Helper Functions for Validation of 'RuleDesign'...
v_general_simulationsInternal Helper Functions for Validation of...
v_incrementsInternal Helper Functions for Validation of 'Increments'...
v_mcmcoptions_objectsInternal Helper Functions for Validation of 'McmcOptions'...
v_model_objectsInternal Helper Functions for Validation of 'GeneralModel'...
v_model_paramsInternal Helper Functions for Validation of Model Parameters...
v_next_bestInternal Helper Functions for Validation of 'NextBest'...
v_pseudo_simulationsInternal Helper Functions for Validation of...
v_safety_windowInternal Helper Functions for Validation of 'SafetyWindow'...
v_samples_objectsInternal Helper Functions for Validation of 'Samples' Objects
v_starting_doseInternal Helper Functions for Validation of 'StartingDose'...
v_stoppingInternal Helper Functions for Validation of 'Stopping'...
windowLengthDetermine the Safety Window Length of the Next Cohort
crmPack documentation built on Nov. 29, 2025, 5:07 p.m.