Learn R Programming

microbial (version 0.0.22)

glmr: Do the generalized linear model regression

Description

Do the generalized linear model regression

Usage

glmr(
  physeq,
  group,
  factors = NULL,
  ref = NULL,
  family = binomial(link = "logit")
)

Arguments

physeq

phyloseq object

group

the group factor to regression

factors

a vector to indicate adjuested factors

ref

the reference group

family

binomial() or gaussian()

Author

Kai Guo

Examples

Run this code
# \donttest{
data("Physeq")
phy<-normalize(physeq)
fit <-glmr(phy,group="SampleType")
# }

Run the code above in your browser using DataLab