Man pages for campsismod
Generic Implementation of a PK/PD Model

addAdd element to list.
add_ode_compartmentAdd ODE compartment to compartments object.
add_propertiesAdd properties to compartments object.
add_rseAdd relative standard error (RSE) to the specified parameter.
add_suffixGeneric function to add a suffix to various objects like...
addSuffixGeneric function to add a suffix to various objects like...
all_naCheck is vector has NA's only.
append_code_recordsAppend code records
append_commentAppend comment.
appendCompartmentsAppend compartments.
appendModelAppend model (or simply add).
append_parametersAppend parameters.
as.data.frameAs data frame method.
assert_single_character_stringAssert the given character vector is a single character...
auto_detect_nonmemAuto-detect special variables from NONMEM as compartment...
AutoReplicationSettingsCreate auto replication settings.
auto_replication_settings-classAuto replication settings class.
BioavailabilityCreate a bioavailability for the specified compartment.
CampsisModelCreate a new Campsis model.
campsis_model-classCampsis model class.
check_matrix_is_positive_definiteCheck OMEGA/SIGMA matrix for positive definiteness.
code_record-classCode record class. See this code record as an abstract class....
CodeRecordsCreate a list of code records.
colon-equalsColon-equals operator.
CommentCreate a new comment.
comment-classComment class. A statement starting with #.
CompartmentCreate a compartment.
compartment_bioavailability-classCompartment bioavailability class.
compartment-classCompartment class.
compartment_infusion_duration-classCompartment infusion duration class.
compartment_infusion_rate-classCompartment infusion rate class.
compartment_initial_condition-classCompartment initial condition class.
compartment_lag_time-classCompartment lag time class.
compartment_properties-classCompartment properties class.
compartment_property-classCompartment property class.
CompartmentsCreate a list of compartments
compartments-classCompartments class.
containsCheck if an element exists in list.
convert_any_commentConvert Campsis comment style to C/C++ code. Only the first #...
convert_outvars_to_captureConvert outvars argument to capture. Variables that are...
defaultGet default element from list.
deleteDelete an element from this list.
disableDisable.
double_array_parameter-classDouble-array parameter class. This parameter has 2 indexes....
duration_record-class(Infusion)-duration record class.
EquationCreate a new equation.
equation-classEquation class. Any statement in the form A = B.
ErrorRecordCreate ERROR code record.
error_record-classError record class.
exportExport function.
export_to_jsonExport the given object to a JSON object, ready to be written...
export_type-classExport type class.
extract_lhsExtract left-hand-side expression.
extract_rhsExtract right-hand-side expression.
extract_text_between_bracketsExtract text between brackets.
findFind an element in list.
fix_omegaFix omega matrix for SAME OMEGA parameters that have NA...
fixOmegaFix omega matrix for SAME OMEGA parameters that have NA...
flag_sampled_parameter_rowsFlag all parameter rows that have at least one parameter out...
f_record-classBioavailability record class.
get_by_indexGet element by index.
getByIndexGet element by index.
get_by_nameGet an element from a list by name. Never return more than 1...
getByName#' Get an element from a list by name.
get_campsismod_optionGet Campsismod option logic.
get_campsismod_optionsGet the Campsismod options (R options).
get_compartment_indexGet the compartment index for the specified compartment name.
getCompartmentIndexGet the compartment index for the specified compartment name.
get_compartmentsDetect all compartments names from the code records. Only for...
get_mapping_matrixReturn a matrix filled in with OMEGA/SIGMA names to be mapped...
get_nameGet element name.
getNameGet element names from list.
get_name_in_modelGet the name of the given parameter in the Campsis model.
getNameInModelGet the name of the given parameter in the Campsis model.
get_namesGet element names from list.
getNamesGet element names from list.
get_nonmem_nameGet NONMEM name.
get_omega_blockGet the right block of OMEGA's.
get_omega_indexesGet the indexes of the omegas.
get_prefixGet prefix.
get_record_delimiterGet record delimiter.
get_record_equation_namesGet record equation names
get_record_nameGet record name.
get_uncertaintyGet uncertainty on the parameters.
getUncertaintyGet uncertainty on the parameters.
get_var_covGet variance-covariance matrix.
grapes-greater-than-grapesMagritt operator for piping.
has_commentCheck if string contains Campsis-style comments.
has_exact_methodHas exact method allows to check the existence of a S4 method...
has_off_diagonal_omegasHas off-diagonal omegas.
IfStatementCreate a new IF-statement.
if_statement-classIf-statement class. Any statement in the form if (condition)...
if_statement_pattern_strReturn the IF-statement pattern (string form).
index_ofGet the index of an element in list.
indexOfGet the index of an element in list.
InfusionDurationCreate an infusion duration.
InfusionRateCreate an infusion rate.
InitialConditionCreate an initial condition.
init_record-classInit record class.
is_block_fixedSay if the block is fixed (i.e. all parameters are fixed).
is_commentCheck if string is a Campsis comment (i.e. not an equation).
is_diagIs diagonal.
isDiagIs diagonal.
is_empty_lineCheck if string is an empty line.
is_equationSay if line in record is an equation not.
is_if_statementSay if line in record is an IF-statement.
is_matrix_positive_definiteIs matrix positive definite. Same check as 'mvtnorm' does.
is_odeSay if line(s) in record is/are ODE or not.
is_record_delimiterIs record delimiter. A record delimiter is any line starting...
is_rxodeCheck if the destination engine is RxODE or rxode2. Note that...
is_strict_record_delimiterIs strict record delimiter. A strict record delimiter is any...
JSONElementInstantiate a JSON element.
json_element-classJSON element class.
json_to_campsis_modelJSON to Campsis dataset.
json_to_off_diag_parameterConvert JSON correlation parameter (OMEGA or SIGMA) into a...
json_to_parameterJSON to Campsis parameter.
jsonToParameterJSON to Campsis parameter.
lag_record-classLag record class.
LagTimeCreate a lag time for the specified compartment.
lengthReturn the length of this list.
LineBreakCreate a new line break.
line_break-classLine-break class. A linebreak in the model.
load_from_jsonFill-in S4 object from the JSON content.
loadFromJSONFill-in S4 object from the JSON content.
MainRecordCreate MAIN code record.
main_record-classMain record class.
ManualReplicationSettingsCreate manual replication settings.
manual_replication_settings-classManual replication settings class.
map_json_properties_to_s4_slotsMap JSON properties to S4 slots.
mapJSONPropertiesToS4SlotsMap JSON properties to S4 slots.
map_s4_slots_to_json_propertiesMap S4 slots to JSON properties.
mapS4SlotsToJSONPropertiesMap S4 slots to JSON properties.
match_double_array_parameterMatch double array parameter from list based on the name...
match_single_array_parameterMatch single array parameter from list based on the name...
max_indexMax index.
maxIndexMax index.
methods_global_functionsA empty method only used to declare some of the global...
min_indexMin index.
minIndexMin index.
min_max_defaultMin/max default values for the given parameter.
model_statement-classModel statement class. Any statement in a code record.
ModelStatementsCreate an empty list of model statements.
model_statements-classModel statements class. A list of statements.
model_suiteCampsis model suite.
moveMove element 'x' from object to a certain place.
mrgsolve_blockConvert code record for mrgsolve.
mrgsolve_captureGet the CAPTURE block for mrgsolve.
mrgsolve_compartmentGet the compartment block for mrgsolve.
mrgsolve_mainGet the MAIN block for mrgsolve.
mrgsolve_matrixGet the OMEGA/SIGMA matrix for mrgsolve.
mrgsolve_odeGet the ODE block for mrgsolve.
mrgsolve_paramGet the parameters block for mrgsolve.
mrgsolve_tableGet the TABLE block for mrgsolve.
mrgsolve_type-classMrgsolve export type class.
OdeCreate a new ordinary differential equation (ODE).
ode-classODE class. Any statement in the form d/dt(A_CMT) = B.
OdeRecordCreate ODE code record.
ode_record-classODE record class.
OmegaCreate an OMEGA parameter.
OmegaBlockCreate a block of OMEGA's.
OmegaBlocksCreate a list of OMEGA blocks.
omega-classOmega parameter class.
open_jsonOpen JSON file.
parameter-classParameter class. Any parameter in a pharmacometric model.
ParametersCreate a list of parameters.
parameters-classParameters class.
parse_if_statementParse IF-statement. Assumption: 'is_if_statement' method...
parse_statementsParse statements code and return Campsis statements.
PatternCreate a pattern.
pattern-classPattern class.
pmx_element-classPMX element class.
pmx_list-classPMX list class.
pmx_position_by_element-classPMX position by element class.
pmx_position_by_index-classPMX position by index class.
pmx_position-classPMX position class.
PositionElement position in list.
processDoubleArrayArgumentsProcess double array arguments.
process_extra_argProcess extra arguments.
processExtraArgProcess extra arguments.
process_json_double_array_parameterProcess JSON double array parameter.
properties_record-classProperties record class.
rate_record-class(Infusion)-rate record class.
readGeneric read method to read data from a file or a folder.
read.allparametersRead all parameters files at once.
read.campsisRead a Campsis model.
read.modelRead model file.
read.parametersRead parameters file.
read.pmxmodRead a Campsis model (deprecated).
read.varcovRead variance-covariance file.
remove_na_columnRemove given column(s) if it has only NA's.
remove_trailing_line_breaksRemove all trailing line breaks.
replaceReplace element by another in list.
replace_allReplace all occurrences in object.
replaceAllReplace all occurrences in object.
replicateReplicate generic object.
replicated_campsis_model-classReplicated Campsis model class.
replication_settings-classReplication settings interface.
rxode_codeGet code for rxode2
rxode_matrixGet the OMEGA/SIGMA matrix for rxode2.
rxodeMatrixGet the OMEGA/SIGMA matrix for rxode2.
rxode_paramsGet the parameters vector for rxode2.
rxode_type-classRxODE/rxode2 export type class.
sample_from_inverse_chi_squared_coreSample from scaled inverse chi-squared distribution (core...
sample_from_inverse_chi_squared_or_wishartSample parameters from inverse scaled chi-squared or wishart...
sample_from_inverse_wishart_coreSample from scaled inverse Wishart distribution (core...
sample_from_multivariate_normal_distributionSample from a multivariate normal distribution.
sample_from_multivariate_normal_distribution_coreSample from multivariate normal distribution (core method).
sample_genericGeneric function for parameter sampling according to the...
selectGet a subset of an object.
set_min_maxSet the minimum and maximum value on a model parameter.
shift_omega_indexesShift OMEGA indexes.
SigmaCreate a SIGMA parameter.
sigma-classSigma parameter class.
single_array_parameter-classSingle-array parameter class. This parameter has a single...
sortSort the specified list.
standardiseStandardise.
statements_record-classStatements record class.
ThetaCreate a THETA parameter.
theta-classTheta parameter class.
to_stringto_string generic method.
toStringto_string generic method.
trimTrim character vector. Remove all leading and trailing...
UnknownStatementCreate a new ordinary differential equation (ODE).
unknown_statement-classUnknown statement class. Any statement not recognized by...
UnsupportedDestExceptionUnknown destination engine exception.
update_compartmentsUpdate compartments list from the persisted records. Exported...
updateCompartmentsUpdate compartments list from the persisted records. Exported...
update_omegasUpdate OMEGAs that are same. Same OMEGAs are written as...
update_parametersUpdate model parameters based on the parameters issued from...
VariablePatternCreate a variable pattern.
variable_pattern-classVariable pattern class.
variable_pattern_no_start_strReturn the variable pattern (string form), without the first...
variable_pattern_strReturn the variable pattern (string form).
writeWrite generic object to files.
write_parametersWrite subset of parameters (theta, omega or sigma).
write_record_delimiterWrite record delimiter line.
write_varcovWrite variance-covariance matrix.
campsismod documentation built on July 30, 2026, 9:06 a.m.