top of page

PKfit

a tool for pharmacokinetic modeling and data analysis, including model simulation. A demo run video is shown below.

Installation & Upgrade

Download and install R first. PKfit is an R package.  However, it cannot be installed from R repository website directly since v1.2.6. Thus, please download and install it from here. Please read the contents following the file list panel for more details first. No need to download the file README.md since it has been displayed on the screen. The file - NEWS includes the change history. Users will require an R script file called preinst.r from Sourceforge to install PKfit.

about preinst.r - from Sourceforge

PLEASE READ CAREFULLY TO SAVE YOUR TIME AND AVOID POSSIBLE ERRORS.
This file ("preinst.r") is not a part of R packages, but an R script to automate the installation for all the required packages/libraries for package PKfit for R. Please download preinst.r and place/copy it to the R working directory. Use 'getwd()' to find out where the directory is. Under R console, type source("preinst.r") and click the package to install. You require the system administrator's privilege (Windows & Linux) to run this script. Answer "Yes" if asked for anything during installation. GTK+ runtime is now bundled with RGtk2 package installation for the Windows platform, as well as more GTK+ (a.k.a. GTK2) themes were added. 
After installation, you now can run PKfit by simply typing "library(PKfit)" under R Console.

Methods
It includes some commonly used pharmacokinetic models as built-in models. Users can also define their own models. In normal fitting, we use package deSolve to solve ordinary differential equations (ODEs) first if the system contains ODEs. Then use package optimx and minpack.lm to minimize the sum of square (either equal weight or weighted) sequentially. In model simulation, Monte-carlo simulation or other different types of errors schemes are available.

Dataset format: only *.csv format is supported for PKfit. Users can do a simulation run first to find out the dataset format.

PKfit_wix.png
bottom of page