ena.rotate.by.hena.regression: ENA Rotate by regression

View source: R/ena.rotate.by.regression.R

ena.rotate.by.hena.regressionR Documentation

ENA Rotate by regression

Description

This function allows user to provide a regression formula for rotation on x and optionally on y. If regression formula for y is not provide, svd is applied to the residual data deflated by x to get y coordinates. The regression formula uses ENA dimensions are dependent variables. The first predictor has to be two-group categorical, binary, or numerical.

Usage

ena.rotate.by.hena.regression(enaset, params)

Arguments

enaset

An ENAset

params

list of parameters, may include: x_var: Regression formula for x direction, such as "lm(formula=V ~ Condition + GameHalf + Condition : GameHalf)", where V always stands for the ENA points. y_var: Regression formula, similar to x_var, for y direction (optional).

Value

ENARotationSet


rENA documentation built on Nov. 5, 2025, 5:50 p.m.