gee_test: Generalized Estimating Equations

View source: R/generalized_estimating_equations.R

gee_testR Documentation

Generalized Estimating Equations

Description

To estimate the relationship bwtween features/taxa and phenotypes.

Usage

gee_test(physeq, variable, adjust_covariates, PID, pcutoff)

Arguments

physeq

(Required). A phyloseq object containing merged information of abundance, sample data including the measured variables and categorical information of the samples.

variable

(Required). A character string as the measurement (repeated responses).

adjust_covariates

(optional). A set of Characters string that are covariates. information.

PID

(Required) the repeated subjects

Details

15/01/2020 ShenZhen China

Value

Returns a data.frame with the results of gee.

Author(s)

Hua Zou

Examples


library(dplyr)
library(geepack)
data("physeq_data")
physeq <- physeq_data
variable <- c("BMI", "Glycine")
adjust_covariates <- c("Age", "Sex")
PID <- "ID"
pcutoff <- 0.05

gee_test(physeq, variable, adjust_covariates, PID, pcutoff)


rusher321/microbiotaPair documentation built on July 24, 2024, 8:40 p.m.