bootmodel: Nonparametric bootstrap

Description Usage Arguments Details Value Author(s) References Examples

Description

Execute model bootstrapping and collect parameter estimation results.

Usage

1
2
3
4
5
6
7
8
9
bootmodel(model = NULL, 
          nodes = NULL, 
          method = 5, 
          niter = 1000, 
          nboot = 500, 
          bstrat = NULL, 
          setseed = NULL, 
          clean = TRUE, 
          hold = FALSE)

Arguments

model

a character string for name of model folder

nodes

an integer value that specifies the number of processors to use. Default is no parallel processing.

method

Phoenix NLME estimation method (for more details refer to Phoenix NLME manuals), default method is 5 (FOCE-ELS)

niter

an integer value that limits the maximum number of iterations during the mode execution (default is 1000).

nboot

an integer value that provides the number of bootstrap samples (default is 200). Maximum number of bootstrap samples is 9999.

bstrat

a character vector that provides a maximum of 3 stratification variables.

setseed

an integer value that provides a fixed seed for random resampling. If omitted, seed will be assigned automatically.

clean

a logical value. If TRUE (default), the NLME executable file will be deleted after model execution, the results cannot be updated/modified. If FALSE, it makes possible to apply other estimation/simulation functions to the same model and collect the results in the same sub-folder.

hold

a logical value that determines whether the command window closes automatically after model execution or needs to be closed manually. Default is FALSE. TRUE option is currently unavailable.

Details

phxnlme needs to be executed prior to bootmodel. Working directory should be set to the folder containing Phoenix NLME output.

Value

.csv file of bootstrap results are returned.

Author(s)

Chay Ngee Lim

References

Phoenix Modeling Language Reference Guide
Efron, B. and Tibshirani, R. (1993) An Introduction to the Bootstrap. Chapman and Hall, New York, London.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
if(!is.null(checkphxnlme(testchk=TRUE))){
## Setting working directory to Model 1 
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 bootstrap
bootmodel(model="Model 1",setseed=NULL,clean=FALSE,hold=FALSE,nboot=50)
}

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