pdfsqcdfstar: Calculate f^2(x)(1-F(x)).

Description Usage Arguments Details Value Author(s) References See Also Examples

View source: R/pdfsqcdfstar.R

Description

Return the product f^2(x)(1-F(x)).

Usage

1
pdfsqcdfstar(s,dist, p1,p2)

Arguments

s

A scalar or vector: the x-axis grid points where the probability density function will be evaluated.

dist

Character string, used as a switch to the user selected distribution function (see details below).

p1

A scalar. Parameter 1 (vector or object) of the selected density.

p2

A scalar. Parameter 2 (vector or object) of the selected density.

Details

Based on user-specified argument dist, the function returns the value of f^2(x)(1-F(x))dx, used in the definitions of ρ_p^*, ρ_p and their exact versions.

Supported distributions (along with the corresponding dist values) are:

Value

A vector containing the user selected density values at the user specified points s.

Author(s)

Dimitrios Bagkavos and Lucia Gamez Gallardo

R implementation and documentation: Dimitrios Bagkavos <dimitrios.bagkavos@gmail.com>, Lucia Gamez Gallardo <gamezgallardolucia@gmail.com>

References

Bagkavos D., Patil P.N., Wood A.T.A. (2016), A Numerical Study of the Power Function of a New Symmetry Test. In: Cao R., Gonzalez Manteiga W., Romo J. (eds) Nonparametric Statistics. Springer Proceedings in Mathematics and Statistics, vol 175, Springer.

See Also

r.sample, q.sample, p.sample

Examples

1
2
3
4
5
  selected.dens <- "weib" #select Weibull
  shape <- 2  # specify shape parameter
  scale <- 1 # specify scale parameter
  xout <- seq(0.1,5,length=50)  #design point
  pdfsqcdfstar(xout,selected.dens,shape,scale)  #return f^2(xout)F(xout)

asymmetry.measures documentation built on July 22, 2020, 9:06 a.m.