phxnlme: Run Phoenix NLME

Description Usage Arguments Details Note Author(s) References Examples

View source: R/phxnlme.R

Description

Run the specified model file and dataset using Phoenix NLME

Usage

1
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)

Note

For Phoenix installation at locations other than the default, please specify its location. Example where installation path is "C:/Program Files/Pharsight/Phoenix":
phxnlme(inst.path="C:/Program Files/Pharsight/Phoenix",path=path,model.file=model.file,cols.file=cols.file,data=data)

Author(s)

Chay Ngee Lim

References

Phoenix Modeling Language Reference Guide

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
## 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)
}

Phxnlme documentation built on May 1, 2019, 7:31 p.m.