tdt_validate_data2: Validate 'data2' against the 'gr(cov = )' terms of the model...

View source: R/utils.R

tdt_validate_data2R Documentation

Validate data2 against the gr(cov = ) terms of the model formulas

Description

Checks that every covariance matrix a gr() term references is present in data2, symmetric, and has dimnames covering the grouping factor's levels; warns when the diagonal is not ~1 (a covariance rather than the expected correlation matrix, ape::vcv(phy, corr = TRUE) convention). Also checks the grouping columns exist in data.

Usage

tdt_validate_data2(formulas, data, data2 = NULL)

bayesTLS documentation built on Nov. 29, 2026, 1:06 a.m.