nhppRateEstimate: Estimate the rate of non-homogeneous PP with data

Description Usage Arguments Details Value Author(s) See Also

View source: R/nhppRateEstimate.R

Description

Given a vector of point events, give a rough estimate of the rate of underlying non-homogeneous Poisson process by window and smoothing

Usage

1
2
nhppRateEstimate(controls, length.out = floor(length(controls)/20), 
	lowessF = 0.1)

Arguments

controls

A vector of point locations (read positions) of a control sample for which the rate is wanted

length.out

The number of windows to be used for the rate estimate vector; default to be number of observations/100

lowessF

Smoothing factor for the lowess smoothing of the windowed rates, describes the proportion of windows around a particular window that has influence on its smoothed rate estimate

Details

This is used to give a realistic estimate of the rate nhpp of control samples

Value

Returns a vector of length length.out that contains the smoothed rate estimate of each window

Author(s)

Jeremy J. Shen

See Also

nhppSimulate


seqCBS documentation built on May 2, 2019, 9:15 a.m.