compileStanModels: Compile 'rstan' Emax models after package 'clinDR' is...

View source: R/compileStanModels.R

compileStanModelsR Documentation

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 documentation built on Aug. 9, 2023, 9:08 a.m.