22#ifndef Rcpp__stats__logis_h
23#define Rcpp__stats__logis_h
44 return x + location + 1.0;
47 x =
::fabs((x - location));
65 return (
log_p ? -::log1p(x) : 1 / (1 + x));
69inline double plogis_1(
double x,
double location ,
73 return x + location + 1.0;
81 return (
log_p ? -::log1p(x) : 1 / (1 + x));
95 p = p - ::log1p(- ::exp(p));
97 p = ::log1p(- ::exp(p)) - p;
100 p = ::log(
lower_tail ? (p / (1. - p)) : ((1. - p) / p));
110 return p + location + 1.0;
117 p = p - ::log1p(- ::exp(p));
119 p = ::log1p(- ::exp(p)) - p;
122 p = ::log(
lower_tail ? (p / (1. - p)) : ((1. - p) / p));
132RCPP_DPQ_2(logis,::Rf_dlogis,::Rf_plogis,::Rf_qlogis)
#define RCPP_DPQ_2(__NAME__, __D__, __P__, __Q__)
#define RCPP_DPQ_1(__NAME__, __D__, __P__, __Q__)
#define RCPP_DPQ_0(__NAME__, __D__, __P__, __Q__)
double plogis_1(double x, double location, int lower_tail, int log_p)
double plogis_0(double x, int lower_tail, int log_p)
double qlogis_1(double p, double location, int lower_tail, int log_p)
double dlogis_1(double x, double location, int give_log)
double dlogis_0(double x, int give_log)
double qlogis_0(double p, int lower_tail, int log_p)
#define R_P_bounds_Inf_01(x)
#define R_Q_P01_boundaries(p, _LEFT_, _RIGHT_)