This function compute the D matrix with an effect on age and / or plates

compute_D(A_mat, T_mat, exp_grp, sites_sex = NA, coeff_sex = NA,
  plate_effect = NA)

Arguments

A_mat

The A matrix.

T_mat

The T matrix.

exp_grp

The matrix of experimental data for all the patients.

sites_sex

NA by default, set sites affected by sex if you want a sex effect

coeff_sex

NA by default, set coeff of sex if you want a sex effect.

plate_effect,

Na by default, put plate_effect if you want one

Value

This function return a matrix of size probes*n with possibly an effect of confounding factors