predict_abundance: Predict taxon abundances at given values of an index

predict_abundanceR Documentation

Predict taxon abundances at given values of an index

Description

Predict taxon abundances at given values of an index

Usage

predict_abundance(index_value, abundance, susceptibility)

Arguments

index_value

Value or values of the index at which to make predictions.

susceptibility

A character vector of antibiotic susceptibility, with values that are "susceptible", "resistant", or NA.

abundances

A vector of taxon abundances in a sample.

Value

A new vector of abundances if index_value has length 1. If index_value is a vector longer than 1, this function returns a matrix, where each column contains the predicted abundances.


tuv292/abx_idx documentation built on Jan. 12, 2023, 12:48 a.m.