betafunctions (version 1.2.2)

qBetaMS: Quantile Containing Specific Proportion of the Distribution, Given a Specific Probability of the Standard Beta PDD with Specific Mean and Variance or Standard Deviation.

Description

Calculates the quantile corresponding to a specific probability of some observation falling within the [0, x] (lt = TRUE) or [x, 1] (lt = FALSE) interval under the Standard Beta probability density distribution with defined mean and variance or standard deviation.

Usage

qBetaMS(p, mean, var = NULL, sd = NULL, lt = TRUE)

Arguments

p

A value of probability marking the point of the Y-axis to correspond to the X-axis.

mean

The mean of the target Standard Beta probability density distribution.

var

The variance of the target Standard Beta probability density distribution.

sd

The standard deviation of the target Standard Beta probability density distribution.

lt

Logical. Specifies which end of the tail for which to calculate quantile. Default is TRUE (meaning, find q for lower tail.)

Value

A numeric value representing the quantile for which the specified proportion of observations fall within.

Examples

Run this code
# NOT RUN {
# To compute the quantile at a specific point (e.g., .5) along the Standard
# (two-parameter) PDD with mean of .6 and variance of .04:
qBetaMS(p = .5, mean =.6, var = .04)
# }

Run the code above in your browser using DataLab