Learn R Programming

MIMOSA (version 1.10.2)

countsTable: Extract the table of counts from a MIMOSA model

Description

Extract the table of counts from a MIMOSA model

Usage

countsTable(object, proportion = FALSE)
"countsTable"(object, proportion = FALSE)
"countsTable"(object, proportion = FALSE)
"countsTable"(object, proportion = FALSE)
"countsTable"(object, proportion = FALSE)
"countsTable"(object, proportion = FALSE)

Arguments

object
a MIMOSAResult
proportion
logical return the counts or the proportions

Value

a data.frame of counts to which the model was fit.a data.frame of counts for the stimulated and unstimulated samples

Examples

Run this code
data(ICS)
E<-ConstructMIMOSAExpressionSet(ICS,
  reference=ANTIGEN%in%'negctrl',measure.columns=c('CYTNUM','NSUB'),
  other.annotations=c('CYTOKINE','TCELLSUBSET','ANTIGEN','UID'),
  default.cast.formula=component~UID+ANTIGEN+CYTOKINE+TCELLSUBSET,
  .variables=.(TCELLSUBSET,CYTOKINE,UID),
  featureCols=1,ref.append.replace='_REF')

result<-MIMOSA(NSUB+CYTNUM~UID+TCELLSUBSET+CYTOKINE|ANTIGEN,
    data=E, method='EM',
    subset=RefTreat%in%'Treatment'&ANTIGEN%in%'ENV',
    ref=ANTIGEN%in%'ENV'&RefTreat%in%'Reference')
head(countsTable(result))
head(countsTable(result,proportion=TRUE))

Run the code above in your browser using DataLab