corr: Trait correlations

View source: R/corr.R

corrR Documentation

Trait correlations

Description

Trait correlations

Usage

corr(vars, traits = NULL, effect = NULL)

Arguments

vars

object of class_var from Stage2

traits

pair of traits

effect

name of effect

Details

Use either the argument traits or effect, not both. Using traits leads to a partitioning of the total correlation between those two traits, based on path analysis, assuming no correlation between the effects of the Stage 2 model. Using effect displays the correlation between all traits for that effect. Use the summary command to see the names of the possible effects.

Value

matrix


jendelman/StageWise documentation built on Feb. 23, 2025, 11 a.m.