Learn R Programming

⚠️There's a newer version (1.1.2) of this package.Take me there.

linpk

An R package for generating concentration-time profiles from linear pharmacokinetic (PK) systems.

Installation

To install from CRAN:

install.packages("linpk")

To install the latest development version directly from GitHub:

require(devtools)
devtools::install_github("benjaminrich/linpk")

For an introduction to the package, with usage examples, see the vignette.

There is a shiny app that provides a demo of the package capabilities, and also generates code that can be placed in an R script. To run it, paste the following lines in an R console:

require(shiny)
shiny::runGitHub("linpk", "benjaminrich", subdir="inst/demo")

Copy Link

Version

Install

install.packages('linpk')

Monthly Downloads

311

Version

1.0

License

GPL-3

Maintainer

Benjamin Rich

Last Published

June 12th, 2018

Functions in linpk (1.0)

dose.frame

Get the doses from a PK profile.
halflife

Half-lives of a linear PK system.
linpkApp

Runs the interactive shiny app.
as.data.frame.pkprofile

Coerce a pkprofile to a data.frame
generateETA

Generate individual random effects from a multivariate normal distribution.
secondary

Derive secondary PK parameters.
blockdiag

Construct a block-diagonal matrix.
pkprofile

Generate a concentration-time profile.
cor2cov

Convert from standard deviation and correlation matrix to covariance matrix.
pkprofile.pkprofile

Continue an existing concentration-time profile.
LTmat

Construct a symmetric matrix from its lower triangle.
finalstate

Get the final state or time of a PK profile.
pkprofile-methods

Printing and plotting methods for class pkprofile.