Learn R Programming

Phxnlme (version 1.0.0)

phxnlme: Run Phoenix NLME

Description

Run the specified model file and dataset using Phoenix NLME

Usage

phxnlme(inst.path = NULL, path, model.file, cols.file, data, method, iterlimit)

Arguments

inst.path
Default of NULL sets the Phoenix installation path to the default of: "C:/Program Files (x86)/Pharsight/Phoenix"
path
System path for location of the model run folder
model.file
A character string that provides the model file name (*.mdl)
cols.file
A character string that provides the name of the columns mapping file. This is an ASCII text file that contains a series of statements that define the association between model concepts and columns in a data set (Refer to Phoenix NLME manual).
data
A character string that provides the file name of the data file ( *.dat, *.csv or *.txt). Note that ID column needs to be the first column.
method
Phoenix NLME estimation method (refer to Phoenix NLME manual). 1=QRPEM (Quasi-Random Parametric expectation-maximization) 2=IT2S-EM (Iterated 2-stage expectation-maximization) 3=FOCE L-B (First-Order Conditional Estimation, Lindstrom-Bates) 4=FO (First Order) 5=General likelihood engine. Default method is FOCE-ELS 6=Naive pooled
iterlimit
An integer between 0 and 10000 that specifies the maximum number of iterations to run the main optimization routine (default is 1000). If maxiterations= 0, no optimization is run but the model is evaluated at the initial solution defined in the model file or restart file.

Details

Model folder containing the model file, columns mapping file and dataset has to be set up prior to model run. Valid license for Phoenix NLME required.

Request of empirical bayes estimates of parameters required. E.g. include the following statement in the columns mapping file: table(file="parmtable.csv",V,Cl)

(see Phoenix Modeling Language Reference Guide for details)

References

Phoenix Modeling Language Reference Guide

Examples

Run this code
## Specify model folder path, model.file, cols.file and data
if(!is.null(checkphxnlme(testchk=TRUE))){
path="C:/Program Files (x86)/Pharsight/Phoenix/application/Examples/NLME Command Line/Model 1"
model.file="lyon04.mdl"
cols.file="COLS04.txt" 
data="EMAX02.csv" 

## Run model fit
phxnlme(path=path,model.file=model.file,cols.file=cols.file,data=data)
}

Run the code above in your browser using DataLab