CalcClusterEnrich: Calculate cluster enrichment with logistic regression

View source: R/glmnet_deprecated.R

CalcClusterEnrichR Documentation

Calculate cluster enrichment with logistic regression

Description

Calculate cluster enrichment with logistic regression

Usage

CalcClusterEnrich(
  design.mat,
  cov.mat,
  clusters,
  alpha,
  lambda.use,
  ctrl = NULL
)

Arguments

design.mat

Design matrix for regression

cov.mat

Matrix of covariates to regress out

clusters

Cluster assignments

alpha

Elasticnet ratio: (0 is fully L2, 1 fully is L1)

lambda.use

Shrinkage parameter

ctrl

Control genotype to compare all other genotypes to (e.g. NTC, AAVS)

Value

Matrix of regression coefficients


yanwu2014/perturbLM documentation built on Aug. 24, 2023, 2:28 p.m.