[Rcpp-devel] How to pf from Rcpp

Douglas Bates bates at stat.wisc.edu
Sat Nov 12 15:58:33 CET 2011

Check the declarations in the include file


The function must be called as Rf_pf in Rcpp and has the signature

double Rf_pf(double x, double df1, double df2, int lower_tail, int log_p)

On Sat, Nov 12, 2011 at 1:09 AM, Hao Xiong <hao at biostat.ucsf.edu> wrote:
> 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
> _______________________________________________
> Rcpp-devel mailing list
> Rcpp-devel at lists.r-forge.r-project.org
> https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel

More information about the Rcpp-devel mailing list