fit_pharm_mod: Fitting a pharmacokinetic model to concentration data
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
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.
# NOT RUN {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")
# }