get_xformed_variables {expirest} | R Documentation |
Transformation of variables
Description
The function get_xformed_variables()
transforms the variables as
needed.
Usage
get_xformed_variables(
data,
response_vbl,
time_vbl,
xform = c("no", "no"),
shift = c(0, 0)
)
Arguments
data |
A data frame with the columns specified by |
response_vbl |
A character string that specifies the response variable
name that must be a column of |
time_vbl |
A character string that specifies the time variable name
that must be a column of |
xform |
A vector of two character strings that specifies the
transformation of the response and the time variable. The default is
“no” transformation, i.e. |
shift |
A vector of two values which will be added to the variables
|
Details
The function get_xformed_variables()
transforms the variables
(response_vbl
and/or time_vbl
) as specified by the parameters
xform
and shift
.
Value
The provided data frame with (a) new column(s) of the transformed variable(s).
See Also
expirest_osle
, expirest_wisle
.