GithubHelp home page GithubHelp logo

isabella232 / rnmimport Goto Github PK

View Code? Open in Web Editor NEW

This project forked from mangothecat/rnmimport

0.0 0.0 0.0 2.4 MB

Tools for importing and manipulating NONMEM data

License: BSD 3-Clause Clear License

R 99.62% AMPL 0.38%

rnmimport's Introduction

RNMImport

NONMEM is a FORTRAN application for fitting mixed effects models. NONMEM licenses are available from ICON Development Solutions. Models are specified as plain text files called control files. The control file contains blocks corresponding to components of the model. Model results are presented as plain text files. These input and output files can be imported into R by RNMImport to facilitate model modification, model diagnostics, model interpretation and reporting.

# install devtools for devtools::install_github
install.packages("devtools")
library(devtools)
# install RNMImport
install_github("MangoTheCat/RNMImport")
library(RNMImport)

A NONMEM execution including both input files and results files can be read using importNm. The imported object is S4 class 'NMRun'. Various methods are available for extracting the model information.

theo1 <- importNm(conFile = "theoph.con", 
    path = system.file(package = "RNMImport", "examples", "theoph"))
slotNames(theo1)

The dataset can be extracted using nmData. This contains the input data, and the model residuals and other records requested when defining the model.

head(nmData(theo1))

Model parameters can be extracted using methods corresponding to the parameter type.

getThetas(theo1)
getOmegas(theo1)
getSigmas(theo1)

rnmimport's People

Contributors

adamjdeacon avatar gaborcsardi avatar jonathan-chard avatar mikeksmith-pfizer avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.