fit_pharm_mod: Fitting a pharmacokinetic model to concentration data

Description Usage Arguments Value References Examples

View source: R/fit_pharm_mod.R

Description

This function fits a pharmacokinetic model (dissolution profile) to time-concentration data using non-linear least squares regression. The model can be chosen from a candidate set containing a First order, Hixson-Crowell,Higuchi, Weibull and a logistic model. See Moellenhoff et al. (2018) <doi:10.1002/sim.7689> for details.

Usage

1
fit_pharm_mod(time, conc, m, plot = TRUE)

Arguments

time

a vector containing the time points of measurements

conc

data frame or matrix containing the concentrations (see the example)

m

model type. Built-in models are "firstorder", "hixson", "higuchi", "weibull" and "logistic"

plot

plot of the model, default is TRUE.

Value

A list containing the model type and the obtained parameters, further the RSS for all possible models. Furthermore a plot is given.

References

Moellenhoff et al. (2018) <doi:10.1002/sim.7689>

Examples

1
2
3
4
data(example_data)
conc1 <- select(filter(example_data,Group=="1"),-Tablet,-Group)
time <- c(10,15,20,30,45,60)
fit_pharm_mod(time,conc1,m="logistic")

SimDissolution documentation built on Sept. 27, 2019, 5:03 p.m.