readobs {npde}R Documentation

Functions to read the data

Description

These functions read the data from which npde are to be computed (not intended for the end-user).

Usage

readobs(namobs, iid, ix, iy, imdv)
readsim(namsim, datobs, mdv)

Arguments

namobs name of the file containing the observed data
namsim name of the file containing the simulated data
iid number of the column containing the patient ID
ix number of the column containing the independent variable (X)
iy number of the column containing the dependent variable (Y)
imdv number of the column containing information about missing data (MDV); if this column does not exist, imdv is 0 and missing data in Y are assumed to be coded as NA or a dot "." in the file
datobs Observed data, a dataframe containing 3 columns (id=patient ID, xobs=independent variable (X), yobs=dependent variable (Y)
mdv a vector of 0 and 1; lines containing 1 correspond to missing observations and are removed from the dataset before the computation of pde

Details

These functions are private functions used by npde and autonpde. They are not intended to be used elsewhere.

Value

tabobs observed data, a dataframe containing 3 columns (id=patient ID, xobs=independent variable (X), yobs=dependent variable (Y)
mdv a vector of 0 and 1; lines containing 1 correspond to missing observations and are removed from the dataset before the computation of pde
tabsim simulated data, a dataframe containing 4 columns (idsim=patient ID, irsim=integer identifying the replicate; xsim=independent variable (X), ysim=dependent variable (Y)

Author(s)

Emmanuelle Comets <emmanuelle.comets@bichat.inserm.fr>

References

K. Brendel, E. Comets, C. Laffont, C. Laveille, and F. MentrĂ©. Metrics for external model evaluation with an application to the population pharmacokinetics of gliclazide. Pharmaceutical Research, 23:2036–49, 2006.

See Also

npde, autonpde


[Package npde version 1.2 Index]