univ_dens: Estimate the marginal density of a marker (random variable)

Description Usage Arguments Value

View source: R/Extra_tools.R

Description

Estimate the marginal density of a marker (random variable)

Usage

1
univ_dens(dat, ngrids = 1024)

Arguments

dat

is a vector with intensity data of a single marker or a matrix of intensity of multiple markers.

ngrids

number of grid-points to be used in estimating the kernel density. The bandwidth is chosen using Silverman's rule.

Value

It returns a list whose first element is the estimated density and the second element is the grid- points where the density is estimated.


sealx017/MIAMI documentation built on Feb. 11, 2022, 12:20 a.m.