cont.exp | R Documentation |
Expected Values of Continuous Random Variables
cont.exp(FUN, lo, up, mt, dig = 3, xn = "X", prt = FALSE, plot = FALSE, pos = "center")
FUN |
Continuous probability density function |
lo |
Lower limit of x-axis |
up |
Upper limit of x-axis |
mt |
Graph title |
dig |
Number of digits below the decimal point, Default: 3 |
xn |
Random variable name, Default: 'X' |
prt |
Print expected values and variances? Default: FALSE |
plot |
Plot probability density function? Default: FALSE |
pos |
Legend location, Default: 'center' |
list(ev=Ex, std=Dx)
fx = function(x) dnorm(x,10,2) cont.exp(fx, 0, 20, prt=T, plot=T)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.