cont.trans | R Documentation |
Transformed PDF of a Continuous Random Variable
cont.trans(fx, TF, FTF, a, b, lo = 0, up = 1, plot = FALSE, ...)
fx |
PDF of the original random variable |
TF |
List of transform functions (1~8) |
FTF |
List of transformed PDF (1~8) |
a |
Lower limit of the original random variable for calculating P(a<X<b) |
b |
Upper limit of the original random variable for calculating P(a<X<b) |
lo |
Lower limit of the original random variable, Default: 0 |
up |
Upper limit of the original random variable, Default: 1 |
plot |
Plot the PDF? Default: FALSE |
... |
Graphic parameters |
None.
fx = function(x) 2*x*(x>=0 & x<=1) ty = function(x) 10*x - 4 tw = function(x) -10*x + 4 fy = function(y) fx((y+4)/10)/10 fw = function(w) fx((-w+4)/10)/10 cont.trans(fx, list(y=ty, w=tw), list(fy, fw), 0.3, 0.7, plot=TRUE, cex=1.3)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.