itemsModel | R Documentation |
Compute and save specific predictive model from manual countings for the estimation of number of cells in colonies.
itemsModel(dat, countFile, method = "mda")
dat |
matrix or data.frame of raw data (points by line). |
countFile |
character vector specifying the path and the name of the file containing manual countings. |
method |
character vector specifying the name of method tu use for the building of predictive models. Must be 'lm', 'lda' or 'mda' (default). |
itemsModel computes and saves specific predictive model from manual countings for the estimation of number of cells in colonies
RDS file containing the predictive model.
computeItemsSample
, countItems
dat <- rbind(matrix(rnorm(100, mean = 0, sd = 0.3), ncol = 2),
matrix(rnorm(100, mean = 2, sd = 0.3), ncol = 2),
matrix(rnorm(100, mean = 4, sd = 0.3), ncol = 2))
tf <- tempfile()
write.table(dat, tf, sep=",", dec=".")
x <- importSample(file.features=tf)
x <- computeUnSupervised(x, K=0, pca=TRUE, echo=TRUE)
countFile <- countItemsSampleGUI(x)
if (file.exists(countFile))
itemsModel(x$features$initial$x, countFile)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.