Learn R Programming

stanette (version 2.21.4)

R Interface to Stan

Description

Expansion and additions to 'rstan' to facilitate pharmacokinetics (PK) and pharmacodynamics (PD) modeling with 'rstan'. A PKPD model often is specified via a set of ordinary differential equations(ODEs) and requires flexible and different routes of drug administrations. These features make PKPD modeling with plain 'rstan' challenging and tedious to code. 'stanette' provides a powerful Stan-compatible ODE solver ('LSODA') and mechanism/utilities that make easy specification of flexible dosing records.

Copy Link

Version

Install

install.packages('stanette')

Monthly Downloads

11

Version

2.21.4

License

GPL (>= 3)

Maintainer

Wenping Wang

Last Published

May 11th, 2022

Functions in stanette (2.21.4)

d2_nm_poppkpd

simulated theophylline data
d1_nm_poppk

simulated theophylline data
PMXStanModel

Creation of a PMXStanModel object
d3_nm_idvpkpd

simulated theophylline data
Rhat

Convergence and efficiency diagnostics for Markov Chains
sbc

Simulation Based Calibration (sbc)
set_cppo

Defunct function to set the compiler optimization level
obs.vs.pred

Pointwise comparison between observed data vs. predicted medians.
rstan-package

RStan --- the R interface to Stan
As.mcmc.list

Create an mcmc.list from a stanfit object
nlist

Created named lists
rstan_options

Set and read options used in RStan
PMXStanFit

Generation of a PMXStanFit object
Plots

ggplot2 for RStan
stan_model

Construct a Stan model
extract

Extract samples from a fitted Stan model
gofplot

Overall goodness-of-fit plots.
idv.obs.pred.vs.time

Comparison of the time profiles of observations with the predictions for each individual.
rsd.vs.pred

Pointwise comparison between residuals vs. predicted medians.
instant.stan.extension

generate a customized NUTS-compatible ODE solver
lookup

Look up the Stan function that corresponds to a R function or name.
check_hmc_diagnostics

Check HMC diagnostics after sampling
traces

Generation of trace plots of the samples
waic

Diagnostics for a fitted Bayesian model
log_prob-methods

log_prob and grad_log_prob functions
rstan-plotting-functions

RStan Plotting Functions
expose_stan_functions

Expose user-defined Stan functions to R for testing and simulation
extract_sparse_parts

Extract the compressed representation of a sparse matrix
Diagnostic plots

RStan Diagnostic plots
prepareInputData

Transformation of a NONMEM-readable dataset to a Stan-readable list
compile

Compilation of Stan code
stan_rdump

Dump the data for a Stan model to R dump file in the limited format that Stan can read.
stan_version

Obtain the version of Stan
loo_moment_match.stanfit

Moment matching for efficient approximate leave-one-out cross-validation (LOO)
traceplot

Markov chain traceplots
rstan_gg_options

Set default appearance options
sflist2stanfit

Merge a list of stanfit objects into one
pairs.stanfit

Create a matrix of output plots from a stanfit object
summary-methods

Summary method for stanfit objects
stan

Fit a model with Stan
print

Print a summary for a fitted model represented by a stanfit object
monitor

Compute summaries of MCMC draws and monitor convergence
rstan-internal

Internal Functions and Methods
makeconf_path

Obtain the full path of file Makeconf
loo.stanfit

Approximate leave-one-out cross-validation
plot-methods

Plots for stanfit objects
as.array

Create array, matrix, or data.frame objects from samples in a stanfit object
read_rdump

Read data in an R dump file to a list
stanmodel-class

Class representing model compiled from C++
stanc

Translate Stan model specification to C++ code
sampling

Draw samples from a Stan model
vb

Run Stan's variational algorithm for approximate posterior sampling
stanfit-class

Class stanfit: fitted Stan model
read_stan_csv

Read CSV files of samples generated by (R)Stan into a stanfit object
gqs

Draw samples of generated quantities from a Stan model
stan_demo

Demonstrate examples included in Stan
optimizing

Obtain a point estimate by maximizing the joint posterior
copy

Replication of an existing PMXStanModel object