UVEstimator: UVEstimator

View source: R/helper.R

UVEstimatorR Documentation

UVEstimator

Description

estimate the phenotype - mediator matrix V and the genotype - mediator matrix U

Usage

UVEstimator(
  beta,
  beta2,
  r,
  subtract = TRUE,
  rotate = TRUE,
  hardThresholding = FALSE,
  sparse = FALSE,
  parameters = NULL
)

Arguments

parameters

list of parameters.

beta:

non-null marginal association matrix; each row represents a non-null genotype, each column represents a phenotype

beta2:

null marginal association matrix; each row represents a null genotype, each column represents a phenotype

r:

number of latent mediators/pathways.

subtract:

logical; if true, subtraction of null marginal association matrix from non-null marginal association matrix is conducted.

rotate:

logical; if true, rotate the estimated U, V to have clear structures.

sparse:

logical; if true, spca from package elasticnet is used to estimate sparse U, V.

hardThresholding:

logical; if true, estimated U, V are hard-thresholded to preserve the desired number of non-zero entries.


ZijunGao/latentMediator documentation built on April 24, 2022, 12:12 a.m.