Home > Software engineering >  There are any equivalent "scipy.norm.norm.sf" function in R
There are any equivalent "scipy.norm.norm.sf" function in R

Time:09-15

I need to find any R function similar to scipy.stats.norm.sf or math.erfc? Any help would be great. I am trying google, but not find any good answer yet. Thank you for your time. Paulo

CodePudding user response:

You'll need to make sure they are 1:1 what you are looking for, but I recommend pracma::erfc() and stats::rnorm().

CodePudding user response:

The standard equivalent of scipy.stats.norm.sf(x) will be

1 - pnorm(x)

The standard equivalent of math.erfc(x) will be

(1 - pnorm(x * sqrt(2))) * 2
  • Related