Density, Cumulative Probability, or Quantile

DESCRIPTION:

This function is used by the Density, Cumulative Probability, or Quantile dialog.

USAGE:

menuPdist(data.x=NULL, x, data.type="Use Data Set", start, 
          end, length, density.p=F, cdf.p=F, quantile.p=F, 
          distribution="uniform", print.object.p=T, 
          df1, df2, max=1, min=0, mean=0, sd=1, location=0, 
          scale=1, shape1, shape2, prob, size, k, m, n) 

REQUIRED ARGUMENTS:

x
a numeric vector. NAs and Infs are allowed but will be removed.

OPTIONAL ARGUMENTS:

data.x
a data frame in which to interpret the variable named in x. If this is missing, then x must be a vector.
data.type
a character string; if "Use Data Set", x is a required argument. If "Make Sequence", start, end, and length are required arguments.
start
starting value of the sequence.
end
ending value of sequence, a value less than start is allowed.
length
number of values in the result.
density.p
if TRUE, density values of the chosen distribution at the values in x or the sequence are computed.
cdf.p
if TRUE, cumulative probabilities of the chosen distribution at the values in x or the sequence are computed.
quantile.p
if TRUE, quantiles of the chosen distribution at the values in x or the sequence are computed.
distribution
a character string that specifies the distribution. Possible values are: normal, beta, cauchy, chisquare, exponential, f, gamma, lognormal, logistic, t, uniform, weibull, binomial, geometric, hypergeometric, negbinomial, poisson.
print.object.p
if TRUE, the result of the test is printed.
df1
parameter of a distribution, when distribution is "chisquare", "f", or "t".
df2
parameter of a distribution, when distribution is "f".
max
parameter of a distribution, when distribution is "uniform".
min
parameter of a distribution, when distribution is "uniform".
mean
parameter of a distribution, when distribution is "exponential", "lognormal", "normal", "poisson".
sd
parameter of a distribution, when distribution is "normal", "lognormal".
location
parameter of a distribution, when distribution is "cauchy", "logistic".
scale
parameter of a distribution, when distribution is "cauchy", "logistic", "weibull".
shape1
parameter of a distribution, when distribution is "beta", "gamma", "weibull".
shape2
parameter of a distribution, when distribution is "beta".
prob
parameter of a distribution, when distribution is "binomial", "geometric", "negbinomial".
size
parameter of a distribution, when distribution is "binomial", "negbinomial".
k
parameter of a distribution, when distribution is "negbinomial".
m
parameter of a distribution, when distribution is "hypergeometric".
n
parameter of a distribution, when distribution is "hypergeometric".

VALUE:

data frame. Invisibly returns the density, probability, or quantile, for the chosen distribution with the specified parameters. The first column is the input data.

SIDE EFFECTS:

If print.object.p is TRUE the results are printed.

SEE ALSO:

, , , , , , , ,