independent_models: Fit an independent model for each response coordinate

Description Usage Arguments Value

View source: R/utils.R

Description

Fit an independent model for each response coordinate

Usage

1
independent_models(X, Y, model_fun)

Arguments

X

The N x P covariates matrix. NA values will be dropped.

Y

an N x J response matrix

model_fun

A function that returns coefficients Y[, j] ~ X for each j.

Value

The J X P coefficients matrix.


krisrs1128/LFExpers documentation built on May 20, 2019, 1:25 p.m.