Learn R Programming

shipunov (version 1.17.1)

Mag: Interpreter for effect sizes

Description

Interprets R^2-related effect sizes

Usage

Mag(x, squared=TRUE)

Arguments

x

Value

squared

Is value squared?

Author

Alexey Shipunov

Details

Interpreter for R^2-related effect sizes (see example).

Examples

Run this code
aa <- apply(cor(trees), 1:2, function(.x) Mag(.x, squared=FALSE))
aa[upper.tri(aa, diag=TRUE)] <- "-"
noquote(aa)

Run the code above in your browser using DataLab