nhppSpikeConstSignal: Spike NHPP rate with constant signal strength

Description Usage Arguments Details Value Author(s) See Also

View source: R/nhppSpikeConstSignal.R

Description

Randomly spike the smoothed control rate of an NHPP according to the parameters, with constant signal strength.

Usage

1
nhppSpikeConstSignal(smoothRates, nSpike = 25, cptLenR = 4, cptLenMean = 10, gainRate = 3, lossRate = 0.3, pGain = 0.6)

Arguments

smoothRates

The smoothed rate estimate of the control process

nSpike

Number of signal spikes

cptLenR

Parameter for signal width (parameter R of negative binomial)

cptLenMean

Parameter for signal width (mean width)

gainRate

Relative CN Gain

lossRate

Relative CN Loss

pGain

Proportion of signal regions being CN Gain

Details

The signal width is randomly generated by negative binomial distribution with the two parameters given. This is a more restricted version of nhppSpike

Value

spikeMat

A matrix containing the actual signal spike information

caseRates

The rate of the case PP to be simulated after signal spike

Author(s)

Jeremy J. Shen

See Also

nhppSimulate


SeqCNVCBS documentation built on May 2, 2019, 6:51 p.m.