# mean_centering

### Description

Batch effects are removed using the means of the batches.

### Usage

1 | ```
mean_centering(Y, b)
``` |

### Arguments

`Y` |
A matrix with |

`b` |
A vector of class factor with the element in position |

### Value

A matrix of adjusted data with *n* rows and *g* columns.

### Author(s)

Marco Giordan

### See Also

`ber`

, `ber_bg`

, `combat_np`

, `combat_p`

, `standardization`

### Examples

1 2 3 |