transform: Transform covariates

transformR Documentation

Transform covariates

Description

Transform and/or center a vector

Usage

## S3 method for class 'numeric'
transform(
  `_data`,
  transformation = function(x) x,
  centering = "median",
  verbose = FALSE,
  ...
)

Arguments

_data

a vector with values of type numeric

transformation

transformation function. Defaults to no transformation

centering

string, giving the value used to center the covariate; can be "mean" or "median", in which case this value will be computed from the data, 'none' or 0 for no centering, or a value given by the user. Defaults to the median value over the dataset.

verbose

a boolean, prints messages during the execution of the function if TRUE. Defaults to FALSE.

...

unused, for consistency with the generic method

Value

a vector

Examples

# TODO

saemix documentation built on Aug. 5, 2022, 5:25 p.m.

Related to transform in saemix...