Skip to contents

All functions

apply_pknca_options()
Read settings from a JSON file, and pass to PKNCA.options()
check_nca_grouping()
Check that grouping specified to PKNCA is likely to be correct If the grouping results in most groups having too few datapoints to perform NCA and calculate half-life, then the grouping is likely wrong.
create_nca_table()
Create a table for NCA results
get_nca_individual_fits()
Extract individual fit data from a PKNCA results object, and return as data.frame convenient for plotting.
get_nca_units()
Get a table of units from a raw PKNCA object
get_parameter_names_from_nca_data()
Get parameter names from a run_nca() output object
get_pk_parameters_from_pknca_options()
Get the PK parameters requested in a PKNCA interval specification
get_treatment_sequence()
Function to generate a sequence variable for e.g. a crossover trial design
is_set_to_inf()
Is value meant to be Inf?
is_set_to_missing()
Is value meant to be NA?
map_nca_settings()
Map user-provided NCA settings to NCA engine (e.g. PKNCA)
nca_add_auctau()
Add AUCtau to the NCA output, if multi-dose PK data
nca_admiral
Example data for NCA
PKNCA_impute_method_start_obs_predose_conc0() PKNCA_impute_method_start_obs_c0_logslope()
Imputation methods for the concentration at the start of an NCA interval
nca_post_accumulation()
NCA post-processing function to calculate accumulation rate
nca_post_bioavailability()
NCA post-processing function to calculate relative bioavailability
parse_data_for_nca()
Parse data into dataset for NCA
parse_exclusions()
Helper function to get a mask based on a list of vectors with identifiers. This function is used to gather exclusions in the run_nca() function.
parse_pknca_opts_from_spec()
Get the PKNCA options from a spec file, and parse into expected format for PKNCA::PKNCA.options()
read_spec_from_file()
Read specification from metadata file
remap_core()
Core remapping function
remap_nca_output()
Function to export output from PKNCA to CDISC- or other mappings
restore_pknca_options()
Restore a previously saved set of PKNCA options
rnorm_with_seed()
Draw from a normal distribution using a specific seed
run_nca()
Run a non-compartmental analysis
run_nca_superposition()
Run an NCA on superpositioned data, either just extrapolated to steady state for the current dose levels, or using linear extrapolation to a different dose and interval.
set_pknca_interval_parameters()
Creates a data.frame specifying start and end time, and stores it as option single.dose.aucs in PKNCA.options()