View source: R/ZIPLNfit-S3methods.R
coef.ZIPLNfit | R Documentation |
Extracts model coefficients from objects returned by ZIPLN()
and its variants
## S3 method for class 'ZIPLNfit'
coef(object, type = c("count", "zero", "precision", "covariance"), ...)
object |
an R6 object with class |
type |
type of parameter that should be extracted. Either "count" (default) for |
... |
additional parameters for S3 compatibility. Not used |
A matrix of coefficients extracted from the ZIPLNfit model.
sigma.ZIPLNfit()
data(scRNA)
# data subsample: only 100 random cell and the 50 most varying transcript
subset <- sample.int(nrow(scRNA), 100)
myPLN <- ZIPLN(counts[, 1:50] ~ 1 + offset(log(total_counts)), subset = subset, data = scRNA)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.