custom.resids.synthetic: custom.resids.synthetic - internal

Description Usage Arguments Value Author(s) References Examples

View source: R/custom.resids.synthetic.R

Description

Used in 'lrcde.permutations_for_auc_variability' and 'using_lrcde'

Usage

1
2
3
custom.resids.synthetic(mse2model.vec = 0.05, groups,
  diff.2.model.vec = c(0.1, 0.5, 1), base.expr.vec = 10, adjuster = 1,
  n.cells)

Arguments

mse2model.vec

the vector of mean squared errors (MSEs) to model. Default - 0.05

groups

A vector of 1's and 2's indicating group membership per sample. Should align with the order of samples in het.sub and cell.props matrices. Required.

diff.2.model.vec

vector of cell type-specific differential expressions to create. Devault - c(0.1, 0.5, 1)

base.expr.vec

vector of base (control group) cell type specific expressions to model. Default - 10

adjuster

a scaling factor used on the resulting standard deviation of residuals. Default - 1

n.cells

number of cell types. Required

Value

a matrix of synthetic normal residuals based on standard deviations of control and cases residuals from resids.gene.j. 'length(group)' rows X 'n.cells' columns

Author(s)

Edmund R Glass, Edmund.Glass@gmail.com

References

https://github.com/ERGlass/lrcde.dev

Examples

1
2
3
4
5
## Not run: 
resids <- custom.resids.synthetic(mse2model.vec = c(0.05), groups = c(rep(1, 15), rep(2, 15)), 
                                  diff.2.model.vec = c(0.1, 0.5, 1), base.expr.vec = 10, adjuster = 1, n.cells = 3)

## End(Not run)                                   

ERGlass/lrcde.dev documentation built on May 6, 2019, 3:09 p.m.