Package: PKNCA 0.12.1.9000

Bill Denney

PKNCA: Perform Pharmacokinetic Non-Compartmental Analysis

Compute standard Non-Compartmental Analysis (NCA) parameters for typical pharmacokinetic analyses and summarize them.

Authors:Bill Denney [aut, cre], Clare Buckeridge [aut], Gerardo Jose Rodriguez [aut], Sridhar Duvvuri [ctb]

PKNCA_0.12.1.9000.tar.gz
PKNCA_0.12.1.9000.zip(r-4.7)PKNCA_0.12.1.9000.zip(r-4.6)PKNCA_0.12.1.9000.zip(r-4.5)
PKNCA_0.12.1.9000.tgz(r-4.6-any)PKNCA_0.12.1.9000.tgz(r-4.5-any)
PKNCA_0.12.1.9000.tar.gz(r-4.7-any)PKNCA_0.12.1.9000.tar.gz(r-4.6-any)
PKNCA_0.12.1.9000.tgz(r-4.6-emscripten)
manual.pdf |manual.html
DESCRIPTION |NEWS
card.svg |card.png
PKNCA/json (API)

# Install 'PKNCA' in R:
install.packages('PKNCA', repos = c('https://humanpred.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/humanpred/pknca/issues

On CRAN:

Conda:

ncanoncompartmental-analysispharmacokinetics

13.67 score 84 stars 3 packages 1.0k scripts 2.6k downloads 12 mentions 166 exports 25 dependencies

Last updated from:b8233adbc9. Checks:9 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-devel-x86_64OK218
source / vignettesOK239
linux-release-x86_64OK566
macos-release-arm64OK152
macos-oldrel-arm64OK119
windows-develOK206
windows-releaseOK184
windows-oldrelOK175
wasm-releaseOK116

Exports:add.interval.coladdProvenanceadj.r.squaredas_PKNCAconcas_PKNCAdataas_PKNCAdoseas_PKNCAresultsas_sparse_pkassert_intervalsassert_PKNCAconcassert_PKNCAdoseassert_PKNCAresultsbusiness.cvbusiness.geocvbusiness.geomeanbusiness.maxbusiness.meanbusiness.medianbusiness.minbusiness.rangebusiness.sdcheck.conc.timecheck.conversioncheck.interval.specificationcheckProvenancechoose.auc.intervalsclean.conc.blqclean.conc.nacov_holderexcludeexclude_nca_by_paramexclude_nca_count_conc_measuredexclude_nca_max.aucinf.pextexclude_nca_min.hl.adj.r.squaredexclude_nca_min.hl.r.squaredexclude_nca_span.ratioexclude_nca_tmax_0exclude_nca_tmax_earlyextrapolate.concfilterfind.taufull_joingeocvgeomeangeosdget_halflife_pointsget.best.modelget.interval.colsget.parameter.depsgetDepVargetGroupsgetIndepVargroup_byinner_joininterp.extrap.concinterp.extrap.conc.doseinterpolate.concis_sparse_pkleft_joinmutatenormalizenormalize_by_colpk.businesspk.calc.aepk.calc.aucpk.calc.auc.allpk.calc.auc.infpk.calc.auc.inf.obspk.calc.auc.inf.predpk.calc.auc.lastpk.calc.aucabovepk.calc.aucintpk.calc.aucint.allpk.calc.aucint.inf.obspk.calc.aucint.inf.predpk.calc.aucint.lastpk.calc.aucivpk.calc.auciv_pbextpk.calc.aucpextpk.calc.aumcpk.calc.aumc.allpk.calc.aumc.infpk.calc.aumc.inf.obspk.calc.aumc.inf.predpk.calc.aumc.lastpk.calc.aumcintpk.calc.aumcint.allpk.calc.aumcint.inf.obspk.calc.aumcint.inf.predpk.calc.aumcint.lastpk.calc.aumcivpk.calc.auxcpk.calc.auxcintpk.calc.auxcivpk.calc.c0pk.calc.cavpk.calc.ceoipk.calc.clpk.calc.clast.obspk.calc.clrpk.calc.cmaxpk.calc.cminpk.calc.count_concpk.calc.count_conc_measuredpk.calc.cstartpk.calc.ctroughpk.calc.deg.flucpk.calc.dnpk.calc.ermaxpk.calc.ertlstpk.calc.ertmaxpk.calc.fpk.calc.fepk.calc.half.lifepk.calc.kelpk.calc.mrtpk.calc.mrt.ivpk.calc.mrt.mdpk.calc.ptrpk.calc.sparse_aucpk.calc.sparse_auclastpk.calc.sparse_aumcpk.calc.sparse_aumclastpk.calc.swingpk.calc.tfirstpk.calc.thalf.effpk.calc.time_abovepk.calc.tlagpk.calc.tlastpk.calc.tmaxpk.calc.tminpk.calc.totdosepk.calc.volpkpk.calc.vsspk.calc.vzpk.ncapk.nca.intervalpk.tsspk.tss.monoexponentialpk.tss.stepwise.linearPKNCA_impute_method_start_cminPKNCA_impute_method_start_conc0PKNCA_impute_method_start_predosepknca_units_tablePKNCA.choose.optionPKNCA.optionsPKNCA.options.describePKNCA.set.summaryPKNCAconcPKNCAdataPKNCAdosePKNCAresultsright_joinroundingSummarizeroundStringset_intervalssetDurationsetRoutesignifStringsparse_auc_weight_linearsparse_meansuperpositiontime_calcungroupvar_sparse_aucvar_sparse_aumc

Dependencies:backportscheckmateclicpp11digestdplyrgenericsgluelatticelifecyclemagrittrnlmepillarpkgconfigpurrrR6rlangstringistringrtibbletidyrtidyselectutf8vctrswithr

Half-Life Calculation
Introduction | Curve Stripping Method | Select the Points | Select the Best Fit | Example | Manual Point Selection | Exclusion of Specific Points with Curve Stripping | Specification of the Exact Points for Analysis

Last update: 2026-06-13
Started: 2022-10-04

Introduction to PKNCA and Usage Instructions
Quick Start | Data Handling | Options: Make PKNCA Work Your Way | Calculation Options: the PKNCA.options Function | Summarization Options: the PKNCA.set.summary Function | Grouping NCA Data | Selecting Calculation Intervals | Selection of Data Used for Calculation | Automatic Interval Determination | Manual Interval Specification | Keeping a column from intervals | Summarizing results | Updating existing results

Last update: 2026-06-13
Started: 2022-10-04

Half-life calculation with Tobit regression
Comparison to semi-log regression | Automatic point selection | Automatic point selection with semi-log regression | Automatic point selection with Tobit regression | Comparison of Tobit and semi-log regression | Usage | Basic usage: a single subject | Example 1: All observations above the LLOQ | Example 2: BLQ observations before T~last~ | Using the global option | Full NCA workflow with PKNCAdata | Controlling Tobit point selection

Last update: 2026-06-11
Started: 2024-03-12

Sparse NCA Calculations
Sparse NCA Setup | Data Setup Note | How Subjects Are Grouped for Sparse Calculations | Calculate! | Results

Last update: 2026-06-10
Started: 2022-10-04

PKNCA – an R package for noncompartmental analysis of pharmacokinetic data
Introduction to PKNCA | Dataset Basics | NCA Data are Not Tidy as a Single Dataset | Dataset Basics: What columns are needed? | Dataset Basics: Example interval data | PKNCA Functions | What functions are the most used? | How do I do a simple calculation? all steps | How do I do a simple calculation? Concentration data | How do I do a simple calculation? Dose data | How do I do a simple calculation? Calculate results | How do I do a simple calculation? Get results | How do I do a simple calculation? Get summary results | How do I do a simple calculation? Get individual results | PKNCA datasets | How does PKNCA think about data? | What is an "interval" and how is it different than a "group"? | Reporting | Best practices for Data -> PKNCA -> knitr/Quarto | Graphics are intentionally not part of PKNCA, but there are some tricks that can help... | Validation of PKNCA | More information

Last update: 2026-04-17
Started: 2026-04-17

Post-Processing
Introduction | Setup | Modifying Results | Exclusion of Select Results | Exclusion Functions | Excluding Specific Results | Multiple Exclusions | Normalizing Results | Example: Normalize by a column in the concentration data | Doing custom normalizations | Extracting Results | Summary Results | Listing of Results

Last update: 2026-04-12
Started: 2022-10-04

Writing PKNCA Parameter Functions
Writing the Parameter Function | Requirements | Best Practices | Tell PKNCA about the Parameter | Tell PKNCA How to Summarize the Parameter | Putting It Together

Last update: 2026-04-12
Started: 2022-10-04

PKNCA Training Sessions
Introduction to PKNCA and Basics of Its Use | Introduction to PKNCA | Enjoy! | Some NCA Definitions | Dataset Basics | NCA Data are Not Tidy as a Single Dataset | Dataset Basics: Minimum data | Dataset Basics: What columns are needed? | Dataset Basics: Example data | Dataset Basics: Example concentration data | Dataset Basics: Example dosing data | Dataset Basics: Example interval data | Hands-on: First NCA calculation with PKNCA | PKNCA Functions | What functions are the most used? | How do I do a simple calculation? all steps | How do I do a simple calculation? Concentration data | How do I do a simple calculation? Dose data | How do I do a simple calculation? Calculate results | How do I do a simple calculation? Get results | How do I do a simple calculation? Get summary results | How do I do a simple calculation? Get individual results | PKNCA datasets | How does PKNCA think about data? | What is an "interval" and how is it different than a "group"? | Common data management requirements before sending data to PKNCA | Setup your concentration data | Setup your dosing data (if you have it and even if you don't) | Define your intervals | Define your intervals: example | Calculations above the hood | Prepare your data for calculation | Calculate without dosing data | Calculate without dosing data, try 2 | Dosing data helps with interval setup | AUC considerations with PKNCA (1/3) | AUC considerations with PKNCA (2/3) | AUC considerations with PKNCA (3/3) | Hands-on workshop | Steady-state intramuscular administration | Day 2 Start | Control your data | Including and excluding data points | Exclude data points overall | Exclude data points overall | Digression: How is λz automatically calculated? | λz control (manual exclusions and inclusions of data points) | Less-common calculations | Urine calculations | Urine calculations: understanding what is happening and potential hiccups | Calculations below the hood | PKNCA only calculates what is required, not every possible parameter (1 of 2) | PKNCA only calculates what is required, not every possible parameter (2 of 2) | How to select the correct parameters for calculations (aka, why are there r sum(grepl(x=names(PKNCA.options("single.dose.aucs")), pattern="^auc")) types of AUC in PKNCA?) | When are intervals (partly) ignored? | Control your results | Excluding results (Not the best way) | Excluding results (The best way, 1/2) | Excluding results (The best way, 2/2) | NCA-related calculations | Superposition | Time-to-Steady-state calculations | Reporting | Graphics are intentionally not part of PKNCA, but there are some tricks that can help... | Best practices for Data -> PKNCA -> knitr | Units (especially clearance) | Data imputation | IV bolus AUC (need to add C0) | Combined, multi-subject data (e.g. sparse animal sampling) | Limitations | Secondary parameters (e.g. bioavailability and renal clearance) | Validation of PKNCA | Hands-on | Single- and Multiple-dose, single analyte: Setup the underlying datasets | Single- and Multiple-dose, single analyte: Setup the concentration and dose datasets | Single- and Multiple-dose, single analyte: Perform basic analysis | Single- and Multiple-dose, single analyte: Use intervals for fewer subjects | Single- and Multiple-dose, single analyte: Use custom intervals per subjects | Single- and Multiple-dose, parent and metabolite

Last update: 2026-03-03
Started: 2022-10-04

Unit Assignment and Conversion with PKNCA
Introduction | Examples of each way to add units | Steps to add units to an NCA analysis from the data | Steps to manually add units to an NCA analysis | Prepare a Unit Assignment and Conversion Table | How do I add different unit conversions for different analytes?

Last update: 2025-06-01
Started: 2022-10-04

PKNCA Validation
Introduction | Summary of Testing | Session Information

Last update: 2025-05-09
Started: 2022-10-04

AUC Calculation with PKNCA
Preparation | AUC to the Last Value Above the Limit of Quantification (AUC~last~) | AUC~all~ | AUC to Infinity (AUC~$\infty$~) | Partial AUCs

Last update: 2024-10-24
Started: 2022-10-04

Selection of Calculation Intervals
Introduction | Group Matching | Selecting the Subjects for an Interval | Intervals | To Infinity | Multiple Intervals | Overlapping Intervals and Different Calculations by Interval | Intervals with Duration | Parameters Available for Calculation in an Interval

Last update: 2024-06-28
Started: 2022-10-04

Computing NCA Parameters for Theophylline
Load the data | Merge the Concentration and Dose | Compute the parameters | Multiple Dose Example

Last update: 2024-02-05
Started: 2022-10-04

Data Imputation
How does imputation occur? | How to select imputation methods to use | Imputation for the full dataset | Imputation by calculation interval | Advanced: Writing your own imputation functions

Last update: 2024-01-15
Started: 2022-10-12

AUC integration methods
Integration methods for Area Under the Concentration-Time curve (AUC) | Definitions and abbreviations | Description of methods of integrating between two concentrations before T~last~ | Linear up/logarithmic down ("lin up/log down") interpolation | Linear trapezoidal ("linear") interpolation | Linear to T~max~/logarithmic after T~max~ ("lin-log") interpolation | Description of methods of integrating between two concentrations after T~last~ | "AUClast" extrapolation | "AUCall" extrapolation | "AUCinf" extrapolation | Examples

Last update: 2023-10-07
Started: 2023-09-30

Noncompartmental evaluation of time to steady-state
Example | Data setup | Estimate time to Steady State | Monoexponential | Stepwise Linear | References

Last update: 2022-10-12
Started: 2022-10-05

Methods Used for Dose-Aware Concentration Interpolation/Extrapolation
Introduction | Methods | Appendix: Complete Methods Table

Last update: 2022-10-04
Started: 2022-10-04

Options for Controlling PKNCA
Summary | Options

Last update: 2022-10-04
Started: 2022-10-04

Superposition of Pharmacokinetic Data
Load the data | Compute the Superposition from Single-Dose Data to Steady-State | Nonstandard Superposition Computations | Compute the Superposition from Single-Dose Data to a Specific Dose | Compute the Superposition from Single-Dose Data with >1 Dose Per Interval | Show the Curve to Steady-State | Time Point Selection and Addition | Interpolation and Extrapolation Methods

Last update: 2022-10-04
Started: 2022-10-04

Readme and manuals

Help Manual

Help pageTopics
Add columns for calculations within PKNCA intervalsadd.interval.col
Add a hash and associated information to enable checking object provenance.addProvenance
Calculate the adjusted r-squared valueadj.r.squared
Determine if there are any sparse or dense calculations requested within an intervalany_sparse_dense_in_interval
Convert an object into a PKNCAconc objectas_PKNCAconc as_PKNCAdata as_PKNCAdose as_PKNCAresults
Generate a sparse_pk objectas_sparse_pk
Extract the parameter results from a PKNCAresults and return them as a data.frame.as.data.frame.PKNCAresults
Assert that a value is a valid AUC methodassert_aucmethod
Verify that concentration measurements are validassert_conc assert_conc_time assert_time
Assert that a value is a dosing intervalassert_dosetau
Assert Intervalsassert_intervals
Assert that an interval is accurately defined as an interval, and return the intervalassert_intervaltime_single
Assert that a lambda.z value is validassert_lambdaz
Confirm that a value is greater than another valueassert_number_between
Confirm that a value is greater than another valueassert_numeric_between
Assert that an object is a PKNCAdata objectassert_PKNCAconc assert_PKNCAdata assert_PKNCAdose assert_PKNCAresults
Assert that a value may either be a column name in the data (first) or a single unit value (second)assert_unit assert_unit_col assert_unit_value
Support function for AUC integrationauc_integrate
Generate functions to do the named function (e.g. mean) applying the business rules.business.cv business.geocv business.geomean business.max business.mean business.median business.min business.range business.sd
Check that the conversion to a data type does not change the number of NA valuescheck.conversion
Check the formatting of a calculation interval specification data frame.check.interval.specification
Check the hash of an object to confirm its provenance.checkProvenance
Choose how to interpolate, extrapolate, or integrate data in each concentration intervalchoose_interval_method
Choose intervals to compute AUCs from time and dosing informationchoose.auc.intervals
Handle BLQ values in the concentration measurements as requested by the user.clean.conc.blq
Handle NA values in the concentration measurements as requested by the user.clean.conc.na
Calculate the covariance for two time points with sparse samplingcov_holder
The following functions are defunctcheck.conc.time defunct
Ensure Unit Columns Exist in PKNCA Objectensure_column_unit_exists
Exclude data points or results from calculations or summarization.exclude exclude.default
Exclude NCA parameters based on examining the parameter set.exclude_nca exclude_nca_count_conc_measured exclude_nca_max.aucinf.pext exclude_nca_min.hl.adj.r.squared exclude_nca_min.hl.r.squared exclude_nca_span.ratio exclude_nca_tmax_0 exclude_nca_tmax_early
Exclude NCA Results Based on Parameter Thresholdsexclude_nca_by_param
dplyr filtering for PKNCAfilter.PKNCAconc filter.PKNCAdose filter.PKNCAresults
Find the repeating interval within a vector of dosesfind.tau
Find the first occurrence of an operator in a formula and return the left, right, or both sides of the operator.findOperator
Perform the half-life fit given the data. The function simply fits the data without any validation. No selection of points or any other components are done.fit_half_life
Perform a Tobit half-life fit given the data. The function fits the data using maximum likelihood without any point selection or validation.fit_half_life_tobit
Negative log-likelihood for Tobit half-life regressionfit_half_life_tobit_LL
Extract the formula from a PKNCAconc object.formula.PKNCAconc formula.PKNCAdose
Compute the geometric mean, sd, and CVgeocv geomean geosd
Determine which concentrations were used for half-life calculationget_halflife_points
Get the impute function from either the intervals column or from the methodget_impute_method
Extract the best model from a list of models using the AIC.get.best.model
Get the columns that can be used in an interval specificationget.interval.cols
Get all columns that depend on a parameterget.parameter.deps
Retrieve the value of an attribute column.getAttributeColumn
Get the value from a column in a data frame if the value is a column there, otherwise, the value should be a scalar or the length of the data.getColumnValueOrNot
Get the name of the element containing the data for the current object.getDataName getDataName.default getDataName.PKNCAconc getDataName.PKNCAdose getDataName.PKNCAresults
Get the dependent variable (left hand side of the formula) from a PKNCA object.getDepVar
Get the groups (right hand side after the '|' from a PKNCA object).getGroups.PKNCAconc getGroups.PKNCAdata getGroups.PKNCAdose getGroups.PKNCAresults
Get the independent variable (right hand side of the formula) from a PKNCA object.getIndepVar
dplyr grouping for PKNCAgroup_by.PKNCAconc group_by.PKNCAdose group_by.PKNCAresults ungroup.PKNCAconc ungroup.PKNCAdose ungroup.PKNCAresults
Get grouping variables for a PKNCA objectgroup_vars.PKNCAconc group_vars.PKNCAdata group_vars.PKNCAdose group_vars.PKNCAresults
dplyr joins for PKNCAfull_join.PKNCAconc full_join.PKNCAdose full_join.PKNCAresults inner_join.PKNCAconc inner_join.PKNCAdose inner_join.PKNCAresults left_join.PKNCAconc left_join.PKNCAdose left_join.PKNCAresults right_join.PKNCAconc right_join.PKNCAdose right_join.PKNCAresults
Interpolate or extrapolate concentrations using the provided methodextrapolate_conc_lambdaz interpolate_conc_linear interpolate_conc_log interp_extrap_conc_method
Interpolate concentrations between measurements or extrapolate concentrations after the last measurement.extrapolate.conc interp.extrap.conc interp.extrap.conc.dose interpolate.conc
Is a PKNCA object used for sparse PK?is_sparse_pk is_sparse_pk.PKNCAconc is_sparse_pk.PKNCAdata is_sparse_pk.PKNCAresults
Extract the columns used in the formula (in order) from a PKNCAconc or PKNCAdose object.model.frame.PKNCAconc model.frame.PKNCAdose
dplyr mutate-based modification for PKNCAmutate.PKNCAconc mutate.PKNCAdose mutate.PKNCAresults
Normalize parameters in a PKNCAresults object or data.framenormalize
Internal function to normalize by a specified columnnormalize_by_col
Normalize the exclude column by setting blanks to NAnormalize_exclude
Convert a formula representation to the columns for input dataparse_formula_to_cols
Convert the grouping info and list of results for each group into a results data.framepk_nca_result_to_df
Run any function with a maximum missing fraction of X and 0s possibly counting as missing. The maximum fraction missing comes from 'PKNCA.options("max.missing")'.pk.business
Calculate amount excreted (typically in urine or feces)pk.calc.ae
Calculate the AUC above a given concentrationpk.calc.aucabove
Calculate the AUC percent extrapolatedpk.calc.aucpext
Compute the Area Under the (Moment) Curvepk.calc.auc pk.calc.auc.all pk.calc.auc.inf pk.calc.auc.inf.obs pk.calc.auc.inf.pred pk.calc.auc.last pk.calc.aumc pk.calc.aumc.all pk.calc.aumc.inf pk.calc.aumc.inf.obs pk.calc.aumc.inf.pred pk.calc.aumc.last pk.calc.auxc
Calculate AUXC (AUC or AUMC) over an interval with interpolation/extrapolationpk.calc.aucint pk.calc.aucint.all pk.calc.aucint.inf.obs pk.calc.aucint.inf.pred pk.calc.aucint.last pk.calc.aumcint pk.calc.aumcint.all pk.calc.aumcint.inf.obs pk.calc.aumcint.inf.pred pk.calc.aumcint.last pk.calc.auxcint
Calculate AUXC (AUC or AUMC) for IV dosing with C0 back-extrapolationpk.calc.auciv pk.calc.auciv_pbext pk.calc.aumciv pk.calc.auxciv
Estimate the concentration at dosing time for an IV bolus dose.pk.calc.c0 pk.calc.c0.method.c0 pk.calc.c0.method.c1 pk.calc.c0.method.cmin pk.calc.c0.method.logslope pk.calc.c0.method.set0
Calculate the average concentration during an interval.pk.calc.cav
Determine the concentration at the end of infusionpk.calc.ceoi
Calculate the (observed oral) clearancepk.calc.cl
Determine the last observed concentration above the limit of quantification (LOQ).pk.calc.clast.obs
Calculate renal clearancepk.calc.clr
Determine maximum observed PK concentrationpk.calc.cmax pk.calc.cmin
Count the number of concentration measurements in an intervalpk.calc.count_conc pk.calc.count_conc_measured
Determine the trough (end of interval) concentrationpk.calc.cstart pk.calc.ctrough
Determine the degree of fluctuationpk.calc.deg.fluc pk.calc.swing
Determine dose normalized NCA parameterpk.calc.dn
Calculate the maximum excretion ratepk.calc.ermax
Calculate the midpoint collection time of the last measurable excretion ratepk.calc.ertlst
Calculate the midpoint collection time of the maximum excretion ratepk.calc.ertmax
Calculate the absolute (or relative) bioavailabilitypk.calc.f
Calculate fraction excreted (typically in urine or feces)pk.calc.fe
Compute the half-life and associated parameterspk.calc.half.life
Calculate the elimination rate (Kel)pk.calc.kel
Calculate the mean residence time (MRT) for single-dose data or linear multiple-dose data.pk.calc.mrt pk.calc.mrt.iv pk.calc.mrt.md
Determine the peak-to-trough ratiopk.calc.ptr
Calculate AUC and related parameters using sparse NCA methodspk.calc.sparse_auc pk.calc.sparse_auclast
Calculate AUMC and related parameters using sparse NCA methodspk.calc.sparse_aumc pk.calc.sparse_aumclast
Calculate the effective half-lifepk.calc.thalf.eff
Determine time at or above a set valuepk.calc.time_above
Determine the observed lag time (time before the first concentration above the limit of quantification or above the first concentration in the interval)pk.calc.tlag
Determine time of last observed concentration above the limit of quantification.pk.calc.tfirst pk.calc.tlast
Determine time of maximum observed PK concentrationpk.calc.tmax
Determine time of minimum observed PK concentrationpk.calc.tmin
Extract the dose used for calculationspk.calc.totdose
Calculate the total urine volumepk.calc.volpk
Calculate the terminal volume of distribution (Vz)pk.calc.vss pk.calc.vz
Compute NCA parameters for each interval for each subject.pk.nca
Compute all PK parameters for a single concentration-time data setpk.nca.interval
Compute NCA for multiple intervalspk.nca.intervals
Compute the time to steady-state (tss)pk.tss
Clean up the time to steady-state parameters and return a data frame for use by the tss calculators.pk.tss.data.prep
Compute the time to steady state using nonlinear, mixed-effects modeling of trough concentrations.pk.tss.monoexponential
A helper function to estimate individual and single outputs for monoexponential time to steady-state.pk.tss.monoexponential.individual
A helper function to estimate population and popind outputs for monoexponential time to steady-state.pk.tss.monoexponential.population
Compute the time to steady state using stepwise test of linear trendpk.tss.stepwise.linear
Compute noncompartmental pharmacokineticsPKNCA-package PKNCA
Find NCA parameters with a given unit typepknca_find_units_param
Separate out a vector of PKNCA imputation methods into a list of functionsPKNCA_impute_fun_list
Methods for imputation of data with PKNCAPKNCA_impute_method PKNCA_impute_method_start_cmin PKNCA_impute_method_start_conc0 PKNCA_impute_method_start_predose
Perform unit conversion (if possible) on PKNCA resultspknca_unit_conversion
Add parentheses to a unit value, if neededpknca_units_add_paren
Create a unit assignment and conversion tablepknca_units_table pknca_units_table.default pknca_units_table.PKNCAdata
Choose either the value from an option list or the current set value for an option.PKNCA.choose.option
Set default options for PKNCA functionsPKNCA.options
Describe a PKNCA.options option by name.PKNCA.options.describe
Define how NCA parameters are summarized.PKNCA.set.summary
Create a PKNCAconc objectPKNCAconc PKNCAconc.data.frame PKNCAconc.default PKNCAconc.tbl_df
Create a PKNCAdata object.PKNCAdata PKNCAdata.default PKNCAdata.PKNCAconc PKNCAdata.PKNCAdose
Create a PKNCAdose objectPKNCAdose PKNCAdose.data.frame PKNCAdose.default PKNCAdose.tbl_df
Generate a PKNCAresults objectPKNCAresults
Print and/or summarize a PKNCAconc or PKNCAdose object.print.PKNCAconc print.PKNCAdose summary.PKNCAconc summary.PKNCAdose
Print a PKNCAdata objectprint.PKNCAdata
Print the summary of a provenance objectprint.provenance
Print the results summaryprint.summary_PKNCAresults
During the summarization of PKNCAresults, do the rounding of values based on the instructions given.roundingSummarize
Round a value to a defined number of digits printing out trailing zeros, if applicable.roundString
Find Minimal Grouping Columns for Strata Reconstructionselect_minimal_grouping_cols
Set Intervalsset_intervals
Add an attribute to an object where the attribute is added as a name to the names of the object.setAttributeColumn
Set the duration of dosing or measurementsetDuration setDuration.PKNCAconc setDuration.PKNCAdose
Set the exclude parameter on an objectsetExcludeColumn
Set the dosing routesetRoute setRoute.PKNCAdose
Round a value to a defined number of significant digits printing out trailing zeros, if applicable.signifString signifString.data.frame signifString.default
Sort the interval columns by dependencies.sort.interval.cols
Calculate the weight for sparse AUC calculation with the linear-trapezoidal rulesparse_auc_weight_linear
Calculate the mean concentration at all time points for use in sparse NCA calculationssparse_mean
Set or get a sparse_pk object attributesparse_pk_attribute
Extract the mean concentration-time profile as a data.framesparse_to_dense_pk
Summarize a PKNCAdata object showing important details about the concentration, dosing, and interval information.summary.PKNCAdata
Summarize PKNCA resultssummary.PKNCAresults
Compute noncompartmental superposition for repeated dosingsuperposition superposition.numeric superposition.PKNCAconc
Times relative to an event (typically dosing)time_calc
A helper function to generate the formula and starting values for the parameters in monoexponential models.tss.monoexponential.generate.formula
Update existing PKNCAresults with new dataupdate.PKNCAresults
Calculate the variance for the AUC of sparsely sampled PKvar_sparse_auc