Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

compileStanModels

Compile rstan Emax models after package clinDR is installed


Description

Compile rstan code for Emax models used by fitEmaxB and emaxsimB. This function must be executed once after the clinDR package is installed.

Usage

compileStanModels()

Details

The compiled models are stored in the models sub-directory of the installed clinDR package. The user must have write-access to the package directory. The package can be installed in a user-specified directory if the user does not have write privileges for the default package directory. Execution requires several minutes. The compiled models are 32- or 64- bit specific. Both sets must be compiled if the compiled R type is changed (they are stored in sub-directories comp32 or comp64). It is recommended to execute the function again if the package rstan is updated.

Package rstan must be functional for CompileStanModels to be successful. See https://github.com/stan-dev/rstan/wiki/RStan-Getting-Started. Note especially the instructions for installing Rtools, which is required for execution on a Windows machine.

Value

'basemodel.rds' and 'mrmodel.rds' should be created in the package directory in the sub-directory 'models'.

Author(s)

Neal Thomas


clinDR

Simulation and Analysis Tools for Clinical Dose Response Modeling

v2.3.5
GPL (>= 2)
Authors
Neal Thomas [aut, cre] (<https://orcid.org/0000-0002-1915-8487>), Jing Wu [aut], Mike K. Smith [aut]
Initial release
2021-04-11

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.