Learn R Programming

RclusTool (version 0.91.61)

itemsModel: Predictive models computation for the number of cells in colonies

Description

Compute and save specific predictive model from manual countings for the estimation of number of cells in colonies.

Usage

itemsModel(dat, countFile, method = "mda")

Value

RDS file containing the predictive model.

Arguments

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).

Details

itemsModel computes and saves specific predictive model from manual countings for the estimation of number of cells in colonies

See Also

computeItemsSample, countItems

Examples

Run this code
# \donttest{
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)
# }

Run the code above in your browser using DataLab