Skip to content
Prev 3119 / 10988 Next

[Rcpp-devel] How to pf from Rcpp

Hi,

I need to use pf() from Rcpp but I couldn't seem to find out how.

For example, the code looks like this:

#include <Rcpp.h>
...
 Rcpp::pf(1.2, 5, 2);
...
The compiler couldn't find pf(). I also tried all arguments as doubles,
but no go.

I also would like to computer the upper tail probability but again
I don't know the exact function signature, so I plan to just use 1-pf(...).

Thanks for your help.
Hao