ICgenlasso | R Documentation |
This function extracts BIC or AIC from a genlasso object.
ICgenlasso(fit, IC = "BIC")
fit |
a genlasso object. |
IC |
IC = BIC for Bayesian information criterion and IC = AIC for Akaike's information criterion. |
Returns the minimal AIC or BIC and the corresponding lambda.
library(phyloseq) otu.tab <- t(otu_table(combo.phyloseq.obj)) X <- eBay_comps(otu.tab, prior = "Dirichlet") tree <- phy_tree(combo.phyloseq.obj) metadata <- sample_data(combo.phyloseq.obj) y <- metadata$bmi fit <- TASSO(y, X, tree) IC <- ICgenlasso(fit, IC="AIC") IC <- ICgenlasso(fit, IC="BIC")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.