cor_rsq: Returns R-sq of a dv given correlation matrix of ivs, dv cors...

View source: R/compute_metrics.R

cor_rsqR Documentation

Returns R-sq of a dv given correlation matrix of ivs, dv cors <- cbsem_summary$descriptives$correlations$constructs cor_rsq(cors, dv_name = "Value", iv_names = c("Image", "Quality"))

Description

Returns R-sq of a dv given correlation matrix of ivs, dv cors <- cbsem_summary$descriptives$correlations$constructs cor_rsq(cors, dv_name = "Value", iv_names = c("Image", "Quality"))

Usage

cor_rsq(cor_matrix, dv_name, iv_names)

Arguments

cor_matrix

A correlation matrix that includes ivs and dv

dv_name

Character string of dependent variable

iv_names

Vector of character strings for independent variables


seminr documentation built on Oct. 14, 2024, 1:07 a.m.