findDampeningConstant: Find a dampening constant for dampened weighted least squares...

Description Usage Arguments Value Examples

View source: R/functions.R

Description

For a subset of genes, the function calculates the dampened weighted least squares solution for a particular dampening constant. This is repeated 100 times per dampening constant over a range of dampening constants. The dampening constant with the lowest cross-validation variance is chosen.

Usage

1
    findDampeningConstant(S, B, goldStandard)   

Arguments

S

Gene by cell-type matrix consisting of averaged expression values across cells from each cell type

B

List containing bulk data values.

goldStandard

An initial estimate of the number of each cell type present in the bulk data set. Often this estimate is derived from the solveOLS function.

Value

Positive integer defining the dampening constant. The maximum weight value allowed will be d=2^(j-1).

Examples

1

PelzKo/dwls documentation built on Dec. 18, 2021, 6:46 a.m.