Description Usage Arguments Details Value Author(s) See Also
View source: R/nhppSpikeConstSignal.R
Randomly spike the smoothed control rate of an NHPP according to the parameters, with constant signal strength.
1 | nhppSpikeConstSignal(smoothRates, nSpike = 25, cptLenR = 4, cptLenMean = 10, gainRate = 3, lossRate = 0.3, pGain = 0.6)
|
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 |
The signal width is randomly generated by negative binomial distribution with the two parameters given. This is a more restricted version of nhppSpike
spikeMat |
A matrix containing the actual signal spike information |
caseRates |
The rate of the case PP to be simulated after signal spike |
Jeremy J. Shen
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.