This function predict new data using.

NEMoE_predict(
  NEMoE_obj,
  X_new,
  Z_new = NULL,
  full = TRUE,
  level = "all",
  transform = TRUE,
  name_match = FALSE
)

Arguments

NEMoE_obj

A NEMoE_obj object with fitted parameters.

X_new

A list of transformed microbiome data.

Z_new

A matrix of transformed nutrition data.

full

Whether output the result in both gating network and experts network.

level

Which level of microbiome data to be use.

transform

Whether use the same transformation in build NEMoE.

name_match

Whether match the name of training data and testing data.

Value

A list of fitted result or a vector of predicted response.