Functions to create and manipulate discrete random variables


[Up] [Top]

Documentation for package ‘discreteRV’ version 1.1

Help Pages

make.RV-package Make a random variable consisting of possible outcome values and their probabilities or odds
%AND% Compute the logical AND of two events
%OR% Compute the logical OR of two events
as.RV Turn a probability vector with possible outcome values in the 'names()' attribute into a random variable:
Conditional Compute the conditional probability of two events
E Expected value of a random variable
KURT Kurtosis of a random variable
make.RV Make a random variable consisting of possible outcome values and their probabilities or odds
margins Marginal distribution of a joint random variable
mult Joint probability mass function of random variables X and Y
multN Probability mass function of X^n
P Calculate probabilities of events
plot.RV Plot a random variable of class "RV"
plot.RVsim Plot a simulated random vector
print.RV Print a random variable of class "RV"
probs Probability mass function of random variable X
Prop Proportion of an event observed in a vector of simulated trials
props Proportions of observed outcomes in one or more vectors of simulated trials
qqnorm.RV Normal quantile plot for RVs to answer the question how close to normal it is
rsim Simulate n independent trials from a random variable X:
SD Standard deviation of a random variable
SKEW Skewness of a random variable
skewSim Skew of the empirical distribution of simulated data
SofI Sum of independent random variables
SofIID Sum of independent identically distributed random variables
V Variance of a random variable
|.RVresult Compute the conditional probability of two events