These functions are used to change settings for
the number of unique data values required in a variable in order to define
it as continuous (change.cat.levels
and change.dv.cat.levels
for
ordinary variables and the dependent variable, respectively), the value to use
as 'missing' (change.miss
), and viewing (get.doc
) and setting
(set.doc
) the documentation field in the Xpose data object.
change.cat.cont
allows interchange between categorical and continuous data
formats within the Xpose database. This in turn affects how plots are
drawn.
change.subset
is used for setting the data item's subset field.
To specify a subset of the data to process, you use the varable names
and the regular R selection operators. To combine a subset over two
or more variables, the selection expressions for the two variables are
combined using R's unary logical operators.
The variable names are those that are specified in the NONMEM table
files (e.g. PRED, TIME, SEX).
The selection operators are:
== (equal)
!= (not equal)
|| (or)
> (greater than)
< (less than)
For example, to specify that TIME less than 24 should be processed, you
type the expression: TIME < 24.
The unary logical operators are:
& (and)
| (or)
For example, to specify TIME less than 24 and males (SEX equal to 1), you
type the expression: TIME < 24 & SEX == 1
This subset selection scheme works on all variables, including ID numbers.
The subset selection is not entirely stable. For example, there is no
check that the user enters a valid expression, nor that the user specifies
existing variable names. An erroneous expression will not become evident
until a plot is attempted and the expression takes effect.