Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

xvardef

Extract and set Xpose variable definitions.


Description

This function extracts and set Xpose variable definitions in "xpose.data" objects.

Usage

xvardef(x, object)

xvardef(object) <- value

Arguments

x

The name of an xpose variable (see below).

object

An xpose.data object.

value

A two element vector of which the first element is the name of the variable and the second the column name in the Data slot of the object.

Details

The Xpose variable definitions are used to map particular variable types to column names in the data.frame in the Data slot of the "xpose.data" object. The single-valued Xpose variable definitions are: id, idlab, idv, occ, dv, pred, ipred, iwres, res. The (potentially) vector-valued Xpose variable definitions are: parms, covariates, ranpar, tvparms (parameters, covariates, random effects parameters=etas, typical value parameters). The default values of these can be found in the createXposeClasses function.

Value

Returns a string with the name of the data variable defined as the Xpose data variable.

Functions

  • xvardef<-: reset the which column the label dv points to in the Data slot of the xpose database object

Author(s)

Niclas Jonsson

See Also

Examples

xpdb <- simpraz.xpdb

## get the column name in the Data slot of object xpdb
## corresponding to the label dv
xvardef("dv", xpdb)

## reset the which column the label dv points to in the Data slot of
## object xpdb
xvardef(xpdb) <- c("dv", "DVA")

xpose4

Diagnostics for Nonlinear Mixed-Effect Models

v4.7.1
LGPL (>= 3)
Authors
Andrew C. Hooker [aut, cre, cph], Mats O. Karlsson [aut, cph], Justin J. Wilkins [aut], E. Niclas Jonsson [aut, trl, cph], Ron Keizer [ctb] (functionality for bootstrap of GAM and SCM)
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.