compute_pliable: Compute the interaction part of the model.

View source: R/compute_pliable.R

compute_pliableR Documentation

Compute the interaction part of the model.

Description

Compute the interaction part of the model.

Usage

compute_pliable(X, Z, theta)

Arguments

X

N by p matrix of predictors

Z

N by K matrix of modifying variables. The elements of Z may represent quantitative or categorical variables, or a mixture of the two. Categorical variables should be coded by 0-1 dummy variables: for a k-level variable, one can use either k or k-1 dummy variables.

theta

theta coefficients for a single response ncol(X) by ncol(Z)

Value

a vector of length N of the calculated interaction term for a single response


MADMMplasso documentation built on April 3, 2025, 10:53 p.m.