This example uses data collected on 59 preterm infants given phenobarbital during the first 16 days after birth [1]. Each infant received an initial dose followed by one or more sustaining doses by intravenous bolus administration. A total of between 1 and 6 concentration measurements were obtained from each infant at times other than dose times, for a total of 155 measurements. Infant weights and APGAR scores (a measure of newborn health) were also recorded.
Load the data.
Convert the dataset to a groupedData object, a container for holding tabular data that is divided into groups.
Create a simple one-compartment PK model with bolus dosing and linear clearance to fit such data. Use the PKModelDesign object to construct the model.
Describe the experimentally measured response by mapping the appropriate model component to the response variable.
ans = 1×1 cell array
{'Drug_Central'}
Map the Drug_Central species to the CONC variable.
The parameters to estimate in this model are the volume of the central compartment Central and the clearance rate Cl_Central.
ans = 2×1 cell
{'Central' }
{'Cl_Central'}
Specify a log transform for the estimated parameters so that the transformed parameters follow a normal distribution. Use an estimatedInfo object to define such transforms and initial values (optional).
Each infant received a different schedule of dosing. The amount of drug is listed in the data variable DOSE. To specify these dosing during fitting, create dose objects from the data. These objects use the property TargetName to specify which species in the model receives the dose. In this example, the target species is Drug_Central, as listed by the PKModelMap property Dosed.
ans = 1×1 cell array
{'Drug_Central'}
Create a sample dose with this target name and then use the createDoses method of groupedData object data to generate doses for each infant based on the dosing data DOSE.
Fit the model.
Display the variation of estimated parameters using box plots.
Display the empirical distribution of each parameter estimate by showing a violin plot of each estimate.
Display parameter estimate values as a swarm chart, which is a scatter plot with the points offset (jittered) in the x-dimension
Display the box plots and swarm charts together.
Show the swarm charts and violin plots together.
Show all three plots.