fw_fit: run a model on every row of your data. Made with microbiome...

View source: R/feature_wise_modeller.R

fw_fitR Documentation

run a model on every row of your data. Made with microbiome data in mind.

Description

run a model on every row of your data. Made with microbiome data in mind.

Usage

fw_fit(
  x,
  f,
  metadata,
  verbose = T,
  get_CI = F,
  format = "wide",
  model = "lm",
  order = "fact",
  adjust.method = "BH",
  ...
)

Examples


metadata = data.frame(a = sample(letters[1:3], ncol(mtcars), replace=T),
                      b = sample(letters[4:6], ncol(mtcars), replace=T),
                      c = rnorm(ncol(mtcars)))

 fw_fit(x = mtcars, f = x ~ a + b, metadata = metadata, format = "fits", model = "lm", get_CI = T, order = "fact")


thomazbastiaanssen/Tjazi documentation built on Aug. 22, 2023, 1:30 a.m.