Description Usage Arguments Details Value Author(s) See Also

Randomly spike the smoothed control rate of an NHPP according to the parameters.

1 | ```
nhppSpike(smoothRates, nSpike = 25, cptLenR = 4, cptLenMean = 10, minGain = 1.5, maxGain = 10, minLoss = 0.01, maxLoss = 0.5, 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) |

`minGain` |
Minimal Gain relative CN |

`maxGain` |
Maximal Gain relative CN |

`minLoss` |
Minimal Loss relative CN |

`maxLoss` |
Maximal Loss relative CN |

`pGain` |
Proportion of signal regions that are CN gain. |

The signal width is randomly generated by negative binomial distribution with the two parameters given. The signal strength are uniformly drawn between the two limits.

`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

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.