d_rsize_Weibull {RSizeBiased} | R Documentation |
Weibull size biased distribution of order
.
Description
Calculates the density of the size biased Weibull distribution.
Usage
d_rsize_Weibull(x,TRpar,r)
Arguments
x |
Grid points where the functional is being calculated. |
TRpar |
A vector of length 2, containing the shape and scale parameters of the distribution. |
r |
The size (order) of the distribution. The special cases |
Details
The size density of the observed biased sample
is defined by
where is the density of the Weibull distribution and
the vector of the shape and scale parameters of the distribution.
Value
A vector of length equal to the length of .
Author(s)
Polychronis Economou
R implementation and documentation: Polychronis Economou <peconom@upatras.gr>
References
Economou et. al. (2021). Hypothesis testing for the population mean and variance based on r-size biased samples, under review.
See Also
p_rsize_Weibull
, r_rsize_Weibull
Examples
# example of r-size Weibull distribution, r=0,1,2
x<- seq(0, 10, length=50)
dens.0.size<-d_rsize_Weibull(x,c(2,3),0)
dens.1.size<-d_rsize_Weibull(x,c(2,3),1)
dens.2.size<-d_rsize_Weibull(x,c(2,3),2)
plot(x, dens.0.size, type="l", ylab="r-denisty")
lines(x, dens.1.size, col=2)
lines(x, dens.2.size, col=3)
legend("topright",legend=c("r= 0","r= 1","r= 2"),
col=c("black","red","green"),lty=c(1,1,1))