Learn R Programming

nmw (version 0.1.5)

AddCox: Add a Covariate Column to an Existing NONMEM dataset

Description

A new covariate column can be added to an existing NONMEM dataset.

Usage

AddCox(nmData, coxData, coxCol, dateCol = "DATE", idCol = "ID")

Value

A new NONMEM dataset containing the covariate column

Arguments

nmData

an existing NONMEM dataset

coxData

a data table containing a covariate column

coxCol

the covariate column name in the coxData table

dateCol

date column name in the NONMEM dataset and the covariate data table

idCol

ID column name in the NONMEM dataset and the covariate data table

Author

Kyun-Seop Bae <k@acr.kr>

Details

It first carry forward for the missing data. If NA is remained, it carry backward.