if (FALSE) {
# perform variance component analysis
library(VCA)
data(VCAdata1)
# perform VCA-anaylsis
lst <- anovaVCA(y~(device+lot)/day/run, VCAdata1, by="sample")
# transform list of VCA-objects into required matrix
mat <- get_mat(lst) # automatically selects "total"
mat
# fit all models batch-wise
res <- fit_vfp(model.no=1:9, Data=mat)
# now search for the C5 concentration
derive_cx(res, start=15, cutoff=20, Cx=0.05, plot=TRUE)
derive_cx(res, start=25, cutoff=20, Cx=0.95, plot=TRUE)
derive_cx(res, start=25, cutoff=20, Cx=0.25, plot=TRUE)
derive_cx(res, start=25, cutoff=20, Cx=0.75, plot=TRUE)
#
p <- c(seq(.01, .12, .01), seq(.15, .85, .05), seq(.88, .99, .01))
system.time(x <- derive_cx(res, Cx=p, cutoff=20))
}
Run the code above in your browser using DataLab