[Rcpp-devel] How to pf from Rcpp

Hao Xiong hao at biostat.ucsf.edu
Sat Nov 12 08:09:06 CET 2011


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.

More information about the Rcpp-devel mailing list