addExperimentalDesign {Xeva} | R Documentation

## Add a new experimental design

### Description

Add a new experimental design in the `expDesign` slot.

### Usage

    addExperimentalDesign(object, treatment = NULL, control = NULL,
      batch.id = NULL, replace = FALSE)

    ## S4 method for signature 'XevaSet'
    addExperimentalDesign(object, treatment = NULL,
      control = NULL, batch.id = NULL, replace = FALSE)

### Arguments

`object` | The `Xeva` dataset.
`treatment` | The `model.id` of treatment.
`control` | The `model.id` of control.
`batch.id` | The `batch.id` for a new batch.
`replace` | If `TRUE`, replace an old batch with new values.

### Value

Returns `Xeva` dataset with new experimental design added.

### Examples

    data(brca)
    brca <- addExperimentalDesign(object=brca, treatment=c("X.6047.LL71"),
            control=c("X.6047.uned"), batch.id="new.batch", replace=FALSE)

[Package Xeva version 1.6.0 Index]