How to write the R code for binom Ber(p0/(p1+p0))?

后端 未结 0 1554
心在旅途
心在旅途 2020-11-29 03:46

If two parameters p1=10*exp(-a^2/(2b)) and p0=2*exp(-c^2/d), the random variable X is sample from Bernoulli(p1/(p0+p1)). How to write this code in

相关标签:
回答
  • 消灭零回复
提交回复
热议问题