cont.trans: Transformed PDF of a Continuous Random Variable

Description Usage Arguments Value Examples

View source: R/ch4-fn.R

Description

Transformed PDF of a Continuous Random Variable

Usage

1
cont.trans(fx, TF, FTF, a, b, lo = 0, up = 1, plot = FALSE, ...)

Arguments

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

Value

None.

Examples

1
2
3
4
5
6
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)

tjssu/Rstat documentation built on Aug. 8, 2020, 12:38 p.m.