factor_rsquared: Collect the r^2 values from a linear model fitting between a...

View source: R/dimension_reduction.R

factor_rsquaredR Documentation

Collect the r^2 values from a linear model fitting between a singular value decomposition and factor.

Description

Collect the r^2 values from a linear model fitting between a singular value decomposition and factor.

Usage

factor_rsquared(datum, fact, type = "factor")

Arguments

datum

Result from corpcor::fast.svd.

fact

Experimental factor from the original data.

type

Make this categorical or continuous with factor/continuous.

Value

The r^2 values of the linear model as a percentage.

See Also

[corpcor] [stats::lm()]


elsayed-lab/hpgltools documentation built on May 9, 2024, 5:02 a.m.