sim1: Simulate single cell process

Description Usage Arguments Value Examples

View source: R/means_variances.R

Description

Simulate single cell process

Usage

1
sim1(N, lambda, beta, delta, burnin = 1000)

Arguments

N

number of observations

lambda

autonomous rate of cell formation per unit of time

beta

proportion of cells that replicate per unit of time

delta

proportion of cells that die per unit of time

burnin

starting the process at the equilibrium value, discard this many observations before generating the observation to be retured

Value

N consecutive observations from the process

Examples

1
2
3
4
x <- sim1(10000, 10, .01, .02)
mean(x)
sd(x)
plot(x,pch='.')

gmonette/Tcells2 documentation built on May 14, 2017, 12:59 p.m.