Skip to contents

This function calculates the covariate partial dependency plot for a specified environmental/host variable. It also filters the taxa based on standard deviation thresholds and visualizes the results.

Usage

mr_Covar(yhats, Y, X, X1, var, sdthresh = 0.05)

Arguments

yhats

A list of model predictions.

Y

The response data.

X

The predictor data.

X1

Additional predictor data excluding the variable of interest.

var

The variable of interest for calculating the profile.

sdthresh

The standard deviation threshold for filtering taxa (default: 0.05).

Value

A plot displaying the covariate profile and change in probability for the specified variable.

Examples