Description Usage Arguments Value Author(s) Examples
This function gives the mean, covariance and inverse of the covariance for each of the classes.
1 | classStats(droplets, classCol = "class")
|
droplets |
A data frame of droplets with |
classCol |
The column (name or number) from |
A list (grouped by class name) of lists with keys mean
,
cov
and cov.inv
. If cov
is a singular matrix, then
cov.inv
will be NULL
.
Anthony Chiu, anthony.chiu@cruk.manchester.ac.uk
1 2 3 4 5 6 7 8 9 | ## Get some basic statistical properties of the clusters.
aWell <- KRASdata[["E03"]]
aWell$Cluster <- relabelClasses(aWell, classCol="Cluster")
classStats(aWell, classCol="Cluster")
## We repeat the above but with a sample with no "PP" cluster.
aWell <- KRASdata[["H04"]]
aWell$Cluster <- relabelClasses(aWell, classCol="Cluster")
classStats(aWell, classCol="Cluster")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.