construct_v.Rd
Generate the contrast vector for testing the null hypothesis of interest. See Section 2 of Chen et al. (2021+) for details.
construct_v(n, thj, window_size, gam)
n | length of the vector |
---|---|
thj | location of the estimated spike of interest |
window_size | parameter h |
gam | AR-1 decaying parameter |
Returns a vector of length n
Chen YT, Jewell SW, Witten DM. (2021) Quantifying uncertainty in spikes estimated from calcium imaging data. arXiv:2103.0781 [statME].
nu_vector <- construct_v(n = 100, thj = 2, window_size = 2, gam = 0.95)