apply_transformations {vachette}R Documentation

Apply vachette transformations

Description

Apply vachette transformations

Usage

apply_transformations(vachette_data, ...)

## S3 method for class 'vachette_data'
apply_transformations(
  vachette_data,
  tol.end = 0.001,
  tol.noise = 1e-08,
  step.x.factor = 1.5,
  ngrid.fit = 100,
  window = 17,
  log_file = NULL,
  ...
)

Arguments

vachette_data

object of class vachette_data

...

Additional arguments

tol.end

numeric; Relative tolerance to determine last x open end reference

tol.noise

numeric; Relative tolerance for landmark determination typical curves

step.x.factor

numeric; x-axis extension factor to search for last x, i.e., to determine where close enough to asymptote

ngrid.fit

numeric; number of grid points in last query segment for matching last reference segment

window

integer; size (gridpoints) of Savitzky Golay smoothing window for landmark position determination

log_file

character; File path to direct console output e.g., "log.txt"

Value

vachette_data object containing a list of vachette-transformed data.frames

Examples

obs <- read.csv(system.file(package = "vachette", "examples", "iv-obs.csv"))
typ <- read.csv(system.file(package = "vachette", "examples", "iv-typ-minmax.csv"))

vd <- vachette_data(
  obs.data = obs,
  typ.data = typ,
  covariates = c(WT = 70),
  mappings = c(OBS = "DV", x = "time"),
  model.name  = "IV"
 )

 vd <- apply_transformations(vd)


[Package vachette version 0.40.0 Index]