Learn R Programming

mistr (version 0.0.2)

sudo_support: Support Interval of Distribution Object

Description

sudo_support is a generic function that returns the two boundary values of object's support.

Usage

sudo_support(O)

# S3 method for discrdist sudo_support(O)

# S3 method for contdist sudo_support(O)

# S3 method for mixdist sudo_support(O)

# S3 method for compdist sudo_support(O)

# S3 method for trans_univdist sudo_support(O)

Arguments

O

distribution object.

Value

Named vector containing two values.

Details

Methods of sudo_support function calculate the support's boundary values for any distribution in the package mistr. This technique is particularly useful when dealing with a transformed distribution.

Examples

Run this code
# NOT RUN {
B  <- binomdist(10, 0.3)
sudo_support(B)

B2 <- -3*log(B)
sudo_support(B2)

sudo_support( mixdist(B2, normdist(), weights = c(0.5, 0.5)))
# }

Run the code above in your browser using DataLab