pvcam uses it to estimate the proportion of variance in the data explained by the class signal. See below for a more detailed explanation of what the function does.pvcam(xba, batch, y, threshold = 0.6)pvcam the factors included into the model are: "batch", "class" and the interaction of these two into.
The metric calculated by pvcam is the proportion of variance
explained by "class".
pvcam uses a slightly altered version of the function pvcaBatchAssess() from the Bioconductor package pvca.
The latter was altered to take the covariate data as a matrix instead of as an object of class ExpressionSet.data(autism)
Xadj <- ba(x=X, y=y, batch=batch, method = "combat")$xadj
pvcam(xba = X, batch = batch, y = y)
pvcam(xba = Xadj, batch = batch, y = y)Run the code above in your browser using DataLab