multivariate_pc_regression: Multivariate regression for meta variables and principal...

View source: R/multivariate_pc_regression.R

multivariate_pc_regressionR Documentation

Multivariate regression for meta variables and principal components

Description

Multivariate regression for meta variables and principal components

Usage

multivariate_pc_regression(
  object,
  pheno.df,
  metavars,
  num.pc = 10,
  plot = TRUE,
  name = "assoc_with_pc_pvals",
  width = 8,
  height = 7,
  xrot = 0,
  yrot = 0
)

Arguments

object

Matrix-like object with features (e.g. genes) as rows and samples as columns.

pheno.df

Data frame with rows as samples and columns as phenotypes.

metavars

A vector of column names in pheno.df.

num.pc

Number of principal components

plot

Logical for plotting the p-values.

name

Name of the plot file.

width

Width of the plot.

height

Height of the plot.

xrot

rot angle (in degrees) by which the x- axis labels are to be rotated

yrot

rot angle (in degrees) by which the y- axis labels are to be rotated

Value

Matrix of p-values.


jdreyf/jdcbioinfo documentation built on Feb. 12, 2025, 4:30 p.m.