Skip to contents

Given a data frame containing draws from a salmonIPMfit object, as generated by as_draws_df(object), remove the diagonal and upper-triangular elements of any correlation matrices that may be present and leave only the lower-triangular elements.

Usage

draws_df_lower_tri(drf)

Arguments

drf

A data.frame or draws_df containing posterior draws in rows and parameters in columns.

Value

An data frame of the same class as drf with any columns corresponding to diagonal or upper-triangular correlation matrix elements removed.