Add rescaled dose variables to a data.frame.
dosescalett(data, dose,
scaling = c("ari", "ord", "log", "arilog"),
sep = "", d0shift = 1)a data.frame
a single charcater string, naming the (numeric) variable in data that is to be rescaled
A vector of character strings, naming the options for rescaling the variable specified in dose: "ari": no rescaling, "ord": ranks of dose levels, "log": log-transformed dose levels, "arilog": log-transformned dose levels, with interpolated dose score for 0, "high.vs.low": dose coerced to a factor, and only highest and lowest dose level retained, all others set NA, "treat": dose coerced to a factor, all levels retained with the option to apply multiple contrast tests to the treatment levels
an optional separator for the names of the rescaled variables
an optional factor, that is multiplied with the interpolated dose score for dose = 0 in option scaling="arilog"; ignored in all other options for rescaling
A list containing
the input data.frame, with rescaled variables added as colummns
a vector of names of the re-scaled variables
the scaling options, as input