fitGLM: fitGLM

View source: R/fitGLM.R

fitGLMR Documentation

fitGLM

Description

Visualising the CI using barplot

Usage

fitGLM(
  res,
  condition,
  subject_effect = TRUE,
  pairwise = TRUE,
  fixed_only = FALSE,
  verbose = TRUE
)

Arguments

res

results from scDC_noClustering, scDC_clustering function

condition

a vector indicate the condition associate the results

subject_effect

A logical input for whether fit the subject effect

pairwise

A logical input for whether the subject in different condition are paired

fixed_only

A logical input for whether only fiftting the fixed effect GLM model.

verbose

A logical input for whether print the progress.

Value

return GLM results

Author(s)

Yingxin Lin

Examples

## Loading example data

## Not run: 
library(scDC)
data("sim")

cellTypes = sim$sim_cellTypes
subject = sim$sim_subject
res_scDC = scDC_noClustering(cellTypes, subject,
calCI = TRUE, calCI_method = c("BCa", "percentile"))
barplotCI(res_scDC, c("cond1","cond1","cond2","cond2"))


## End(Not run)


SydneyBioX/scDC documentation built on Nov. 5, 2023, 2:10 a.m.