vachette_data {vachette}R Documentation

Initialize vachette object with required data

Description

Initialize vachette object with required data

Usage

vachette_data(
  obs.data,
  typ.data,
  sim.data = NULL,
  covariates,
  ref.dosenr,
  log.x = FALSE,
  iiv.correction = FALSE,
  error.model = c("proportional", "additive"),
  model.name = NULL,
  mappings = NULL
)

Arguments

obs.data

data.frame; Observed data

typ.data

data.frame; Typical (population) curves

sim.data

data.frame; Simulated (VPC) data

covariates

named character vector; Covariate names with reference values in vachette transformation

ref.dosenr

integer; Dose number to use as the reference dose, corresponding to value in "dosenr" column in input data

log.x

logical; Apply log(x) conversion. Default FALSE

iiv.correction

logical; Apply inter-individual variability correction. Default FALSE

error.model

character; Applied error model, "proportional" or "additive". Default "proportional"

model.name

character; Optional model name for plot output

mappings

named character vector; Optional mappings to be included if column names in input data.frame differ from required column names. See Required Columns section:

Details

If "dosenr" column is missing it will be automatically calculated using the priority of available columns:

Value

vachette_data

Required columns obs.data

Required columns typ.data

Required columns sim.data

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"
  )



[Package vachette version 0.40.0 Index]