Re: [R] Vectorised uniroot function

2019-04-23 Thread Shawn Way
esday, April 23, 2019 7:12 AM To: r-help@r-project.org Subject: [R] Vectorised uniroot function ** External Email **: This email originated from outside of the organization. Do not click links or open attachments unless you recognize the sender and know the content is safe. A vectorised un

[R] Vectorised uniroot function

2019-04-23 Thread Mark Clements
A vectorised uniroot function would be useful for function inversion, e.g. for quantile functions and random number generation. To address this, I have implemented rstpm2::vuniroot that adapts the C function R_zeroin2 for Brent's method for a vectorised objective. The function currently uses Rcpp,