Description Usage Arguments Value References Examples
View source: R/fit_pharm_mod.R
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.
1 | fit_pharm_mod(time, conc, m, plot = TRUE)
|
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. |
A list containing the model type and the obtained parameters, further the RSS for all possible models. Furthermore a plot is given.
Moellenhoff et al. (2018) <doi:10.1002/sim.7689>
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")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.