R/geometricProfile.R

Defines functions `geometricProfile`

`geometricProfile` <-
function(ncateg, simult=ncateg, n, theta=0.05)
{
# Generates an (artificial) profile according to a geometric model (e.g. for simulation pourposes)
    nams <- fullSetOfNames(ncateg, simult)
    len <- length(nams)
    pGO <- (1 - theta)^(0:(len-1))
    pGO <- pGO / sum(pGO)
    names(pGO) <- nams
    attr(pGO,"ngenes") <- n
    return(pGO)
}

Try the goProfiles package in your browser

Any scripts or data that you put into this service are public.

goProfiles documentation built on Nov. 8, 2020, 8:12 p.m.