cont.cond2 | R Documentation |
Conditional Probability Distribution Plot of Two Continuous Random Variables
cont.cond2(FUN, xc, yc, xs, ys, lo, up)
FUN |
Continuous joint PDF function |
xc |
Conditioning value of X |
yc |
Conditioning value of Y |
xs |
Specific value of X for displaying the density (given yc) |
ys |
Specific value of Y for displaying the density (given xc) |
lo |
Lower limit of the conditioned random variable |
up |
Upper limit of the conditioned random variable |
Conditional PDF
pdf = function(x, y) (x+y)*(x>=0 & x<=1)*(y>=0 & y<=1) cont.cond2(pdf, yc=0.1, xs=0:2/2, lo=-0.2, up=1.2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.